Skip to content

Commit

Permalink
chore(eslint): define eslint flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
j10ccc committed Oct 10, 2024
1 parent d983b6d commit a9c2c22
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
38 changes: 38 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import pluginVue from "eslint-plugin-vue";
import vueTsEslintConfig from "@vue/eslint-config-typescript";

export default [
...pluginVue.configs["flat/recommended"],
...vueTsEslintConfig(),
{
rules: {
indent: ["error", 2],
quotes: ["error", "double"],
camelcase: "warn",
semi: "error",
"no-trailing-spaces": "error",
"linebreak-style": ["error", "unix"],
"no-warning-comments": "warn",
"@typescript-eslint/no-explicit-any": "off"
},
},
{
files: ["**/*.vue"],
rules: {
"vue/multi-word-component-names": "off",
}
},
{
files: ["config/*.js"],
rules: {
"@typescript-eslint/no-require-imports": "off"
}
},
{
ignores: [
"dist/*",
".swc/*",
".github/*"
],
}
];
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"style-loader": "1.3.0",
"stylelint": "^14.4.0",
"typescript": "^4.1.0",
"vue-eslint-parser": "^9.4.3",
"vue-loader": "^17.0.0",
"webpack": "5.69.0"
}
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a9c2c22

Please sign in to comment.