forked from mdx-js/mdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
99 lines (89 loc) · 1.91 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
root: true
parserOptions:
ecmaVersion: 2021
sourceType: module
ecmaFeatures:
jsx: true
env:
es6: true
browser: true
node: true
plugins:
- import
- prettier
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:import/errors
- xo
- prettier
rules:
eqeqeq: off
no-eq-null: off
no-negated-condition: off
no-unused-vars:
- error
- args: after-used
argsIgnorePattern: '^_'
no-var: error
import/no-extraneous-dependencies: error
prettier/prettier: error
no-console: off
import/no-unresolved:
- error
- ignore:
- '@mdx-js/react'
react/prop-types: off
react/display-name: off
react/no-children-prop: off
react/react-in-jsx-scope: off
settings:
react:
version: 16.3.2
overrides:
- files: '*.{md,mdx}'
extends:
- plugin:mdx/recommended
- plugin:mdx/overrides
rules:
import/no-extraneous-dependencies: 0
prettier/prettier: error
- files:
- '**/test/**/*.js'
- '**/*.test.js'
env:
jest: true
rules:
import/no-extraneous-dependencies: 0
- files:
- 'examples/**/*.js'
env:
browser: true
- files:
- 'docs/**/*.js'
- 'examples/**/*.js'
rules:
import/no-unresolved: off
import/no-extraneous-dependencies: off
- files:
- 'examples/next/**/*.js'
rules:
react/react-in-jsx-scope: off
- files:
- '*.ts'
- '*.tsx'
extends: 'plugin:@typescript-eslint/recommended'
settings:
import:
resolver:
typescript: null
- files:
- '*.d.ts'
- '**/types/*.ts'
- '**/types/*.tsx'
rules:
'@typescript-eslint/ban-types': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-unused-vars': off # https://github.com/typescript-eslint/typescript-eslint/issues/2867
import/no-extraneous-dependencies: off
'no-unused-expressions': off