diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index cfec5d9..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,42 +0,0 @@ -module.exports = { - root: true, - env: { - node: true, - }, - extends: ["plugin:vue/essential", "@vue/prettier"], - 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"], - }, - ], - }, - parserOptions: { - parser: "@babel/eslint-parser", - }, - overrides: [ - { - files: ["**/__tests__/*.{j,t}s?(x)"], - env: { - jest: true, - }, - }, - ], -}; diff --git a/README.md b/README.md index dc2d465..6602526 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ See [`docs/config.md`](docs/config.md) for all available options. ## Development - Run `npm install` to install dependencies -- Run `npm run serve` to compile for development and start the hot-reload server +- Run `npm run dev` to compile for development and start the hot-reload server - Run `npm run lint:js` to lint JavaScript/Vue files - Run `npm run lint:md` to lint Markdown files - Run `npm run lint:scss` to lint SCSS files diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index 162a3ea..0000000 --- a/babel.config.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - presets: ["@vue/cli-plugin-babel/preset"], -}; diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..09187db --- /dev/null +++ b/eslint.config.js @@ -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"], + }, + ], + }, + }, +]; diff --git a/public/index.html b/index.html similarity index 64% rename from public/index.html rename to index.html index 6e14b6a..d40b928 100644 --- a/public/index.html +++ b/index.html @@ -4,8 +4,8 @@ - - + +