forked from incubateur-ademe/nosgestesclimat-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
44 lines (40 loc) · 852 Bytes
/
.eslintrc.yaml
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
rules:
quotes:
- 1 # While https://github.com/eslint/eslint/issues/9662#issuecomment-353958854 we don't enforce this
- single
- avoidEscape: true
no-console: 1
no-restricted-globals: [2, 'length']
no-global-assign: 0
no-unsafe-negation: 0
react/prop-types: 0
react/jsx-no-target-blank: 0
react/no-unescaped-entities: 0
react/display-name: 0
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: warn
parser: babel-eslint
plugins:
- react
- react-hooks
env:
browser: true
commonjs: true
es6: true
settings:
react:
version: 'detect'
overrides:
- files: ['*.test.js', 'cypress/integration/**/*.js']
env:
mocha: true
globals:
process: false
extends:
- eslint:recommended
- plugin:react/recommended
- prettier
- prettier/react
parserOptions:
ecmaFeatures:
jsx: true