From 02c49635315661ca08deb0859c5ba33113368b9b Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Wed, 3 Aug 2022 13:59:23 +0200 Subject: [PATCH] refactor(lint): externalization of prettier for simpler IDE support --- .eslintrc.cjs | 11 +---------- .prettierrc | 7 +++++++ package-lock.json | 1 + package.json | 1 + 4 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 .prettierrc 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",