-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
32 lines (32 loc) · 823 Bytes
/
.eslintrc.js
File metadata and controls
32 lines (32 loc) · 823 Bytes
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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig-eslint.json",
tsconfigRootDir: __dirname,
sourceType: "module",
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: ["@typescript-eslint", "jest", "simple-import-sort"],
extends: [
"standard-with-typescript",
"plugin:react/recommended",
"plugin:jest/recommended",
],
globals: {
FormData: false,
fetch: false,
},
rules: {
// note you must disable the base rule as it can report incorrect errors
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"react/prop-types": "off",
"simple-import-sort/imports": "error",
},
settings: {
react: {
version: "detect",
},
},
ignorePatterns: ["!.storybook"],
};