Skip to content

Commit

Permalink
Merge pull request #9 from lapras-inc/feature/vue3
Browse files Browse the repository at this point in the history
Vue3用のESlint config追加
  • Loading branch information
tktcorporation authored Jan 30, 2023
2 parents b882405 + c78584a commit 71d98c4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"engines": {
"node": ">=14"
},
"version": "2.0.1",
"version": "3.0.0",
"description": "ESLint configuration rules.",
"main": "index.js",
"repository": "[email protected]:lapras-inc/frontend-config.git",
Expand All @@ -13,8 +13,8 @@
"author": "Lapras Inc.",
"license": "MIT",
"peerDependencies": {
"eslint": ">= 6",
"eslint-plugin-vue": ">= 7",
"eslint": ">= 7",
"eslint-plugin-vue": ">= 9",
"@typescript-eslint/eslint-plugin": ">= 3",
"@typescript-eslint/parser": ">= 3",
"@vue/eslint-config-prettier": ">= 6",
Expand Down
28 changes: 28 additions & 0 deletions vue3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
extends: [
'plugin:vue/vue3-essential',
'@vue/typescript/recommended',
'@vue/prettier',
],
rules: {
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: {
delimiter: 'none',
},
}],
'@typescript-eslint/explicit-module-boundary-types': 'off',
// TS側でoverrideしているため、元ルールはOFFにする必要がある
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-shadow.md#how-to-use
"no-shadow": "off",
'no-param-reassign': [
'error',
{
props: true,
ignorePropertyModificationsFor: [
'state', // for vuex
],
},
],
"vue/require-explicit-emits": "error",
},
}

0 comments on commit 71d98c4

Please sign in to comment.