-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (38 loc) · 1.02 KB
/
.eslintrc.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
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
extends: [
'eslint:recommended',
'prettier',
'plugin:jest/recommended',
'plugin:import/recommended',
'plugin:compat/recommended',
],
plugins: ['prettier', 'jest', 'import'],
parser: '@babel/eslint-parser',
parserOptions: { sourceType: 'module', ecmaVersion: 2019, ecmaFeatures: { modules: true } },
rules: {
'prettier/prettier': ['error'],
'no-console': ['error'],
'import/no-unresolved': ['error', { commonjs: true, amd: true }],
'import/no-cycle': ['error', { maxDepth: 1 }],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
optionalDependencies: false,
peerDependencies: false,
},
],
'no-duplicate-imports': ['error'],
'no-param-reassign': ['off'],
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }],
},
settings: {
polyfills: ['Promise', 'WeakMap', 'fetch'],
},
}