Skip to content

Commit

Permalink
feat: add vue package for js
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Nov 20, 2021
1 parent 931131e commit 32affde
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/all/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"main": "index.js",
"peerDependencies": {
"eslint": ">=7.4.0"
"eslint": ">=8.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"access": "public"
},
"peerDependencies": {
"eslint": ">=7.4.0"
"eslint": ">=8.0.0"
},
"dependencies": {
"eslint-config-standard": "^16.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lint": "eslint . --config=index.js"
},
"peerDependencies": {
"eslint": ">=7.4.0"
"eslint": ">=8.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"access": "public"
},
"peerDependencies": {
"eslint": ">=7.4.0",
"eslint": ">=8.0.0",
"typescript": ">=3.9"
},
"dependencies": {
Expand Down
25 changes: 25 additions & 0 deletions packages/vue-js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
overrides: [
{
files: ['*.vue'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@babel/eslint-parser',
},
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
},
},
],
extends: [
'plugin:vue/vue3-recommended',
'@hannoeru/eslint-config-basic',
],
rules: {
'vue/max-attributes-per-line': ['warn', { singleline: 5 }],
// 'vue/html-self-closing': 'off',
'vue/no-v-html': 'off',
'vue/require-default-prop': 'off',
},
}
26 changes: 26 additions & 0 deletions packages/vue-js/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "@hannoeru/eslint-config-vue-js",
"version": "0.3.0",
"description": "",
"keywords": [],
"license": "MIT",
"author": "hannoeru <me@hanlee.co>",
"files": [
"index.js"
],
"main": "index.js",
"peerDependencies": {
"eslint": ">=8.0.0"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@babel/eslint-parser": "^7.16.0",
"@hannoeru/eslint-config-basic": "workspace:*",
"eslint-plugin-vue": "7.20.0"
},
"devDependencies": {
"eslint": "^8.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"main": "index.js",
"peerDependencies": {
"eslint": ">=7.4.0"
"eslint": ">=8.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
26 changes: 26 additions & 0 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 32affde

Please sign in to comment.