forked from import-js/eslint-plugin-import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
85 lines (82 loc) · 2.15 KB
/
.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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"root": true,
"plugins": [
"eslint-plugin",
"import",
],
"extends": [
"eslint:recommended",
"plugin:eslint-plugin/recommended",
"plugin:import/recommended",
],
"env": {
"node": true,
"es6": true,
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
},
"rules": {
"comma-dangle": [2, "always-multiline"],
"comma-style": [2, "last"],
"curly": [2, "multi-line"],
"eol-last": [2, "always"],
"eqeqeq": [2, "allow-null"],
"func-call-spacing": 2,
"indent": [2, 2],
"max-len": [1, 99, 2],
"no-cond-assign": [2, "always"],
"no-return-assign": [2, "always"],
"no-shadow": 1,
"no-var": 2,
"object-curly-spacing": [2, "always"],
"one-var": [2, "never"],
"prefer-const": 2,
"quotes": [2, "single", {
"allowTemplateLiterals": true,
"avoidEscape": true,
}],
"semi": [2, "always"],
"eslint-plugin/consistent-output": [
"error",
"always",
],
"eslint-plugin/meta-property-ordering": "error",
"eslint-plugin/no-deprecated-context-methods": "error",
"eslint-plugin/no-deprecated-report-api": "off",
"eslint-plugin/prefer-replace-text": "error",
"eslint-plugin/report-message-format": "error",
"eslint-plugin/require-meta-schema": "error",
"eslint-plugin/require-meta-type": "error",
// dog fooding
"import/no-extraneous-dependencies": "error",
"import/unambiguous": "off",
},
"settings": {
"import/resolver": {
"node": {
"paths": [
"src",
],
},
},
},
"overrides": [
{
"files": "scripts/**",
"rules": {
"no-console": "off",
},
},
{
"files": [
"resolvers/*/test/**/*",
],
"env": {
"mocha": true,
"es6": false
},
}
],
}