This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
122 lines (122 loc) · 4.07 KB
/
index.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
module.exports = {
extends: ["airbnb", "plugin:prettier/recommended", "prettier"],
plugins: ["cypress", "pathable", "react-hooks", "no-only-tests"],
env: {
browser: true,
meteor: true,
node: true,
mocha: true,
jest: true,
"cypress/globals": true
},
rules: {
"class-methods-use-this": "off",
"comma-dangle": [
"error",
{
arrays: "always-multiline",
objects: "always-multiline",
imports: "always-multiline",
exports: "always-multiline",
functions: "never"
}
],
"constructor-super": "off",
"max-len": [
"error",
{
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true
}
],
"global-require": "off",
"no-bitwise": ["error", { allow: ["~"] }],
"no-class-assign": "off",
"no-confusing-arrow": "off",
"no-console": "error",
"no-continue": "off",
"no-empty-pattern": "off",
"no-mixed-operators": "off",
"no-prototype-builtins": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"no-useless-escape": "off",
"no-restricted-globals": "off",
"no-restricted-properties": "off",
"no-restricted-syntax": "off",
"prefer-destructuring": "off",
"prefer-promise-reject-errors": "off",
"import/export": "off",
"import/order": "off",
"import/extensions": "off",
"import/first": "off",
"import/no-duplicates": "off",
"import/no-extraneous-dependencies": "off",
"import/no-named-default": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/no-mutable-exports": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/iframe-has-title": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/control-has-associated-label": "warn",
"react/default-props-match-prop-types": "off",
"react/jsx-closing-tag-location": "off",
"react/forbid-prop-types": "off",
"react/jsx-indent": "off",
"react/jsx-filename-extension": "off",
"react/jsx-pascal-case": "off",
"react/no-array-index-key": "off",
"react/no-danger": "off",
"react/jsx-no-comment-textnodes": "off",
"react/no-find-dom-node": "off",
"react/no-render-return-value": "off",
"react/no-string-refs": "off",
"react/no-unused-state": "off",
"react/prop-types": "off",
"react/no-unused-prop-types": "off",
"react/require-default-props": "off",
"react/jsx-no-target-blank": "off",
"react/prefer-stateless-function": [
"error",
{ ignorePureComponents: true }
],
"react/prefer-es6-class": "off",
"react/jsx-curly-newline": "off", // prettier takes care of this
"react/no-deprecated": "warn", // we need to turn this on soon
"react/state-in-constructor": "off", // we need to remove this from here soon - ie. turn on
"react/static-property-placement": "off", // we need to remove this from here soon - ie. turn on
"pathable/no-import-root-pathable": "error",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"react/jsx-wrap-multilines": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/button-has-type": "off",
"react/destructuring-assignment": "off",
"prefer-object-spread": "off",
"no-else-return": "warn",
"import/no-cycle": "off",
"no-only-tests/no-only-tests": "error",
},
parser: "babel-eslint",
parserOptions: {
allowImportExportEverywhere: true,
ecmaVersion: 10,
ecmaFeatures: {
jsx: true,
}
}
};