generated from ahuglajbclajep/my-react-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
32 lines (32 loc) · 1.11 KB
/
.eslintrc.json
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": "./tsconfig.json" },
"env": { "browser": true, "es6": true, "worker": true }, // for allowJs
// see https://github.com/preactjs/preact-cli/blob/v3.0.3/.eslintrc#L20
"settings": { "react": { "version": "preact", "pragma": "h" } },
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/react"
],
"rules": {
"react/prop-types": "off",
"react/no-unknown-property": ["error", { "ignore": ["class", "spellcheck"] }],
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "Fragment" }],
"@typescript-eslint/no-floating-promises": "off"
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"rules": { "@typescript-eslint/explicit-module-boundary-types": "off" }
}
],
// for VS Code
"ignorePatterns": ["dist", "*.config.js"]
}