-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.cjs
44 lines (44 loc) · 1.36 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
38
39
40
41
42
43
44
module.exports = {
env: {
node: true,
es2021: true
},
extends: ['plugin:@next/next/recommended', 'standard-with-typescript'],
overrides: [
],
ignorePatterns: [
'src/components/**/*',
'./next-env.d.ts'
],
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module',
project: [
'./tsconfig.json',
'./src/web/tsconfig.json'
]
},
rules: {
semi: 'off',
'@typescript-eslint/semi': 'off',
'space-before-function-paren': 'off',
'@typescript-eslint/space-before-function-paren': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'warn',
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' }
]
},
plugins: ['unused-imports']
};