-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.yml
58 lines (58 loc) · 1.17 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
parser: '@typescript-eslint/parser'
env:
browser: true
es6: true
node: true
extends:
- airbnb
- airbnb/hooks
- plugin:import/typescript
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:prettier/recommended
- prettier
- prettier/@typescript-eslint
- prettier/react
rules:
react/jsx-filename-extension:
- error
- extensions:
- '.jsx'
- '.tsx'
- '.mdx'
import/extensions:
- error
- '.ts': never
'.tsx': never
'.d.ts': never
'.js': never
'.jsx': never
import/no-default-export: error
import/prefer-default-export: off
overrides:
- files:
- '*.tsx'
rules:
react/prop-types: off
- files:
- '*.js'
- '*.jsx'
rules:
'@typescript-eslint/explicit-function-return-type': off
- files:
- '.storybook/*.js'
- '*.test.js'
- '*.test.jsx'
- '*.test.ts'
- '*.test.tsx'
- '*.mdx'
rules:
import/no-extraneous-dependencies: off
- files:
- '*.md'
- '*.mdx'
extends:
- plugin:mdx/recommended
- plugin:mdx/overrides
rules:
jsx-a11y/anchor-is-valid: off