-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
51 lines (50 loc) · 1.57 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
45
46
47
48
49
50
51
// @ts-check
/* eslint-env node */
/* eslint-disable node/no-unpublished-require, @typescript-eslint/no-var-requires */
require('@rushstack/eslint-patch/modern-module-resolution')
const { defineConfig } = require('eslint-define-config')
module.exports = defineConfig({
root: true,
extends: [
'eslint:recommended',
'plugin:node/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:regexp/recommended'
],
plugins: ['import', 'regexp'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2021
},
rules: {
'node/no-unpublished-import': 'off',
'@typescript-eslint/ban-types': 'off', // TODO: we should turn this on in a new PR
'@typescript-eslint/no-non-null-assertion': 'off', // maybe we should turn this on in a new PR
'@typescript-eslint/no-this-alias': 'off', // maybe we should turn this on in a new PR
'@typescript-eslint/no-empty-function': 'off', // maybe we should turn this on in a new PR
'node/no-missing-import': 'off',
'node/no-unsupported-features/es-syntax': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'node/no-unsupported-features/es-builtins': [
'error',
{
version: '^14.18.0 || >=16.0.0'
}
]
},
overrides: [
{
files: ['packages/view/**'],
parserOptions: {
ecmaVersion: 'latest'
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier'
]
}
]
})