@dr.pogodin/eslint-configs 0.2.1 → 0.2.3

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.
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { defineConfig } from 'eslint/config';
4
4
  import importPlugin from 'eslint-plugin-import';
5
+
5
6
  import perfectionist from 'eslint-plugin-perfectionist';
6
7
  import { Alphabet } from 'eslint-plugin-perfectionist/alphabet';
7
8
 
@@ -280,19 +281,17 @@ function newConfig({ noPerf } = {}) {
280
281
  // eslint-disable-next-line import/no-named-as-default-member
281
282
  extentions.push(perfectionist.configs['recommended-custom']);
282
283
 
283
- // TODO: For now it is disabled because of the following Perfectionist bug:
284
- // https://github.com/azat-io/eslint-plugin-perfectionist/issues/688
285
- // and we'll keep using "import/order" rule here until the issue is addressed.
286
- rules['perfectionist/sort-imports'] = 'off';
287
- rules['import/order'] = ['error', {
288
- groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
289
- }];
284
+ const alphabet = Alphabet.generateRecommendedAlphabet()
285
+ .sortByNaturalSort()
286
+ .placeAllWithCaseBeforeAllWithOtherCase('uppercase')
287
+ .placeCharacterBefore({ characterAfter: '-', characterBefore: '/' })
288
+ .getCharacters();
290
289
 
291
290
  settings.perfectionist = {
292
- alphabet: Alphabet.generateRecommendedAlphabet()
293
- .placeAllWithCaseBeforeAllWithOtherCase('uppercase')
294
- .getCharacters(),
291
+ alphabet,
295
292
  ignoreCase: false,
293
+ newlinesBetween: 'ignore',
294
+ newlinesInside: 'ignore',
296
295
  partitionByNewLine: true,
297
296
  };
298
297
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dr.pogodin/eslint-configs",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "ESLint configurations for TypeScript and/or React projects",
5
5
  "type": "module",
6
6
  "main": "./config/index.js",
@@ -35,7 +35,7 @@
35
35
  "@babel/preset-react": "^7.28.5",
36
36
  "@babel/preset-typescript": "^7.28.5",
37
37
  "@eslint/js": "^9.39.2",
38
- "@stylistic/eslint-plugin": "^5.7.0",
38
+ "@stylistic/eslint-plugin": "^5.7.1",
39
39
  "eslint": "^9.39.2",
40
40
  "eslint-plugin-import": "^2.32.0",
41
41
  "eslint-plugin-jest": "^29.12.1",
@@ -44,7 +44,7 @@
44
44
  "eslint-plugin-react": "^7.37.4",
45
45
  "eslint-plugin-react-hooks": "^6.1.1",
46
46
  "typescript": "^5.9.3",
47
- "typescript-eslint": "^8.53.1"
47
+ "typescript-eslint": "^8.54.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "eslint-import-resolver-typescript": "^4.4.4"