-
Notifications
You must be signed in to change notification settings - Fork 92
/
eslint.config.js
49 lines (48 loc) · 1.63 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
45
46
47
48
49
import globals from 'globals';
import pluginJs from '@eslint/js';
import importPlugin from 'eslint-plugin-import';
export default [
pluginJs.configs.recommended,
importPlugin.flatConfigs.recommended,
{
languageOptions: {
globals: globals.browser,
ecmaVersion: 2021,
sourceType: 'module',
},
files: ['src/**/*.js'],
ignores: ['.github/*', 'node_modules/*', 'public/*', 'dist/*'],
rules: {
'no-unused-vars': [
'error',
{
vars: 'local',
args: 'none',
caughtErrors: 'all',
ignoreRestSiblings: false,
reportUsedIgnorePattern: false,
},
],
'no-undef': 'off',
'no-prototype-builtins': 'off',
'no-constant-condition': 'off',
'no-async-promise-executor': 'off',
'no-unsafe-optional-chaining': 'off',
'no-unsafe-negation': 'off',
'no-unsafe-regex': 'off',
'no-unsafe-return': 'off',
'no-unsafe-finally': 'off',
'no-unsafe-assignment': 'off',
'no-unsafe-member-access': 'off',
'no-unsafe-call': 'off',
'no-unsafe-argument': 'off',
'no-unsafe-regular-expressions': 'off',
'import/no-unresolved': 'error',
'import/namespace': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'import/default': 'off',
'no-console': 'warn',
},
},
];