forked from sanniassin/react-input-mask
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
36 lines (35 loc) · 845 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
34
35
36
const OFF = 0;
// const WARN = 1;
const ERROR = 2;
module.exports = {
parser: "@babel/eslint-parser",
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,
},
};