-
-
Notifications
You must be signed in to change notification settings - Fork 128
/
.eslintrc.yml
49 lines (40 loc) · 899 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
---
root: true
parser: "@typescript-eslint/parser"
extends:
# https://github.com/yannickcr/eslint-plugin-react
- plugin:react/recommended
- eslint:recommended
- plugin:@next/next/recommended
plugins:
- react
settings:
react:
version: detect
env:
es6: true
browser: true
node: true
globals:
fetch: true
navigator: true
__DEV__: true
XMLHttpRequest: true
React$Element: true
Generator: true
parserOptions:
ecmaVersion: 2017
sourceType: module
ecmaFeatures:
jsx: true
rules:
semi: [error, never]
no-case-declarations: off
### From error to warning ###
# was not working when used with flow prop types
no-unused-vars: off # TODO: warn later
react/no-unescaped-entities: off
react/no-unused-prop-types: warn
react/no-unknown-property: [2, { ignore: [ jsx ] }]
react/react-in-jsx-scope: off
react/prop-types: off # TODO: open later