-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
56 lines (53 loc) · 1.16 KB
/
.eslintrc.yml
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
---
extends: [
prettier,
vizzuality
]
env:
node: true
es6: true
browser: true
globals:
require: true
config: true
__DEV__: true
parser: babel-eslint
parserOptions:
ecmaVersion: 7
ecmaFeatures:
jsx: true
experimentalObjectRestSpread: true
sourceType: module
plugins: [react, prettier]
rules:
max-len: [1, 140, 2, {"ignoreUrls":true}]
no-console: [error, allow: [warn, error, info]]
no-plusplus: ["error", { "allowForLoopAfterthoughts": true }]
arrow-parens: 0
import/extensions: [error, {"js": never, "jsx": never}]
import/no-unresolved: 0
import/no-extraneous-dependencies: 0
import/prefer-default-export: 0
no-use-before-define: 0
no-underscore-dangle: 0
react/forbid-prop-types: 0
react/prefer-stateless-function: 1
jsx-a11y/href-no-hash: 0
react/jsx-filename-extension: 0
camelcase: 0
prefer-arrow-callback: 0
func-names: 0
react/jsx-indent: 1
no-mixed-operators: 1
react/jsx-one-expression-per-line: 0
settings:
import/resolver:
node:
extensions:
- .js
- .jsx
moduleDirectory:
- node_modules
- javascript
- javascript/app
- app/javascript/app