Skip to content

Commit 47ac84c

Browse files
authoredMay 23, 2023
chore: add sort-imports rule (vuetifyjs#17431)
1 parent ff904b3 commit 47ac84c

File tree

267 files changed

+906
-551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+906
-551
lines changed
 

‎.eslintrc.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ module.exports = {
179179
'@typescript-eslint/no-inferrable-types': 'error',
180180
'@typescript-eslint/unified-signatures': 'error',
181181
'@typescript-eslint/no-invalid-this': 'error',
182-
'@typescript-eslint/consistent-type-imports': 'error',
182+
'@typescript-eslint/consistent-type-imports': ['error', {
183+
prefer: 'type-imports',
184+
fixStyle: 'separate-type-imports',
185+
}],
186+
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
187+
'import/no-duplicates': ['error', { 'prefer-inline': false }],
183188
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
184189
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
185190
// '@typescript-eslint/no-unnecessary-condition': 'error',

‎eslint-local-rules.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ module.exports = {
77
'jsx-curly-spacing': require('./scripts/rules/jsx-curly-spacing'),
88
'jest-global-imports': require('./scripts/rules/jest-global-imports'),
99
'cypress-types-reference': require('./scripts/rules/cypress-types-reference'),
10+
'sort-imports': require('./scripts/rules/sort-imports'),
1011
}

0 commit comments

Comments
 (0)
Please sign in to comment.