forked from materializecss/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
24 lines (23 loc) · 833 Bytes
/
eslint.config.mjs
File metadata and controls
24 lines (23 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import typescriptEslint from 'typescript-eslint';
export default [
{ files: ['src/**/*.{ts,js,mjs}'] },
{
// https://eslint.org/docs/latest/use/configure/configuration-files
ignores: ['dist', 'tsconfig.json', 'node_modules']
},
...typescriptEslint.configs.recommended,
{
rules: {
'prefer-const': 'error',
'prefer-rest-params': 'warn',
'no-var': 'warn',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-this-alias': 'warn',
'@typescript-eslint/no-empty-object-type': ['error' , { allowWithName: 'BaseOptions$' }],
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-unsafe-function-type': 'error'
}
}
];