-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.mjs
48 lines (46 loc) · 1.05 KB
/
eslint.config.mjs
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
// eslint.config.js
import eslint from '@eslint/js';
import wdnsConfig from '@wdns/eslint-config-wdns';
import tseslint from 'typescript-eslint';
import AutoImportJson from './.eslintrc-auto-import.json' with { type: 'json' };
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...wdnsConfig,
{
ignores: [
'**/cypress/**',
'**/*.cy.ts',
'cypress.config.ts',
'vite.build.config.mts',
'vite.config.mts',
'src/playground/configs/templates/PlaygroundPage.vue',
],
},
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
languageOptions: {
...AutoImportJson,
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
parser: tseslint.parser,
project: ['./tsconfig.json', './tsconfig.node.json'],
extraFileExtensions: ['.vue'],
sourceType: 'module',
},
},
plugins: {
'typescript-eslint': tseslint.plugin,
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
},
},
},
);