-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from vue-cli / webpack to vite
- Loading branch information
Showing
25 changed files
with
3,159 additions
and
12,552 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { dirname } from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import eslintPluginVue from "eslint-plugin-vue"; | ||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"; | ||
import vueParser from "vue-eslint-parser"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const eslintrc = new FlatCompat({ | ||
baseDirectory: dirname(fileURLToPath(import.meta.url)), | ||
}); | ||
|
||
export default [ | ||
...eslintrc.extends("plugin:vue/essential"), | ||
eslintPluginPrettierRecommended, | ||
{ | ||
languageOptions: { | ||
parser: vueParser, | ||
}, | ||
plugins: { | ||
vue: eslintPluginVue, | ||
}, | ||
rules: { | ||
"no-console": process.env.NODE_ENV === "production" ? "error" : "warn", | ||
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "warn", | ||
"max-len": [ | ||
"error", | ||
{ | ||
ignoreUrls: true, | ||
}, | ||
], | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
trailingComma: "es5", | ||
printWidth: 80, | ||
htmlWhitespaceSensitivity: "ignore", | ||
}, | ||
], | ||
"vue/multi-word-component-names": [ | ||
"error", | ||
{ | ||
ignores: ["Map"], | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.