This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
forked from epam/mriviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
73 lines (73 loc) · 2.06 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"root": true,
"parser": "babel-eslint",
"plugins": ["react", "prettier"],
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect",
"flowVersion": "0.53"
}
},
"globals": {
"shallow": true
},
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prefer-es6-class": [2],
"react/prop-types": "off",
"react/no-string-refs": "off",
"react/jsx-no-undef": "off",
"react/jsx-key": "off",
"no-case-declarations": "off",
"react/no-unescaped-entities": "off",
"linebreak-style": "off",
"no-unused-vars": ["error"],
"no-alert": "off",
"no-underscore-dangle": "off",
"vars-on-top": "off",
"space-before-function-paren": ["warn", "never"],
"no-mixed-operators": "off",
"key-spacing": "off",
"spaced-comment": "off",
"func-names": "off",
"padded-blocks": "off",
"quote-props": "off",
"one-var-declaration-per-line": "off",
"max-len": [1, 200, 2, { "ignoreComments": true }],
"object-curly-spacing": ["error", "always"],
"no-param-reassign": "off",
"one-var": "off",
"no-undef": "off",
"no-console": "off",
"comma-dangle": "off",
"no-multi-spaces": "off",
"no-prototype-builtins": "off",
"wrap-iife": ["error", "any"],
"no-use-before-define": ["error", "nofunc"],
"object-property-newline": "off",
"no-restricted-syntax": "off",
"no-else-return": "off",
"no-cond-assign": ["error", "except-parens"],
"space-infix-ops": ["warn", { "int32Hint": true }],
"no-nested-ternary": "off",
"global-require": "off",
"no-continue": "off",
"no-bitwise": "off",
"no-plusplus": "off",
"no-multi-assign": "off",
"react/no-unknown-property": "off",
"lines-between-class-members": ["error", "always"],
"no-debugger": "warn",
"prettier/prettier": ["error"]
}
}