Skip to content

Commit b3d266d

Browse files
committed
fix(eslint-config): unexpected change improts order of side effects
1 parent cc69b13 commit b3d266d

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

packages/eslint-config/index.cjs

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,32 +59,30 @@ const typeScriptRules = {
5959
'error',
6060
{
6161
groups: [
62-
[
63-
'builtin',
64-
'external',
65-
'internal',
66-
'parent',
67-
'index',
68-
'sibling',
69-
'object',
70-
'unknown'
71-
],
62+
'unknown',
63+
['builtin', 'external', 'internal', 'parent', 'index', 'sibling', 'object'],
7264
'type'
7365
],
7466
pathGroups: [
7567
{
76-
pattern: '{vitest,vue,vue-router,pinia,vuex,vue-i18n,@vue/*}',
68+
pattern: '**/*.{css,scss,sass,less,styl,stylus,json,xml}',
69+
group: 'unknown',
70+
position: 'before'
71+
},
72+
{
73+
pattern: 'node:*',
74+
group: 'builtin',
75+
position: 'before'
76+
},
77+
{
78+
pattern: '{vitest,vue,vue-router,pinia,vuex,vue-i18n,axios,@vue/*}',
7779
group: 'external',
7880
position: 'before'
7981
}
8082
],
81-
pathGroupsExcludedImportTypes: ['type'],
82-
'newlines-between': 'always',
83-
warnOnUnassignedImports: true,
84-
alphabetize: {
85-
order: 'asc',
86-
caseInsensitive: true
87-
}
83+
pathGroupsExcludedImportTypes: ['unknown', 'type'],
84+
'newlines-between': 'always-and-inside-groups',
85+
warnOnUnassignedImports: false
8886
}
8987
],
9088
'sort-imports': [

scripts/release.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
12
import fs from 'node:fs'
3+
24
import minimist from 'minimist'
3-
import semver from 'semver'
45
import prompts from 'prompts'
5-
import { logger, run, dryRun, getPackageInfo } from './utils'
6+
import semver from 'semver'
7+
8+
import { dryRun, getPackageInfo, logger, run } from './utils'
69

710
import type { ReleaseType } from 'semver'
811

scripts/utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { existsSync, lstatSync, readdirSync, rmdirSync, unlinkSync } from 'node:fs'
12
import { resolve } from 'node:path'
2-
import { readdirSync, existsSync, lstatSync, rmdirSync, unlinkSync } from 'node:fs'
3+
34
import execa from 'execa'
4-
import { bgYellow, bgCyan, bgGreen, bgRed, yellow, cyan, green, red, lightBlue } from 'kolorist'
5+
import { bgCyan, bgGreen, bgRed, bgYellow, cyan, green, lightBlue, red, yellow } from 'kolorist'
56
import prompts from 'prompts'
67

78
import type { Options } from 'execa'

0 commit comments

Comments
 (0)