-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.1 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
39
40
41
42
43
44
45
46
module.exports = {
env: {
node: true
},
globals: {
// For use in page.evaluate()
document: "readonly",
window: "readonly"
},
extends: [
"eslint:recommended",
"plugin:node/recommended",
"prettier",
"plugin:import/errors",
"plugin:import/warnings"
],
plugins: [],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
allowImportExportEverywhere: true
},
settings: {
"import/resolver": {
alias: {
extensions: [".js", ".jsx", ".json"]
}
}
},
rules: {
"no-console": "off",
"no-shadow": "off",
"no-unused-vars": ["error", { ignoreRestSiblings: true }],
// See: https://github.com/benmosher/eslint-plugin-import/issues/496
// https://stackoverflow.com/questions/44939304/eslint-should-be-listed-in-the-projects-dependencies-not-devdependencies
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
"import/prefer-default-export": 0,
"no-template-curly-in-string": 0,
"no-underscore-dangle": 0,
"class-methods-use-this": 0,
"no-param-reassign": 0,
"no-await-in-loop": 0,
"no-plusplus": 0,
"import/no-dynamic-require": 0
}
};