Skip to content

Commit

Permalink
build: 🎨 Add ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Nov 5, 2023
1 parent 85a0532 commit 266b70b
Show file tree
Hide file tree
Showing 12 changed files with 479 additions and 107 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
"eslint:recommended",
"plugin:vue/vue3-recommended",
"@vue/eslint-config-prettier/skip-formatting",
"@vue/eslint-config-typescript",
],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parserOptions: {
ecmaVersion: "latest",
parser: "@typescript-eslint/parser",
sourceType: "module",
},
plugins: ["@typescript-eslint", "vue"],
rules: {},
};
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
},
"devDependencies": {
"@tauri-apps/cli": "^1.5.6",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@types/node": "^20.8.10",
"@vitejs/plugin-vue": "^4.4.0",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/tsconfig": "^0.4.0",
"browserslist": "^4.22.1",
"eslint": "^8.53.0",
"eslint-plugin-vue": "^9.18.1",
"postcss": "^8.4.31",
"postcss-preset-env": "^9.3.0",
"prettier": "^3.0.3",
Expand Down
Loading

0 comments on commit 266b70b

Please sign in to comment.