32 lines
671 B
JavaScript
32 lines
671 B
JavaScript
|
|
import tsParser from '@typescript-eslint/parser';
|
||
|
|
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
||
|
|
|
||
|
|
export default [
|
||
|
|
{
|
||
|
|
ignores: ['dist/**', 'node_modules/**'],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
files: ['src/**/*.ts'],
|
||
|
|
languageOptions: {
|
||
|
|
parser: tsParser,
|
||
|
|
ecmaVersion: 'latest',
|
||
|
|
sourceType: 'module',
|
||
|
|
},
|
||
|
|
plugins: {
|
||
|
|
'@typescript-eslint': tsPlugin,
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'no-undef': 'off',
|
||
|
|
'no-unused-vars': 'off',
|
||
|
|
'@typescript-eslint/no-unused-vars': [
|
||
|
|
'error',
|
||
|
|
{
|
||
|
|
argsIgnorePattern: '^_',
|
||
|
|
varsIgnorePattern: '^_',
|
||
|
|
caughtErrorsIgnorePattern: '^_',
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
];
|