-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
67 lines (66 loc) · 1.66 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* 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: {
es6: true,
node: 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),
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
globals: {},
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: [
'*.ts',
],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
// while we do the conversion allow rules to be disabled on a per-line basis
'@typescript-eslint/ban-ts-comment': OFF,
},
}, {
files: [
'*.test.js',
],
env: {
es6: true,
jest: true,
},
}],
};