-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patheslint.config.js
More file actions
38 lines (38 loc) · 918 Bytes
/
eslint.config.js
File metadata and controls
38 lines (38 loc) · 918 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
33
34
35
36
37
38
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
},
plugins: ["@typescript-eslint", "prettier"],
extends: [
"airbnb-typescript",
"plugin:eslint-comments/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:storybook/recommended",
],
rules: {
"prettier/prettier": "error",
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/comma-dangle": "off",
},
overrides: [
{
files: ["./stories/**/*stories*"],
rules: {
"import/no-default-export": 0,
"import/no-extraneous-dependencies": "off",
},
},
],
settings: {
react: {
version: "detect",
},
},
};