forked from mdx-js/mdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
80 lines (71 loc) · 1.39 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
root: true
parserOptions:
ecmaVersion: 9
sourceType: module
ecmaFeatures:
jsx: true
env:
es6: 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
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'
extends: plugin:mdx/recommended
- files: '*.mdx'
extends:
- plugin:mdx/recommended
- plugin:mdx/overrides
globals:
Speaker: false
SpeakerList: false
rules:
import/no-extraneous-dependencies: 0
no-warning-comments: 0
- 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