-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
50 lines (44 loc) · 985 Bytes
/
.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
env:
browser: false
node: true
extends:
- 'plugin:@ianwremmel/ianwremmel/modern'
- 'plugin:@ianwremmel/ianwremmel/react'
- 'plugin:@ianwremmel/ianwremmel/typescript'
- 'plugin:storybook/recommended'
- 'prettier'
overrides:
# make sure eslint lints all files
- files:
- '**/*.js'
- '**/*.jsx'
- '**/*.ts'
- '**/*.tsx'
- files:
- src/**
env:
browser: true
- files:
- '**/*.jsx'
- '**/*.tsx'
rules:
'react/jsx-uses-react': 'off'
'react/react-in-jsx-scope': 'off'
settings:
react:
version: 'detect'
rules:
import/no-extraneous-dependencies:
- error
- devDependencies: ['!src/**/*']
import/no-unresolved:
- error
- ignore:
- \.(scss|less|css)$
no-unused-vars: off
'@typescript-eslint/consistent-type-imports': error
'@typescript-eslint/no-unused-vars':
- error
- ignoreRestSiblings: true
no-duplicate-imports: off
import/no-duplicates: error