-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.yml
45 lines (45 loc) · 1.08 KB
/
.eslintrc.yml
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
root: true
extends:
- eslint:recommended
- next
- plugin:@typescript-eslint/recommended
- plugin:jsx-a11y/strict
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
- jsx-a11y
- sort-imports-es6-autofix
- prettier
settings:
next:
rootDir: [app/, packages/*/]
rules:
no-console: 2
no-unused-vars: 0
"@typescript-eslint/no-unused-vars": 2
prettier/prettier: 2
react/function-component-definition:
- 2
- namedComponents: "arrow-function"
unnamedComponents: "arrow-function"
no-var: 2
sort-imports-es6-autofix/sort-imports-es6:
- 2
- ignoreCase: false
ignoreMemberSort: false
memberSyntaxSortOrder:
- none
- all
- multiple
- single
"@typescript-eslint/consistent-type-imports":
- 2
- prefer: "type-imports"
object-shorthand:
- 2
- always
- avoidExplicitReturnArrows: true
no-restricted-imports:
- 2
- paths:
- next/link