-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
30 lines (27 loc) · 848 Bytes
/
eslint.config.mjs
File metadata and controls
30 lines (27 loc) · 848 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
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import eslintConfigPrettier from "eslint-config-prettier";
import vueEslintParser from "vue-eslint-parser"
import eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';
export default [
{
languageOptions: { globals: { ...globals.browser, ...globals.node } },
},
{
files: ['**/*.vue'],
languageOptions: {
parser: vueEslintParser,
parserOptions: {
parser: '@typescript-eslint/parser',
// project: ['./tsconfig.json'],
},
}
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/strongly-recommended"],
...eslintPluginVueScopedCSS.configs['flat/recommended'],
eslintConfigPrettier,
];