mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-27 22:36:06 +00:00
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import type { Linter } from 'eslint'
|
|
|
|
import localPlugin from './local-plugin'
|
|
|
|
const config: Linter.Config[] = [
|
|
{
|
|
plugins: {
|
|
local: localPlugin
|
|
},
|
|
rules: {
|
|
'local/padding-react-hooks': 'error',
|
|
'padding-line-between-statements': [
|
|
'error',
|
|
{ blankLine: 'always', prev: 'import', next: '*' },
|
|
{ blankLine: 'any', prev: 'import', next: 'import' },
|
|
{ blankLine: 'always', prev: '*', next: 'const' },
|
|
{ blankLine: 'always', prev: 'const', next: '*' },
|
|
{ blankLine: 'always', prev: '*', next: 'function' },
|
|
{ blankLine: 'always', prev: '*', next: 'class' },
|
|
{ blankLine: 'always', prev: '*', next: 'export' },
|
|
{ blankLine: 'always', prev: 'export', next: '*' },
|
|
{ blankLine: 'always', prev: '*', next: 'block-like' },
|
|
{ blankLine: 'always', prev: '*', next: 'return' },
|
|
{ blankLine: 'any', prev: 'const', next: 'const' },
|
|
{ blankLine: 'any', prev: 'const', next: 'expression' },
|
|
{ blankLine: 'any', prev: 'expression', next: 'const' }
|
|
],
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
vars: 'all',
|
|
args: 'after-used',
|
|
ignoreRestSiblings: true,
|
|
varsIgnorePattern: '^_',
|
|
argsIgnorePattern: '^_'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
|
|
export default config
|