mon-entreprise/.eslintrc.yaml

47 lines
898 B
YAML
Raw Normal View History

2016-06-29 10:27:04 +00:00
rules:
quotes:
2018-06-26 08:45:41 +00:00
- 1 # While https://github.com/eslint/eslint/issues/9662#issuecomment-353958854 we don't enforce this
- single
2018-06-26 08:45:41 +00:00
- avoidEscape: true
2017-01-20 11:08:43 +00:00
no-console: 1
no-restricted-globals: [2, 'length']
2017-01-20 11:08:43 +00:00
no-global-assign: 0
no-unsafe-negation: 0
react/prop-types: 0
2018-07-06 12:36:09 +00:00
react/jsx-no-target-blank: 0
2018-07-27 15:45:49 +00:00
react/no-unescaped-entities: 0
react/display-name: 1
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: warn
2016-06-29 10:27:04 +00:00
parser: babel-eslint
plugins:
- react
- react-hooks
2016-06-29 10:27:04 +00:00
env:
2017-01-20 11:08:43 +00:00
browser: true
commonjs: true
es6: true
settings:
react:
version: 'detect'
flowVersion: '0.92'
overrides:
2019-10-02 14:38:08 +00:00
- files: ['*.test.js', 'cypress/integration/**/*.js']
env:
mocha: true
globals:
2018-07-12 08:09:41 +00:00
process: false
2016-06-29 10:27:04 +00:00
extends:
- eslint:recommended
- plugin:react/recommended
- prettier
- prettier/flowtype
- prettier/react
2016-06-29 10:27:04 +00:00
parserOptions:
ecmaFeatures:
2017-01-20 11:08:43 +00:00
jsx: true