-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
32 lines (32 loc) · 1.11 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
{
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [ "react" ],
"parserOptions": {
"sourceType": "module",
"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": {
"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
}
}