eslint-plugin-perfectionist 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,7 @@ const sortImports = createEslintRule.createEslintRule({
42
42
  'unknown',
43
43
  ],
44
44
  customGroups: { value: {}, type: {} },
45
- internalPattern: ['^~/.*'],
45
+ internalPattern: ['^~/.+'],
46
46
  partitionByComment: false,
47
47
  partitionByNewLine: false,
48
48
  newlinesBetween: 'always',
@@ -584,10 +584,10 @@ const sortImports = createEslintRule.createEslintRule({
584
584
  'unknown',
585
585
  ],
586
586
  customGroups: { value: {}, type: {} },
587
+ internalPattern: ['^~/.+'],
587
588
  partitionByComment: false,
588
589
  partitionByNewLine: false,
589
590
  specialCharacters: 'keep',
590
- internalPattern: ['~/**'],
591
591
  newlinesBetween: 'always',
592
592
  sortSideEffects: false,
593
593
  type: 'alphabetical',
@@ -272,6 +272,13 @@ let analyzeModule = ({
272
272
  if (!selector || !name) {
273
273
  continue
274
274
  }
275
+ if (
276
+ selector === 'class' &&
277
+ modifiers.includes('export') &&
278
+ modifiers.includes('decorated')
279
+ ) {
280
+ continue
281
+ }
275
282
  let { defineGroup, getGroup } = useGroups.useGroups(options)
276
283
  for (let officialGroup of generatePredefinedGroups.generatePredefinedGroups(
277
284
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-perfectionist",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -23,7 +23,6 @@
23
23
  "./dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@azat-io/eslint-config": "^2.1.2",
27
26
  "@typescript-eslint/types": "^8.15.0",
28
27
  "@typescript-eslint/utils": "^8.15.0",
29
28
  "natural-orderby": "^5.0.0"