forked from sanniassin/react-input-mask
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
33 lines (32 loc) · 811 Bytes
/
.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
const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 2018
},
extends: ["airbnb", "prettier"],
plugins: ["prettier", "react-hooks"],
env: {
browser: true
},
rules: {
"react/jsx-filename-extension": OFF,
"react/jsx-props-no-spreading": OFF,
"react/require-default-props": OFF,
'react/no-find-dom-node': OFF,
"react/prop-types": [ERROR, { ignore: ["value", "defaultValue"] }],
"react-hooks/rules-of-hooks": ERROR,
"react-hooks/exhaustive-deps": ERROR,
"no-shadow": OFF,
"no-param-reassign": OFF,
"no-plusplus": OFF,
"global-require": OFF,
"consistent-return": OFF,
"prefer-const": [ERROR, {
"destructuring": "all"
}],
"prettier/prettier": ERROR,
}
};