forked from cosmos/cosmos-multisig-ui
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
38 lines (38 loc) · 967 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
37
38
/* global module */
module.exports = {
env: {
es6: true,
browser: true,
},
globals: {
process: "readonly",
},
parserOptions: {
sourceType: "module",
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
plugins: ["prettier"],
extends: [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"plugin:prettier/recommended",
],
rules: {
curly: ["warn", "multi-line", "consistent"],
"no-bitwise": "warn",
"no-console": "off",
"no-param-reassign": "warn",
"no-shadow": "warn",
"no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"prefer-const": "warn",
radix: ["warn", "always"],
"spaced-comment": ["warn", "always"],
"react/no-unescaped-entities": ["warn", { forbid: [">", "}"] }], // by default we can't use ' which is annoying
"react/prop-types": "off", // we take care of this with TypeScript
},
overrides: [],
};