forked from Cardinal-Cryptography/arbitrum-token-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1.07 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
module.exports = {
plugins: ["@typescript-eslint", "jest"],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:jest/recommended",
"next",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.eslint.json", "./packages/*/tsconfig.json"],
tsconfigRootDir: __dirname,
sourceType: "module",
},
settings: {
react: {
version: "detect",
},
next: {
rootDir: "packages/arb-token-bridge-ui/",
},
},
rules: {
"react/jsx-uses-react": "off", // we're using React 17+ so it's irrelevant
"react/react-in-jsx-scope": "off", // we're using React 17+ so it's irrelevant
"@typescript-eslint/explicit-module-boundary-types": "off", // allow type inference for function return type
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": "allow-with-description",
"ts-nocheck": "allow-with-description",
"ts-check": "allow-with-description",
},
],
},
};