Skip to content

Commit

Permalink
Merge pull request #13 from kouts/test_consume_eslint_9_config
Browse files Browse the repository at this point in the history
feat: added eslint 9
  • Loading branch information
kouts authored Aug 4, 2024
2 parents d5a73ab + b012f7b commit 510ca43
Show file tree
Hide file tree
Showing 16 changed files with 1,001 additions and 1,379 deletions.
15 changes: 0 additions & 15 deletions .eslintrc.cjs

This file was deleted.

6 changes: 3 additions & 3 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/// <reference types="vite/client" />

declare module '*.vue' {
import { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
import { type DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const component: DefineComponent<object, object, any>
export default component
}
12 changes: 12 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { config } from '@kouts/eslint-config'

export default [
...config(),
{
// Disable multi-word-component-names for pages and layouts
files: ['src/views/**/*.vue', 'src/layouts/**/*.vue'],
rules: {
'vue/multi-word-component-names': 'off'
}
}
]
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0-semantic-release",
"license": "MIT",
"repository": "https://github.com/kouts/vue3-ts-vite-starter-template",
"packageManager": "pnpm@8.9.2",
"packageManager": "pnpm@9.6.0",
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand All @@ -19,34 +19,37 @@
"prepare": "husky"
},
"dependencies": {
"pinia": "^2.1.7",
"vue": "^3.4.34",
"vue-router": "^4.4.0"
"pinia": "^2.2.0",
"vue": "^3.4.35",
"vue-router": "^4.4.2"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@fullhuman/postcss-purgecss": "^6.0.0",
"@fullhuman/vue-cli-plugin-purgecss": "^6.0.0",
"@kouts/eslint-config": "^0.0.15",
"@kouts/eslint-config": "^1.0.0",
"@types/jsdom": "^21.1.7",
"@types/node": "^20.14.12",
"@vitejs/plugin-vue": "^5.1.0",
"@vitest/coverage-v8": "^2.0.4",
"@vue/compiler-sfc": "^3.4.34",
"@types/node": "^22.1.0",
"@vitejs/plugin-vue": "^5.1.2",
"@vitest/coverage-v8": "^2.0.5",
"@vue/compiler-sfc": "^3.4.35",
"@vue/test-utils": "^2.4.6",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"husky": "^9.1.2",
"autoprefixer": "^10.4.20",
"eslint": "^9.8.0",
"husky": "^9.1.4",
"jsdom": "^24.1.1",
"lint-staged": "^15.2.7",
"lint-staged": "^15.2.8",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"sass": "^1.77.8",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vitest": "^2.0.4",
"vitest": "^2.0.5",
"vue-tsc": "^2.0.29"
},
"resolutions": {
"@typescript-eslint/utils": "^8.0.0"
}
}
Loading

0 comments on commit 510ca43

Please sign in to comment.