-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
27 lines (27 loc) · 909 Bytes
/
.eslintrc
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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "prettier"],
"ignorePatterns": ["node_modules/", "*.d.ts", "build/", "plasmo/"],
"rules": {
"react/react-in-jsx-scope": "off",
"no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["draft", "state", "acc"] }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-empty-function": ["error", { "allow": ["methods", "arrowFunctions"] }]
}
}