This repository has been archived by the owner on May 31, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.js
61 lines (55 loc) · 1.62 KB
/
index.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
// mostly good stuff
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
env: {
node: true,
browser: true,
es2020: true,
},
plugins: ["import"],
rules: {
// cancel some restrictive recommended stuff
"no-console": 0,
// no styles rules (=> prettier)
"prefer-const": 2,
"one-var": [2, "never"],
"no-var": 2,
"no-bitwise": 2,
"import/default": 2,
"import/export": 2,
"import/first": 2,
"import/max-dependencies": 2,
"import/named": 2,
"import/namespace": 2,
"import/newline-after-import": 2,
"import/no-absolute-path": 2,
"import/no-amd": 2,
// Intended for temporary use when migrating to pure ES6 modules.
"import/no-deprecated": 2,
"import/no-duplicates": 2,
"import/no-extraneous-dependencies": 2,
"import/no-mutable-exports": 2,
"import/no-named-as-default-member": 2,
"import/no-named-as-default": 2,
"import/no-named-default": 2,
"import/no-namespace": 2,
"import/no-restricted-paths": 2,
"import/no-unresolved": [2, { commonjs: true }],
"import/no-webpack-loader-syntax": 2, // because it's gross
"import/order": [2, { "newlines-between": "always" }],
"import/no-self-import": 2,
"import/no-useless-path-segments": 2,
},
settings: {
"import/ignore": [
"node_modules", // mostly CommonJS (ignored by default)
".json$", // import plugin does not seems to like json
".(css|scss|less)$", // can't parse unprocessed CSS
".(jpg|png|gif|svg|html|txt|md|woff|woff2|ttf|eot)$", // webpack !
],
},
};