-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.js
47 lines (47 loc) · 1.18 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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
jest: true
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:protractor/recommended'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
require: 'readonly',
describe: 'readonly',
it: 'readonly',
expect: 'readonly',
process: 'readonly',
cy: 'readonly'
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: ['react', 'protractor', 'prettier'],
settings: {
react: {
version: 'detect'
}
},
rules: {
'max-len': [1, { "code": 160 }],
'react/jsx-max-props-per-line': [1, { "when": "multiline" }],
'react/prop-types': 0, // TODO: activate rule
'protractor/no-absolute-url': 0, // TODO: activate rule
'protractor/no-describe-selectors': 0, // TODO: activate rule
'protractor/no-repetitive-locators': 0, // TODO: activate rule
'protractor/no-repetitive-selectors': 0, // TODO: activate rule
'protractor/no-browser-sleep': 0, // TODO: activate rule
'protractor/missing-wait-message': 0 // TODO: activate rule
}
}