- replace
find-up
withempathic/find
- replace
execa
withtinyexec
- replace
find-up
withempathic/find
import depend from 'eslint-plugin-depend'; | |
export default [ | |
{ | |
plugins: { | |
'depend': depend | |
}, | |
}, | |
{ | |
...depend.configs['flat/recommended'] |
export function getFoo(): FooType<NonExistentType> | null; | |
import type { FooType } from './foo.d.ts'; |
{ | |
"rules": { | |
"no-restricted-syntax": [ | |
"error", | |
{ | |
"selector": "CallExpression[callee.name='require']", | |
"message": "require calls should be replaced with import syntax" | |
}, | |
{ | |
"selector": "CallExpression[callee.name='createRequire']", |
find-up
with empathic/find
execa
with tinyexec
find-up
with empathic/find
function! RunAstGrepOnBuffer() | |
let l:input = input('sg/') | |
if l:input == '' | |
echo "No input provided" | |
return | |
endif | |
let l:parts = split(l:input, '/') | |
if len(l:parts) != 2 | |
echoerr "Invalid input format. Expected 'searchPattern/replacePattern'" | |
return |
command! -bang -nargs=* FzfSg call fzf#vim#sgrep("sg run --heading=never --color=always --pattern=".fzf#shellescape(<q-args>)." | awk -F ':' '!seen[$1]++', fzf#vim#with_preview(), <bang>0) | |
nnoremap <silent> <leader>sg :execute 'FzfSg ' . input('sg/')<CR> |
{ | |
"loader": "ts-node/esm", | |
"extensions": ["ts"], | |
"spec": [ | |
"tests/*.ts" | |
] | |
} |
{ | |
"rules": { | |
"no-restricted-syntax": [ | |
"error", | |
{ | |
"selector": "CallExpression[callee.object.type='Identifier'][callee.object.name='it'][callee.property.type='Identifier'][callee.property.name='only']", | |
"message": "it.only is only allowed during development" | |
} | |
] | |
} |
import { Component, Prop } from '@stencil/core'; | |
@Component({ | |
tag: 'x-foo', | |
shadow: true | |
}) | |
export class XFoo { | |
@Prop() | |
public flag: string = 'foo'; |
const webpackConfig = require('./webpack.config.js'); | |
const webpack = require('webpack'); | |
const path = require('path'); | |
delete webpackConfig.entry; | |
webpackConfig.bail = false; | |
webpackConfig.stats = 'errors-only'; | |
webpackConfig.plugins.push(new webpack.SourceMapDevToolPlugin({ | |
filename: null, | |
test: /\.(ts|js)($|\?)/i |