Skip to content

Commit

Permalink
fix: disable eslint/sort-imports
Browse files Browse the repository at this point in the history
Doesn't like types sorted after non-types

chore: update antfu to 1.0.0.beta24
  • Loading branch information
JohnCampionJr committed Oct 9, 2023
1 parent b35e8cf commit 331bd04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ config.push(eslintConfigPrettier)

config.push({
rules: {
// this doesn't like the ordering of types at the end of the imports
'sort-imports': ['off'],

// Prettier can handle this setting, see https://eslint.org/docs/latest/rules/curly#consistent
curly: ['error', 'multi', 'consistent'],

// required config for Prettier https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
'vue/html-self-closing': [
'error',
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"prettier": ">=3.0.3"
},
"dependencies": {
"@antfu/eslint-config": "^1.0.0-beta.22",
"@antfu/eslint-config": "^1.0.0-beta.24",
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
"eslint-config-prettier": "^9.0.0",
"prettier-plugin-tailwindcss": "^0.5.5"
Expand Down

0 comments on commit 331bd04

Please sign in to comment.