-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
44 lines (44 loc) · 1.16 KB
/
.eslintrc.json
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
43
44
{
"extends": [
"airbnb",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:@next/next/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier"
],
"plugins": ["react", "prettier", "@typescript-eslint", "react-hooks"],
"rules": {
// TS RULES
"@typescript-eslint/no-explicit-any": "off", // TODO turn this back on asap
// REACT RULES
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"react/function-component-definition": "off", // not working with arrow functions?
"react/jsx-filename-extension": "off", // not working with .tsx?
// IMPORT
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
// GENERAL
"no-console": "off" // TODO Turn back on at launch
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
}
}