-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc
35 lines (35 loc) · 1.33 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
{
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [ "react" ],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
},
"globals": {
"before": true, // before() is part of our unit test framework
"describe": true, // describe() is part of our unit test framework
"it": true // it() is part of our unit test framework
},
"rules": {
"no-console": "off", // allow console logging
"strict": ["error", "never"], // ES6 Modules imply a 'use strict'; ... specifying this is redundant
"indent": ["off", 2], // allow any indentation
"no-unused-vars": ["error", {"args": "none"}], // allow unsed parameter declaration
"linebreak-style": "off", // allow both unix/windows carriage returns
"quotes": "off", // allow single or double quotes string literals
"semi": ["error", "always"], // enforce semicolons
"react/prop-types": "off" // do NOT inforce prop-types (it is all internally controled)
}
}