-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc.js
36 lines (34 loc) · 915 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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"prettier",
],
rules: {
"@typescript-eslint/no-explicit-any": "off",
// see https://emotion.sh/docs/eslint-plugin-react
"react/no-unknown-property": ["error", { ignore: ["css"] }],
// make eslint consistent with typescript's rules: prefixing a variable with _
// means it's ok to be unreferenced
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
},
env: {
browser: "true",
node: "true",
},
settings: {
react: {
version: "detect",
},
},
};