-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
44 lines (43 loc) · 1.23 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const pluginJs = require('@eslint/js');
const pluginJest = require('eslint-plugin-jest');
const tseslint = require('typescript-eslint');
module.exports = [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
files: [
'**/*.{js,mjs,cjs,ts}',
],
plugins: {
jest: pluginJest,
},
languageOptions: {
globals: pluginJest.environments.globals.globals,
},
},
{
ignores: [
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'eslint.config.js',
],
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/no-empty-interface': 'warn',
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-namespace': 'off',
'no-console': 'warn',
'no-undef': 'off',
'quotes': ['warn', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': true }],
}
}
];