forked from mozilla/tofino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
99 lines (91 loc) · 2.4 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"import",
"react",
"babel"
],
"settings": {
"import/extensions": [
".js",
".jsx"
],
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
]
}
},
"import/core-modules": [
"electron"
]
},
"rules": {
"new-cap": ["error", {
"capIsNewExceptions": [
"Router",
"Immutable.List",
"Immutable.Map",
"Immutable.Record",
"Immutable.Set",
"Immutable.OrderedSet",
]
}],
"func-names": ["error", "never"],
"space-before-function-paren": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"arrow-body-style": ["error", "as-needed"],
"no-console": ["error"],
"no-confusing-arrow": ["off"],
"no-param-reassign": ["off"],
"no-return-assign": ["off"],
"no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}],
"no-underscore-dangle": ["off"],
"no-use-before-define": ["off"],
"dot-notation": ["off"],
"eqeqeq": ["error", "allow-null"],
"no-plusplus": ["off"],
"no-continue": ["off"],
"require-yield": ["off"],
"class-methods-use-this": ["off"],
// See https://github.com/eslint/eslint/issues/6274
"generator-star-spacing": ["off"],
"babel/generator-star-spacing": ["error", { before: false, after: true }],
"react/display-name": ["error", { ignoreTranspilerName: true }],
"react/prefer-stateless-function": ["off"],
"react/jsx-closing-bracket-location": ["error", "after-props"],
"react/jsx-max-props-per-line": ["error", { "maximum": 1 }],
"react/jsx-first-prop-new-line": ["off"],
"react/jsx-no-bind": ["error", {
"ignoreRefs": true,
"allowArrowFunctions": false,
"allowBind": false,
}],
"import/no-unresolved": ["error", {
"ignore": ["^electron$", "\\./build-config$", "^logging$"],
"commonjs": true
}],
"import/no-commonjs": ["error"],
"import/no-amd": ["error"],
"import/no-extraneous-dependencies": ["off"],
"import/no-named-as-default": ["off"],
"import/prefer-default-export": ["off"]
}
}