-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.ts
More file actions
33 lines (32 loc) · 884 Bytes
/
eslint.config.ts
File metadata and controls
33 lines (32 loc) · 884 Bytes
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
import {
defineConfigWithVueTs,
vueTsConfigs,
} from '@vue/eslint-config-typescript';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import pluginVue from 'eslint-plugin-vue';
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
export default defineConfigWithVueTs(
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
},
pluginVue.configs['flat/recommended'],
vueTsConfigs.strictTypeChecked,
skipFormatting,
prettierRecommended,
{
rules: {
'prettier/prettier': ['off'],
/**
* vueTsConfigs.strictTypeChecked sets allowNumber to false, but it is very strict
*/
'@typescript-eslint/restrict-template-expressions': [
'error',
{
allowNumber: true,
},
],
'@typescript-eslint/consistent-type-imports': 'error',
},
},
);