-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
53 lines (52 loc) · 1.36 KB
/
.eslintrc.cjs
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
50
51
52
53
/* eslint-disable no-unused-vars, no-multi-spaces */
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
/* eslint-enable no-unused-vars, no-multi-spaces */
module.exports = {
env: {
amd: true,
browser: true,
},
extends: [
'./node_modules/eslint-config-airbnb-base/rules/best-practices',
'./node_modules/eslint-config-airbnb-base/rules/errors',
'./node_modules/eslint-config-airbnb-base/rules/node',
'./node_modules/eslint-config-airbnb-base/rules/style',
'./node_modules/eslint-config-airbnb-base/rules/variables',
'./node_modules/eslint-config-airbnb-base/rules/es6',
'./node_modules/eslint-config-airbnb-base/rules/strict',
].map(require.resolve),
globals: {},
parserOptions: {
ecmaVersion: 'latest',
// sourceType: 'commonjs',
},
rules: {
'default-case': OFF,
'function-paren-newline': OFF,
'max-len': OFF,
'no-param-reassign': OFF,
'no-plusplus': OFF,
'no-underscore-dangle': OFF,
'no-use-before-define': OFF,
'object-curly-newline': [ERROR, {
ImportDeclaration: {
multiline: true,
minProperties: 5,
},
}],
},
overrides: [{
files: ['**/*.test.js'],
// env: {
// 'jest/globals': true,
// },
globals: {
beforeEach: 'readonly',
describe: 'readonly',
expect: 'readonly',
it: 'readonly',
},
}],
};