-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
Copy path.eslintrc
29 lines (29 loc) · 916 Bytes
/
.eslintrc
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
{
"extends": "airbnb-base",
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"node": true,
"mocha": true,
"worker": true
},
"parserOptions": {
// airbnb-base sets this to "modules" for ESM but CJS is being used
"sourceType": "script"
},
"rules": {
"strict": ["error", "global"],
"no-underscore-dangle": 0,
"no-console": 0,
"global-require": 0,
"camelcase": 0,
"no-control-regex": 0,
// Airbnb disallows ForOfStatement based on the bizarre belief that loops are not readable
// https://github.com/airbnb/javascript/issues/1271
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
// The `prefer-destructuring` rule causes issues
// https://github.com/naptha/tesseract.js/issues/847
"prefer-destructuring": 0,
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }]
}
}