generated from kir-dev/next-nest-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
47 lines (47 loc) · 1.16 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
module.exports = {
plugins: ['prettier', 'simple-import-sort'],
extends: ['plugin:@typescript-eslint/recommended', 'eslint:recommended'],
root: true,
env: {
node: true,
},
ignorePatterns: ['.eslintrc.js', '.prettierrc.js'],
rules: {
'prettier/prettier': 'error',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
camelcase: [
'error',
{
properties: 'never',
},
],
eqeqeq: 'error',
'max-depth': 'error',
'max-lines': 'error',
'no-alert': 'error',
'no-array-constructor': 'error',
'no-console': [
'error',
{
allow: ['warn', 'error'],
},
],
'no-eval': 'error',
'no-implicit-coercion': 'error',
'no-lonely-if': 'error',
'no-nested-ternary': 'error',
'no-negated-condition': 'error',
'no-unneeded-ternary': 'error',
'no-undef-init': 'error',
'no-underscore-dangle': 'error',
'no-useless-concat': 'error',
'no-void': 'error',
'no-var': 'error',
'prefer-const': 'error',
'prefer-promise-reject-errors': 'error',
'prefer-template': 'error',
yoda: 'error',
'no-unused-vars': 'off',
},
};