-
Notifications
You must be signed in to change notification settings - Fork 23
/
.eslintrc.js
42 lines (42 loc) · 1.08 KB
/
.eslintrc.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
34
35
36
37
38
39
40
41
42
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["jest", "react", "@typescript-eslint", "jsx-a11y"],
globals: {
ga: "readonly",
},
env: {
browser: true,
es6: true,
node: true,
"jest/globals": true,
jest: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended",
],
parserOptions: {
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
rules: {
"linebreak-style": ["error", "unix"],
semi: ["error", "always"],
"object-curly-spacing": ["error", "always"],
"react/react-in-jsx-scope": "off",
"react/display-name": "off",
"react/no-unescaped-entities": "off",
// Disabled for good reason, see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
"no-undef": "off",
},
settings: {
react: {
version: "detect",
},
},
};