forked from skyportal/skyportal-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
28 lines (28 loc) · 813 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
---
parser: "@babel/eslint-parser"
parserOptions:
requireConfigFile: false
babelOptions:
# Must match webpack.config.js
presets: ["@babel/preset-env", "@babel/preset-react"]
env:
browser: true
plugins: ["import", "react", "react-hooks"]
extends: ["airbnb", "plugin:react/recommended", "prettier"]
settings:
import/resolver:
node: { "extensions": [".js", ".jsx", ".ts", ".tsx"] }
react:
version: detect
rules:
camelcase: off
jsx-a11y/click-events-have-key-events: 0
jsx-a11y/label-has-associated-control: 0
jsx-a11y/control-has-associated-label: 0
react-hooks/rules-of-hooks: "error"
react-hooks/exhaustive-deps: "warn"
react/jsx-wrap-multilines: 0
react/jsx-one-expression-per-line: 0
react/jsx-props-no-spreading: 0
no-param-reassign: 0
react/jsx-curly-newline: 0