-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
31 lines (31 loc) · 892 Bytes
/
.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
module.exports = {
root: true,
env: { es2022: true, node: true, browser: false },
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './tsconfig.*.json'],
},
plugins: ['@typescript-eslint', 'unicorn'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/strict',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
rules: {
'no-alert': 'error',
'no-console': 'warn',
'no-debugger': 'warn',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
},
settings: {
'import/resolver': {
node: { extensions: ['.ts', '.js', '.cjs', '.mjs'] },
},
},
};