-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
35 lines (34 loc) · 936 Bytes
/
.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
// I don't like making this a .js file but controlling it with comments is nice.
module.exports = {
extends: ['typescript', /* 'typescript/react', */ 'airbnb', 'typescript/prettier'],
// settings: {
// 'import/resolver': {
// webpack: {
// config: 'webpack.dev.js',
// },
// },
// },
plugins: ['sort-keys-fix'],
rules: {
'no-console': 'off',
'prettier/prettier': 'error',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
// 'react/jsx-filename-extension': [
// 2,
// {
// extensions: ['.tsx', '.jsx'],
// },
// ],
'sort-keys-fix/sort-keys-fix': ['error', 'asc', { caseSensitive: true, natural: true }],
// 'jsx-a11y/label-has-associated-control': [
// 1,
// {
// labelComponents: ['CustomInputLabel'],
// labelAttributes: ['label'],
// controlComponents: ['CustomInput'],
// assert: 'either',
// },
// ],
// 'jsx-a11y/label-has-for': [0],
},
};