You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
772 B
44 lines
772 B
---
|
|
root: true
|
|
|
|
parser: "@typescript-eslint/parser"
|
|
|
|
extends:
|
|
# https://github.com/yannickcr/eslint-plugin-react
|
|
- plugin:react/recommended
|
|
- eslint:recommended
|
|
|
|
plugins:
|
|
- react
|
|
|
|
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/react-in-jsx-scope: off
|
|
react/prop-types: off # TODO: open later
|
|
|
|
|