25 lines
721 B
JavaScript
25 lines
721 B
JavaScript
|
|
import eslint from '@eslint/js';
|
||
|
|
import tseslint from 'typescript-eslint';
|
||
|
|
|
||
|
|
export default tseslint.config(
|
||
|
|
eslint.configs.recommended,
|
||
|
|
...tseslint.configs.strict,
|
||
|
|
...tseslint.configs.stylistic,
|
||
|
|
{
|
||
|
|
languageOptions: {
|
||
|
|
parserOptions: {
|
||
|
|
projectService: true,
|
||
|
|
tsconfigRootDir: import.meta.dirname,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
||
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
||
|
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
ignores: ['dist/', 'node_modules/', '*.config.js'],
|
||
|
|
}
|
||
|
|
);
|