@dr.pogodin/eslint-configs 0.2.1 → 0.2.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.
@@ -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,14 @@ 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
- }];
290
-
291
284
  settings.perfectionist = {
292
285
  alphabet: Alphabet.generateRecommendedAlphabet()
293
286
  .placeAllWithCaseBeforeAllWithOtherCase('uppercase')
287
+ .placeCharacterBefore({ characterAfter: '-', characterBefore: '/' })
294
288
  .getCharacters(),
295
289
  ignoreCase: false,
290
+ newlinesBetween: 'ignore',
291
+ newlinesInside: 'ignore',
296
292
  partitionByNewLine: true,
297
293
  };
298
294
  }
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.2",
4
4
  "description": "ESLint configurations for TypeScript and/or React projects",
5
5
  "type": "module",
6
6
  "main": "./config/index.js",