Skip to content

Commit

Permalink
feat: sort import order
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Apr 17, 2023
1 parent 3a5ee74 commit 13ce363
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions src/js.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import globals from 'globals'
import jsConfig from '@eslint/js'
import antfuPlugin from 'eslint-plugin-antfu'
import importPlugin from 'eslint-plugin-import'
import unicornPlugin from 'eslint-plugin-unicorn'
import antfuPlugin from 'eslint-plugin-antfu'
import globals from 'globals'

export { importPlugin, unicornPlugin, antfuPlugin }

Expand Down Expand Up @@ -138,10 +138,11 @@ export const imports = [
'sibling',
'index',
'object',
'type',
],
pathGroups: [{ pattern: '@/**', group: 'internal' }],
pathGroupsExcludedImportTypes: ['type'],
alphabetize: {
order: 'asc',
},
},
],

Expand Down
2 changes: 1 addition & 1 deletion src/markdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import markdownPlugin from 'eslint-plugin-markdown'
import tsPlugin from '@typescript-eslint/eslint-plugin'
import markdownPlugin from 'eslint-plugin-markdown'
import { GLOB_MARKDOWN, GLOB_SRC, GLOB_VUE } from './shared.js'

/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
Expand Down
2 changes: 1 addition & 1 deletion src/prettier.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import prettierPlugin from 'eslint-plugin-prettier'
import prettierConfig from 'eslint-config-prettier'
import prettierPlugin from 'eslint-plugin-prettier'

const prettierConflictRules = { ...prettierConfig.rules }
delete prettierConflictRules['vue/html-self-closing']
Expand Down
2 changes: 1 addition & 1 deletion src/typescript.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import tsParser from '@typescript-eslint/parser'
import tsPlugin from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
import { GLOB_TS, GLOB_TSX } from './shared.js'

export { tsParser, tsPlugin }
Expand Down
6 changes: 3 additions & 3 deletions src/vue.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import tsPlugin from '@typescript-eslint/eslint-plugin'
import vuePlugin from 'eslint-plugin-vue'
import { getPackageInfoSync } from 'local-pkg'
import vueParser from 'vue-eslint-parser'
import vuePlugin from 'eslint-plugin-vue'
import tsPlugin from '@typescript-eslint/eslint-plugin'
import { typescript } from './typescript.js'
import { GLOB_VUE } from './shared.js'
import { typescript } from './typescript.js'

export { vueParser, vuePlugin }

Expand Down

0 comments on commit 13ce363

Please sign in to comment.