44 lines
885 B
JavaScript
44 lines
885 B
JavaScript
|
/**
|
||
|
* ESLint configuration for the project.
|
||
|
*
|
||
|
* See https://eslint.style and https://typescript-eslint.io for additional linting options.
|
||
|
*/
|
||
|
// @ts-check
|
||
|
import js from '@eslint/js';
|
||
|
import tseslint from 'typescript-eslint';
|
||
|
import stylistic from '@stylistic/eslint-plugin';
|
||
|
|
||
|
export default tseslint.config(
|
||
|
{
|
||
|
ignores: [
|
||
|
'.vscode-test',
|
||
|
'out',
|
||
|
]
|
||
|
},
|
||
|
js.configs.recommended,
|
||
|
...tseslint.configs.recommended,
|
||
|
...tseslint.configs.stylistic,
|
||
|
{
|
||
|
plugins: {
|
||
|
'@stylistic': stylistic
|
||
|
},
|
||
|
rules: {
|
||
|
'curly': 'warn',
|
||
|
'@stylistic/semi': ['warn', 'always'],
|
||
|
'@typescript-eslint/no-empty-function': 'off',
|
||
|
'@typescript-eslint/naming-convention': [
|
||
|
'warn',
|
||
|
{
|
||
|
'selector': 'import',
|
||
|
'format': ['camelCase', 'PascalCase']
|
||
|
}
|
||
|
],
|
||
|
'@typescript-eslint/no-unused-vars': [
|
||
|
'error',
|
||
|
{
|
||
|
'argsIgnorePattern': '^_'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
);
|