-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.cjs
44 lines (44 loc) · 1.19 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
// import pluginVue from "eslint-plugin-vue"
// import tsParser from "@typescript-eslint/parser"
module.exports = {
// ...pluginVue.configs['flat/essential'],
root: true, // Tell ESList to stop looking for parent level config file
// languageOptions: {
parser: "vue-eslint-parser",
parserOptions: {
parser: '@typescript-eslint/parser',
// // ecmaVersion: "latest",
// // sourceType: "module"
},
// }
env: {
browser: true, es2020: true, node:true
},
extends: [
// "@vue/typescript/recommend",
// // "plugin:@typescript-eslint/recommended",
"eslint:recommended",
// // "plugin:prettier/recommended",
"plugin:vue/vue3-recommended",
"prettier"
],
plugins: ["vue", "prettier" /*, "@typescript-eslint" */],
rules: {
"vue/multi-word-component-names": "off",
"prettier/prettier": ["error"]
// "vue/no-unused-vars": "error",
// // "space-before-function-paren": "never",
// "vue/multi-word-component-names":"off"
},
// overrides: [
// {
// files: [
// "**/__tests__/*.{j,t}s?(x)",
// "**/tests/unit/**/*.spec.{j,t}s?(x)"
// ],
// env: {
// jest: true
// }
// }
// ]
};