-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
48 lines (41 loc) · 1.15 KB
/
.eslintrc.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
// http://eslint.org/docs/user-guide/configuring
// http://eslint.org/docs/rules/
// http://eslint.org/docs/user-guide/configuring#configuring-rules
// http://kangax.github.io/compat-table/es5/
// https://kangax.github.io/compat-table/es6/
// http://caniuse.com/#feat=es5
module.exports = {
"root": true,
//"parser": "babel-eslint", // https://www.npmjs.com/package/babel-eslint
//"extends": "eslint:recommended",
//"extends": "airbnb", // With React
"extends": "airbnb/base", // Without React
"globals": {
"jQuery": true,
"$": true
},
env: {
"es6": true,
"browser": true,
"node": true,
"jquery": true
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module', // "script" or "module"
ecmaFeatures: {
jsx: true,
generators: true,
experimentalObjectRestSpread: true
}
},
"rules": {
"spaced-comment": "off",
"no-console": "off",
"import/no-extraneous-dependencies": "off",
"react/jsx-filename-extension": "off",
"react/require-extension": "off", // Atom error
//"react/prefer-es6-class": ["error", "never"],
//"react/prefer-stateless-function": "off",
},
}