forked from azdanov/ea-ultimate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
85 lines (85 loc) · 2.77 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
74
75
76
77
78
79
80
81
82
83
84
85
{
"root": true,
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"airbnb",
"plugin:jest/recommended",
"plugin:node/recommended",
"plugin:promise/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended",
"prettier/react",
"prettier/unicorn"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react-hooks", "jest", "jsdoc", "lodash", "promise", "unicorn"],
"rules": {
"quotes": ["error", "backtick"],
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/prefer-default-export": "off",
"jest/consistent-test-it": [
"error",
{
"fn": "test"
}
],
"jest/no-jasmine-globals": "error",
"jest/no-test-prefixes": "error",
"jest/prefer-to-be-null": "error",
"jest/prefer-to-be-undefined": "error",
"jest/valid-describe": "error",
"jest/valid-expect": "error",
"jest/valid-expect-in-promise": "error",
"jsdoc/check-param-names": "error",
"jsdoc/check-tag-names": "error",
"jsdoc/check-types": "error",
"jsdoc/newline-after-description": "error",
"jsdoc/no-undefined-types": "off",
"jsdoc/require-description-complete-sentence": "warn",
"jsdoc/require-example": "off",
"jsdoc/require-hyphen-before-param-description": "warn",
"jsdoc/require-param": "warn",
"jsdoc/require-param-description": "off",
"jsdoc/require-param-name": "warn",
"jsdoc/require-param-type": "warn",
"jsdoc/require-returns-description": "off",
"jsdoc/require-returns-type": "warn",
"jsdoc/valid-types": "warn",
"lodash/import-scope": ["error", "member"],
"lodash/prefer-constant": ["error", true, true],
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"node/exports-style": ["error", "module.exports"],
"node/no-unpublished-require": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/prefer-global/buffer": ["error", "always"],
"node/prefer-global/console": ["error", "always"],
"node/prefer-global/process": ["error", "always"],
"node/prefer-global/url": ["error", "always"],
"node/prefer-global/url-search-params": ["error", "always"],
"react-hooks/rules-of-hooks": "error",
"react/jsx-curly-brace-presence": "off",
"react/jsx-filename-extension": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-wrap-multilines": "off",
"react/no-unescaped-entities": "off",
"react/require-default-props": "off",
"unicorn/filename-case": "off",
"unicorn/import-index": "off",
"unicorn/prevent-abbreviations": "off",
"eqeqeq": "off"
}
}