@jpp-toolkit/eslint-config 0.0.41 → 0.0.43

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jpp-toolkit/eslint-config",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "description": "ESLint configurations for JS/TS projects.",
5
5
  "keywords": [
6
6
  "jpp",
@@ -40,8 +40,8 @@
40
40
  "eslint-import-resolver-typescript": "4.4.4",
41
41
  "eslint-plugin-import-x": "4.16.1",
42
42
  "eslint-plugin-jsx-a11y": "6.10.2",
43
- "eslint-plugin-perfectionist": "4.15.1",
44
- "eslint-plugin-prettier": "5.5.4",
43
+ "eslint-plugin-perfectionist": "5.3.1",
44
+ "eslint-plugin-prettier": "5.5.5",
45
45
  "eslint-plugin-react": "7.37.5",
46
46
  "eslint-plugin-react-hooks": "7.0.1",
47
47
  "eslint-plugin-unicorn": "62.0.0",
@@ -47,7 +47,9 @@ export const perfectionistConfig = defineConfig({
47
47
  {
48
48
  type: 'natural',
49
49
  order: 'asc',
50
- groupKind: 'types-first',
50
+ fallbackSort: { type: 'subgroup-order', order: 'asc' },
51
+ newlinesBetween: 1,
52
+ groups: [['type-export', 'export']],
51
53
  },
52
54
  ],
53
55
 
@@ -69,17 +71,19 @@ export const perfectionistConfig = defineConfig({
69
71
  {
70
72
  type: 'natural',
71
73
  order: 'asc',
72
- internalPattern: ['^~.*'],
73
- newlinesBetween: 'always',
74
+ fallbackSort: { type: 'subgroup-order', order: 'asc' },
75
+ internalPattern: ['^~.+', '^~/.+', '^@/.+'],
76
+ newlinesBetween: 1,
74
77
  groups: [
75
78
  ['side-effect', 'side-effect-style'],
76
- ['builtin-type', 'builtin'],
77
- ['external-type', 'external'],
78
- ['internal-type', 'internal'],
79
- ['parent-type', 'parent'],
80
- ['sibling-type', 'sibling'],
81
- ['index-type', 'index'],
82
- ['object'],
79
+ ['type-builtin', 'builtin'],
80
+ ['type-external', 'external'],
81
+ ['type-subpath', 'subpath'],
82
+ ['type-internal', 'internal'],
83
+ ['type-parent', 'parent'],
84
+ ['type-sibling', 'sibling'],
85
+ ['type-index', 'index'],
86
+ ['ts-equals-import'],
83
87
  ['style'],
84
88
  ['unknown'],
85
89
  ],
@@ -39,7 +39,7 @@ export const reactConfig = defineConfig({
39
39
  * Enforce all defaultProps have a corresponding non-required PropType.
40
40
  * @see {@link https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/default-props-match-prop-types.md}
41
41
  */
42
- 'react/default-props-match-prop-types': 'error',
42
+ // 'react/default-props-match-prop-types': 'error',
43
43
 
44
44
  /**
45
45
  * Enforce consistent usage of destructuring assignment of props, state, and context.
@@ -487,7 +487,7 @@ export const reactConfig = defineConfig({
487
487
  * Enforce a defaultProps definition for every prop that is not a required prop.
488
488
  * @see {@link https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/require-default-props.md}
489
489
  */
490
- 'react/require-default-props': 'error',
490
+ // 'react/require-default-props': 'error',
491
491
 
492
492
  /**
493
493
  * Enforce React components to have a shouldComponentUpdate method.
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { defineConfig } from 'eslint/config';
2
1
  import type { Config } from 'eslint/config';
2
+ import { defineConfig } from 'eslint/config';
3
3
  import globals from 'globals';
4
4
 
5
5
  import { eslintConfig } from './configs/eslint-config';