-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
42 lines (42 loc) · 1.14 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
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
plugins: ['prettier'],
parser: '@typescript-eslint/parser',
extends: ['standard-with-typescript', 'prettier'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
// https://typescript-eslint.io/linting/typed-linting/monorepos/
project: ['./packages/*/tsconfig*.json', './clis/*/tsconfig*.json', './tsconfig*.json'],
},
ignorePatterns: [
'node_modules',
'dist',
'coverage',
'build',
'docs',
'reports',
'.scripts',
'.secrets',
'.yarn',
'.cache',
'.pnp.*',
'.eslintrc.cjs',
'jest.config.js',
],
rules: {
'prettier/prettier': 'error',
quotes: ['error', 'backtick', { avoidEscape: true, allowTemplateLiterals: true }],
/* express 5 support promises */
'@typescript-eslint/no-misused-promises': 'off',
/* unused variables is not an issue, only warning */
'@typescript-eslint/no-unused-vars': 'warn',
/* allow any in template strings */
'@typescript-eslint/restrict-template-expressions': ['warn', { allowAny: true, allowNever: true }],
},
}