Skip to content

Commit

Permalink
feat: upgrade prettier to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
auvred committed Jul 19, 2023
1 parent 9ea8954 commit a7bc269
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 177 deletions.
16 changes: 7 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ const config = {
{
files: ['*.html'],
parser: '@html-eslint/parser',
plugins: ['@so1ve/prettier'],
plugins: ['prettier'],
rules: {
'@so1ve/prettier/prettier': [
'@prettier/prettier': [
'error',
{ ...prettierConfig, parser: 'angular' },
],
Expand All @@ -219,25 +219,23 @@ const config = {
'*.yml',

'*.md',

'*.vue',
],
plugins: ['@so1ve/prettier'],
plugins: ['prettier'],
rules: {
'@so1ve/prettier/prettier': ['error', prettierConfig],
'prettier/prettier': ['error', prettierConfig],
},
},
{
files: ['*.vue'],
extends: [
'plugin:vue/vue3-recommended',
'plugin:prettier-vue/recommended',
],
extends: ['plugin:vue/vue3-recommended'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
'no-undef': 'off',
'prettier-vue/prettier': ['error', prettierConfig],
'vue/html-quotes': ['error', 'double', { avoidEscape: false }],
'vue/max-attributes-per-line': [
'error',
Expand Down
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,14 @@
"dependencies": {
"@html-eslint/eslint-plugin": "^0.19.0",
"@html-eslint/parser": "^0.19.0",
"@so1ve/eslint-plugin-prettier": "^0.107.1",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "npm:eslint-plugin-i@2.27.5-3",
"eslint-plugin-jsonc": "^2.9.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-prettier-vue": "^4.2.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^47.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
Expand All @@ -58,17 +56,17 @@
"find-up": "^5.0.0",
"js-yaml": "^4.1.0",
"jsonc-eslint-parser": "^2.3.0",
"prettier-plugin-jsdoc": "^0.4.2"
"prettier-plugin-jsdoc": "^1.0.0"
},
"devDependencies": {
"bumpp": "^9.1.1",
"eslint": "^8.44.0",
"lint-staged": "^13.2.3",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"simple-git-hooks": "^2.8.1"
},
"peerDependencies": {
"eslint": ">=8.0.0",
"prettier": ">=2.0.0"
"eslint": "^8.0.0",
"prettier": "^3.0.0"
}
}
Loading

0 comments on commit a7bc269

Please sign in to comment.