Skip to content

Commit

Permalink
feat: initial implementation
Browse files Browse the repository at this point in the history
test to be added.
  • Loading branch information
haoqunjiang committed Sep 19, 2024
1 parent daced45 commit f1d244f
Show file tree
Hide file tree
Showing 31 changed files with 2,331 additions and 4,005 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
package-lock.json
dist
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"arrowParens": "avoid"
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ export default [

// Optional: specify the script langs in `.vue` files
// Defaults to `{ ts: true, js: false, tsx: false, jsx: false }`
scriptLang: {
supportedScriptLangs: {
ts: true,

// [Discouraged]
// Set to `true` to allow plain `<script>` or `<script setup>` blocks.
// This might result-in false positive or negatives in some rules for `.vue` files.
// Note you also need to configure `allowJs: true` in corresponding `tsconfig.json` files.
js: false,

// [Strongly discouraged]
Expand Down
46 changes: 0 additions & 46 deletions index.js

This file was deleted.

59 changes: 39 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
{
"name": "@vue/eslint-config-typescript",
"version": "13.0.0",
"description": "eslint-config-typescript for vue-cli",
"main": "index.js",
"description": "ESLint config for TypeScript + Vue.js projects",
"main": "./dist/index.js",
"type": "module",
"files": [
"index.js",
"recommended.js"
"dist"
],
"exports": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"scripts": {
"test": "jest"
"format": "prettier --write src",
"type-check": "tsc --noEmit",
"test": "vitest",
"prepublishOnly": "pkgroll"
},
"publishConfig": {
"access": "public"
Expand All @@ -20,6 +33,8 @@
"keywords": [
"vue",
"cli",
"create-vue",
"create-eslint-config",
"eslint",
"typescript"
],
Expand All @@ -30,31 +45,35 @@
},
"homepage": "https://github.com/vuejs/eslint-config-typescript#readme",
"devDependencies": {
"eslint": "^8.56.0",
"eslint-plugin-vue": "^9.22.0",
"execa": "^4.1.0",
"jest": "^26.6.3",
"typescript": "^5.4.2",
"vue": "^2.7.14",
"vue-class-component": "^7.2.6",
"vue-property-decorator": "^9.1.2"
"@tsconfig/node20": "^20.1.4",
"@types/node": "^22.5.5",
"eslint": "^9.10.0",
"eslint-plugin-vue": "^9.28.0",
"execa": "^9.4.0",
"pkgroll": "^2.5.0",
"prettier": "^3.3.3",
"tsx": "^4.19.1",
"typescript": "~5.6.2",
"vitest": "^2.1.1",
"vue": "^3.5.6"
},
"peerDependencies": {
"eslint": "^8.56.0",
"eslint-plugin-vue": "^9.0.0",
"typescript": ">=4.7.4"
"eslint": "^9.10.0",
"eslint-plugin-vue": "^9.28.0",
"typescript": ">=4.8.4"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"vue-eslint-parser": "^9.3.1"
"@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/parser": "^8.6.0",
"typescript-eslint": "^8.6.0",
"vue-eslint-parser": "^9.4.3"
},
"engines": {
"node": "^18.18.0 || >=20.0.0"
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
}
}
Loading

0 comments on commit f1d244f

Please sign in to comment.