-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
55 lines (55 loc) · 1.36 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
{
// Extend existing configuration
// from ESlint and eslint-plugin-react defaults.
"extends": [
"eslint:recommended",
//"eslint:all",
"plugin:react/recommended"
// "plugin:react/all"
],
"parser": "babel-eslint",
// Enable ES6 support. If you want to use custom Babel
// features, you will need to enable a custom parser
// as described in a section below.
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures" : {
"jsx" : true
}
},
"env": {
"browser": true,
"node": true,
"jquery" : true,
"es6" : true,
},
"globals": {
"IS_PRODUCTION": true,
"Highcharts": true,
"moment" : true,
"setConfig" : false
},
// Enable custom plugin known as eslint-plugin-react
"plugins": [
"react"
],
"rules": {
"react/prop-types": 1,
"react/prefer-es6-class": 1,
"react/jsx-pascal-case" : 1,
"react/jsx-curly-spacing": 1,
"jsx-quotes" : [ "error" , "prefer-double" ],
"react/no-string-refs" : 1,
"react/jsx-wrap-multilines" : 1,
"react/require-render-return" : 1,
// Disable `no-console` rule
"no-console": 0,
// Give a warning if identifiers contain underscores
"no-underscore-dangle": 2,
// Default to single quotes and raise an error if something
// else is used
// "quotes": [2, "single"]
"no-unused-vars": 1
}
}