This repository was archived by the owner on Jul 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
62 lines (62 loc) · 1.32 KB
/
.eslintrc.js
File metadata and controls
62 lines (62 loc) · 1.32 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"next/core-web-vitals",
"airbnb-typescript",
"plugin:prettier/recommended",
"plugin:storybook/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
project: "./tsconfig.json",
},
plugins: ["react", "@typescript-eslint"],
rules: {
"@typescript-eslint/consistent-type-imports": [
2,
{
prefer: "type-imports",
},
],
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"import/order": [
1,
{
groups: [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
],
},
],
"react/jsx-key": 2,
"arrow-body-style": 2,
"no-void": [
"error",
{
allowAsStatement: true,
},
],
},
};