-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact.js
33 lines (29 loc) · 801 Bytes
/
react.js
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
"use strict";
module.exports = {
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
},
plugins: ["jsx-a11y", "react", "react-hooks"],
extends: [
"plugin:jsx-a11y/strict",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
require.resolve("eslint-config-prettier"),
],
rules: {
// https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
// I just think TypeScript is neat :)
"react/prop-types": "off",
// deprecated, see jsx-a11y/label-has-associated-control
"jsx-a11y/label-has-for": "off",
// deprecated, only applies to older browsers/buggy implementations
"jsx-a11y/no-onchange": "off",
},
};