-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
37 lines (37 loc) · 1 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
plugins: ['@typescript-eslint'],
extends: [
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
env: {
node: true,
browser: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
rules: {
'no-console': 'warn',
'arrow-parens': ['error', 'as-needed'],
'react/react-in-jsx-scope': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'max-len': 'off',
'@typescript-eslint/no-misused-promises': ['error', {
checksVoidReturn: {
attributes: false,
},
}],
'object-curly-newline': ['error', {
ObjectExpression: { consistent: true, multiline: true },
ObjectPattern: { consistent: true, multiline: true },
ImportDeclaration: 'never',
ExportDeclaration: { multiline: true, minProperties: 3 },
}],
},
};