-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.yml
66 lines (58 loc) · 1.35 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:@typescript-eslint/recommended
# Import sorting
- plugin:import/errors
- plugin:import/warnings
- plugin:import/typescript
# prettier/recommended disables any eslint rules that could conflict
- plugin:prettier/recommended
- prettier/react
- prettier/@typescript-eslint
plugins:
- react
- '@typescript-eslint'
- import
- prettier
env:
browser: true
jasmine: true
jest: true
rules:
# Formatting
# See also .prettierrc.yml and .editorconfig
prettier/prettier: warn
import/first: warn
import/newline-after-import: warn
import/order:
- warn
- newlines-between: always
groups:
- builtin
- external
- parent
- sibling
- index
# Code quality
'@typescript-eslint/no-non-null-assertion': off
import/no-unresolved: error
import/no-named-as-default-member: warn
import/default: off # does not interpret module.exports = ... as a default export, so React false-positives
import/group-exports: warn
import/prefer-default-export: warn
settings:
react:
pragma: React
version: detect
import/parsers:
'@typescript-eslint/parser': [.ts, .tsx]
import/resolver:
typescript:
alwaysTryTypes: true
parser: '@typescript-eslint/parser'
ignorePatterns:
- node_modules/
- out
- '.next'