forked from endojs/endo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
70 lines (70 loc) · 1.74 KB
/
.eslintrc.json
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
68
69
70
{
"parser": "babel-eslint",
"extends": [
"airbnb-base",
"plugin:prettier/recommended",
"plugin:eslint-comments/recommended"
],
"env": {
"es6": true
},
"globals": {
"globalThis": false,
"harden": true,
"lockdown": true,
"Compartment": true,
"StaticModuleRecord": true,
"BigInt": true,
"assert": true,
"console": true
},
"rules": {
"implicit-arrow-linebreak": "off",
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"no-return-assign": "off",
"no-param-reassign": "off",
"no-restricted-syntax": [
"off",
"ForOfStatement"
],
"no-unused-expressions": "off",
"no-loop-func": "off",
"no-inner-declarations": "off",
"import/prefer-default-export": "off",
"complexity": ["error", 20],
"max-classes-per-file": ["error", 5],
"max-depth": ["error", { "max": 5 }],
"max-lines": ["error", 400],
"max-nested-callbacks": ["error", 4],
"max-statements": ["error", 40],
"max-statements-per-line": ["error", { "max": 1 }],
"import/no-unresolved": "off",
"import/extensions": "off",
"eslint-comments/no-unused-disable": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
},
"ignorePatterns": [
"**/dist/**",
"packages/ses-integration-test/.cache/**",
"packages/ses-integration-test/bundles/**",
"packages/ses-integration-test/transform-tests/output/**",
"packages/test262-runner/test262/**"
]
}