-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (42 loc) · 1.23 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
43
44
45
46
47
/**
* @type {import('@types/eslint').Linter.BaseConfig}
*/
module.exports = {
extends: [
"@remix-run/eslint-config",
"@remix-run/eslint-config/node",
"@remix-run/eslint-config/jest",
"prettier",
],
parserOptions: {
tsconfigRootDir: __dirname,
project: "./tsconfig.json",
},
settings: {
jest: {
version: 27,
},
},
rules: {
"no-console": "off",
// meh...
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/sort-type-union-intersection-members": "off",
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/alt-text": "off", // it's not smart enough...
"@babel/new-cap": "off",
"react/jsx-filename-extension": "off",
"@typescript-eslint/no-namespace": "off",
// I can't figure these out:
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
// enable these again someday:
"@typescript-eslint/no-unsafe-argument": "off",
// this one isn't smart enough for our "~/" imports
"import/order": "off",
// for CatchBoundaries
"@typescript-eslint/no-throw-literal": "off",
},
};