forked from kentcdodds/kentcdodds.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
39 lines (34 loc) · 1.14 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
module.exports = {
extends: [
'eslint-config-kentcdodds',
'eslint-config-kentcdodds/jest',
'eslint-config-kentcdodds/jsx-a11y',
'eslint-config-kentcdodds/react',
],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
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',
},
}