forked from notional-labs/multisig-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
42 lines (42 loc) · 1.06 KB
/
.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
37
38
39
40
41
42
/* global module */
module.exports = {
env: {
es6: true,
browser: true,
},
globals: {
process: "readonly",
},
parserOptions: {
sourceType: "module",
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
plugins: ["react"],
extends: [
"eslint:recommended",
"plugin:react/recommended",
"next/core-web-vitals",
"eslint:recommended",
],
rules: {
curly: ["warn", "multi-line", "consistent"],
"no-bitwise": "warn",
"no-console": "off",
"no-param-reassign": "warn",
"no-shadow": "warn",
"no-unused-vars": "off",
"prefer-const": "warn",
radix: ["warn", "always"],
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"react/no-unescaped-entities": ["warn", { forbid: [">", "}"] }], // by default we can't use ' which is annoying
"react/prop-types": "off",
"eslint/no-empty-function": "off",
"react/jsx-key": ["off"], // prevent error when using FlexRow
"react-hooks/exhaustive-deps": ["off"],
"prefer-const": ["off"]
},
overrides: [],
};