diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 8b6c433e..611ae17d 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -16,15 +16,6 @@ module.exports = { }, rules: { 'vue/multi-word-component-names': ['off'], - 'prettier/prettier': [ - 'error', - { - singleQuote: true, - semi: true, - tabWidth: 2, - trailingComma: 'all', - printWidth: 120, - }, - ], + 'prettier/prettier': ['error'], }, }; diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..13799bc9 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "singleQuote": true, + "semi": true, + "tabWidth": 2, + "trailingComma": "all", + "printWidth": 120 +} diff --git a/package-lock.json b/package-lock.json index 6bbf676b..72a3c03b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,6 +54,7 @@ "@vue/tsconfig": "^0.1.3", "c8": "^7.11.0", "eslint": "^8.5.0", + "eslint-config-prettier": "^8.5.0", "eslint-plugin-vue": "^8.2.0", "jsdom": "^19.0.0", "less": "^4.1.2", diff --git a/package.json b/package.json index afbeab8d..52bbe452 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ "@vue/tsconfig": "^0.1.3", "c8": "^7.11.0", "eslint": "^8.5.0", + "eslint-config-prettier": "^8.5.0", "eslint-plugin-vue": "^8.2.0", "jsdom": "^19.0.0", "less": "^4.1.2",