-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.js
30 lines (30 loc) · 983 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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['@typescript-eslint', 'prettier'],
parser: '@typescript-eslint/parser',
env: {
browser: true,
node: true,
},
rules: {
'prettier/prettier': 'error',
'import/prefer-default-export': 'off',
indent: 'off',
'implicit-arrow-linebreak': 'off', // conflicts with prettier
'no-unused-expressions': 'off', // breaks optional chaining
'@typescript-eslint/no-unused-expressions': 'error',
'max-len': ['error', { code: 120 }],
'@typescript-eslint/no-empty-function': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'error',
'operator-linebreak': 'off',
'no-param-reassign': ['error', { props: false }],
'object-curly-newline': 'off',
},
};