@skilbjo/config-rc 1.0.29 → 1.0.30

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/.depcheckrc CHANGED
@@ -1,7 +1,8 @@
1
1
  ignores: [
2
2
  '@commitlint/cli',
3
3
  '@commitlint/config-angular',
4
- '@tsconfig/node18',
4
+ '@tsconfig/node22',
5
5
  '@types/jest',
6
+ 'eslint-import-resolver-typescript',
6
7
  'husky'
7
8
  ]
@@ -26,7 +26,7 @@ jobs:
26
26
  with:
27
27
  ref: ${{ github.event.pull_request.head.sha }}
28
28
 
29
- - uses: actions/setup-node@v5
29
+ - uses: actions/setup-node@v6
30
30
  with:
31
31
  node-version-file: .nvmrc
32
32
  cache: npm
@@ -40,7 +40,7 @@ jobs:
40
40
  - name: Set up NPM authentication for dry release
41
41
  run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.ACTIONS_TOKEN }}" >> ~/.npmrc
42
42
 
43
- - uses: cycjimmy/semantic-release-action@v5
43
+ - uses: cycjimmy/semantic-release-action@v6
44
44
  id: semantic
45
45
  with:
46
46
  dry_run: true
@@ -60,10 +60,12 @@ jobs:
60
60
  timeout-minutes: 2
61
61
  permissions:
62
62
  pull-requests: write
63
+ contents: write
64
+
63
65
  if: ${{ github.actor == 'dependabot[bot]' }}
64
66
 
65
67
  steps:
66
- - uses: dependabot/fetch-metadata@v2.4.0
68
+ - uses: dependabot/fetch-metadata@v2.5.0
67
69
  with:
68
70
  github-token: ${{ secrets.GITHUB_TOKEN }}
69
71
  - name: Approve a PR
@@ -33,14 +33,14 @@ jobs:
33
33
  persist-credentials: false
34
34
  token: ${{ secrets.ACTIONS_TOKEN }}
35
35
 
36
- - uses: actions/setup-node@v5
36
+ - uses: actions/setup-node@v6
37
37
  with:
38
38
  node-version-file: .nvmrc
39
39
  cache: npm
40
40
 
41
41
  - run: make ci
42
42
 
43
- - uses: cycjimmy/semantic-release-action@v5
43
+ - uses: cycjimmy/semantic-release-action@v6
44
44
  id: semantic
45
45
  with:
46
46
  semantic_version: 24
package/CHANGELOG.md CHANGED
@@ -1,3 +1,67 @@
1
+ ## [1.0.30](https://github.com/skilbjo/config-rc/compare/v1.0.29...v1.0.30) (2026-01-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps-dev:** bump @types/node from 24.10.0 to 24.10.1 ([#420](https://github.com/skilbjo/config-rc/issues/420)) ([3ec3b04](https://github.com/skilbjo/config-rc/commit/3ec3b049c5acc8c939efad5a313022b018e7d523))
7
+ * **deps-dev:** bump @types/node from 24.10.1 to 25.0.9 ([#462](https://github.com/skilbjo/config-rc/issues/462)) ([028d2c0](https://github.com/skilbjo/config-rc/commit/028d2c099a13b40596d6108b4e8afc27055d4550))
8
+ * **deps-dev:** bump @types/node from 24.3.1 to 24.4.0 ([#386](https://github.com/skilbjo/config-rc/issues/386)) ([e122770](https://github.com/skilbjo/config-rc/commit/e122770f67f6a551e574e2440e658a867c17034d))
9
+ * **deps-dev:** bump @types/node from 24.4.0 to 24.6.2 ([#401](https://github.com/skilbjo/config-rc/issues/401)) ([dbf3ec9](https://github.com/skilbjo/config-rc/commit/dbf3ec9e83a190c28ac8776932a72ec264657708))
10
+ * **deps-dev:** bump @types/node from 24.6.2 to 24.7.2 ([#406](https://github.com/skilbjo/config-rc/issues/406)) ([76f114c](https://github.com/skilbjo/config-rc/commit/76f114c56e9c6fc30ae4dcd99893479629dc1663))
11
+ * **deps-dev:** bump @types/node from 24.7.2 to 24.8.1 ([#410](https://github.com/skilbjo/config-rc/issues/410)) ([6c38a15](https://github.com/skilbjo/config-rc/commit/6c38a15bc328db183ee7193625db983ededb995a))
12
+ * **deps-dev:** bump @types/node from 24.8.1 to 24.9.1 ([#414](https://github.com/skilbjo/config-rc/issues/414)) ([335627b](https://github.com/skilbjo/config-rc/commit/335627bd08219fbe4507016213a755a2eaf19260))
13
+ * **deps-dev:** bump @types/node from 24.9.1 to 24.10.0 ([#415](https://github.com/skilbjo/config-rc/issues/415)) ([5a65079](https://github.com/skilbjo/config-rc/commit/5a650796ad169ccd0f8e71e0e4fc6afae1d69944))
14
+ * **deps-dev:** bump js-yaml in the npm_and_yarn group across 1 directory ([#425](https://github.com/skilbjo/config-rc/issues/425)) ([5f1971f](https://github.com/skilbjo/config-rc/commit/5f1971f88bbd40af6373ade0f61889c10ff28784))
15
+ * **deps:** bump @tsconfig/node22 from 22.0.2 to 22.0.4 ([#424](https://github.com/skilbjo/config-rc/issues/424)) ([31ecc5d](https://github.com/skilbjo/config-rc/commit/31ecc5d7b3c4fd075ea0fcd9cde2774baad229d4))
16
+ * **deps:** bump @tsconfig/node22 from 22.0.4 to 22.0.5 ([#427](https://github.com/skilbjo/config-rc/issues/427)) ([a3c3a00](https://github.com/skilbjo/config-rc/commit/a3c3a00d85d79beb2e5332a554e26f76c2d49e30))
17
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.42.0 to 8.43.0 ([#388](https://github.com/skilbjo/config-rc/issues/388)) ([515fd41](https://github.com/skilbjo/config-rc/commit/515fd41ffeec4a5f4dffa87c6c93a3efd0ef9fe9))
18
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.43.0 to 8.45.0 ([#402](https://github.com/skilbjo/config-rc/issues/402)) ([cd08b45](https://github.com/skilbjo/config-rc/commit/cd08b45f254855db65b65f23a0f2524d270276eb))
19
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.45.0 to 8.46.0 ([#407](https://github.com/skilbjo/config-rc/issues/407)) ([dd0cc42](https://github.com/skilbjo/config-rc/commit/dd0cc42f3c73a237e5bfaf549ec8c71d4c61e7eb))
20
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.46.0 to 8.46.1 ([#411](https://github.com/skilbjo/config-rc/issues/411)) ([029ef22](https://github.com/skilbjo/config-rc/commit/029ef221479f3aa292a1cf12e251a3e4273992bf))
21
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.46.1 to 8.46.2 ([#412](https://github.com/skilbjo/config-rc/issues/412)) ([9690b78](https://github.com/skilbjo/config-rc/commit/9690b7888e1495273a3fd5e0f70173e69ff39de1))
22
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.46.2 to 8.46.3 ([#418](https://github.com/skilbjo/config-rc/issues/418)) ([3597501](https://github.com/skilbjo/config-rc/commit/3597501ee3f1cfa53df1a4ae7f6f0e76c7959c2f))
23
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.46.3 to 8.46.4 ([#423](https://github.com/skilbjo/config-rc/issues/423)) ([6125321](https://github.com/skilbjo/config-rc/commit/6125321a676ced369c1611074efb92460f9ab44d))
24
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.47.0 to 8.48.0 ([#432](https://github.com/skilbjo/config-rc/issues/432)) ([c46d98d](https://github.com/skilbjo/config-rc/commit/c46d98d4fe225387b3cf09ca33bf92ed10bca8b7))
25
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.48.0 to 8.49.0 ([#443](https://github.com/skilbjo/config-rc/issues/443)) ([c57d191](https://github.com/skilbjo/config-rc/commit/c57d191e3f02f3d84881bb075b71dbb5e469bae3))
26
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.49.0 to 8.50.1 ([#450](https://github.com/skilbjo/config-rc/issues/450)) ([d89a3dc](https://github.com/skilbjo/config-rc/commit/d89a3dcc23088937dddb1151db0eededd083a2f2))
27
+ * **deps:** bump @typescript-eslint/eslint-plugin from 8.50.1 to 8.53.0 ([#467](https://github.com/skilbjo/config-rc/issues/467)) ([1649c0c](https://github.com/skilbjo/config-rc/commit/1649c0cf8020da840b176ca82cba618a463bf744))
28
+ * **deps:** bump @typescript-eslint/parser from 8.42.0 to 8.43.0 ([#389](https://github.com/skilbjo/config-rc/issues/389)) ([66c8b9b](https://github.com/skilbjo/config-rc/commit/66c8b9bd5973279bf3e73d324bedbba26312ccbc))
29
+ * **deps:** bump @typescript-eslint/parser from 8.43.0 to 8.44.0 ([#393](https://github.com/skilbjo/config-rc/issues/393)) ([39d9c07](https://github.com/skilbjo/config-rc/commit/39d9c07a8e5db8cacec182d35122411a53d551ba))
30
+ * **deps:** bump @typescript-eslint/parser from 8.44.0 to 8.44.1 ([#394](https://github.com/skilbjo/config-rc/issues/394)) ([70b9214](https://github.com/skilbjo/config-rc/commit/70b92143572dcb5adf3a6931ebf92f789ebdcfec))
31
+ * **deps:** bump @typescript-eslint/parser from 8.44.1 to 8.45.0 ([#399](https://github.com/skilbjo/config-rc/issues/399)) ([8af1db6](https://github.com/skilbjo/config-rc/commit/8af1db671d570f1d0dd21e74865024bdafb5bbe8))
32
+ * **deps:** bump @typescript-eslint/parser from 8.45.0 to 8.46.0 ([#405](https://github.com/skilbjo/config-rc/issues/405)) ([909b918](https://github.com/skilbjo/config-rc/commit/909b918955910b0125b91e5be7fa6f7245a63b49))
33
+ * **deps:** bump @typescript-eslint/parser from 8.46.0 to 8.46.1 ([#409](https://github.com/skilbjo/config-rc/issues/409)) ([c5a2dc3](https://github.com/skilbjo/config-rc/commit/c5a2dc37254885b883ff03f5b583a5685d308033))
34
+ * **deps:** bump @typescript-eslint/parser from 8.46.1 to 8.46.2 ([#413](https://github.com/skilbjo/config-rc/issues/413)) ([17a5581](https://github.com/skilbjo/config-rc/commit/17a5581903d612f38bd88f939dc85127c3e93278))
35
+ * **deps:** bump @typescript-eslint/parser from 8.46.2 to 8.46.3 ([#419](https://github.com/skilbjo/config-rc/issues/419)) ([d60575d](https://github.com/skilbjo/config-rc/commit/d60575d3210e3c41521fc391dd91f6cef04a971c))
36
+ * **deps:** bump @typescript-eslint/parser from 8.46.3 to 8.46.4 ([#422](https://github.com/skilbjo/config-rc/issues/422)) ([be8a71e](https://github.com/skilbjo/config-rc/commit/be8a71e6ac8af3c315cab00e1a151851434a7a43))
37
+ * **deps:** bump @typescript-eslint/parser from 8.47.0 to 8.48.0 ([#430](https://github.com/skilbjo/config-rc/issues/430)) ([c86fd69](https://github.com/skilbjo/config-rc/commit/c86fd691a7eb255d5c5c44006471be1cc00b7a0e))
38
+ * **deps:** bump @typescript-eslint/parser from 8.48.0 to 8.49.0 ([#442](https://github.com/skilbjo/config-rc/issues/442)) ([b5e073e](https://github.com/skilbjo/config-rc/commit/b5e073ea5906b6af0d4421bd1d4ab81d1dad68c8))
39
+ * **deps:** bump @typescript-eslint/parser from 8.49.0 to 8.50.1 ([#451](https://github.com/skilbjo/config-rc/issues/451)) ([ac141f0](https://github.com/skilbjo/config-rc/commit/ac141f000ea44837e4ade118698b9d5420e7fa3c))
40
+ * **deps:** bump @typescript-eslint/parser from 8.50.1 to 8.53.0 ([#466](https://github.com/skilbjo/config-rc/issues/466)) ([6a2e73c](https://github.com/skilbjo/config-rc/commit/6a2e73cbca39158af5bb38bd74156ad827cc1eea))
41
+ * **deps:** bump actions/setup-node from 5 to 6 ([#408](https://github.com/skilbjo/config-rc/issues/408)) ([5a20de0](https://github.com/skilbjo/config-rc/commit/5a20de015472f45b47e7d1fe51b3564520425276))
42
+ * **deps:** bump cycjimmy/semantic-release-action from 5 to 6 ([#428](https://github.com/skilbjo/config-rc/issues/428)) ([0b701ce](https://github.com/skilbjo/config-rc/commit/0b701ce7f676392942632456fac62624454eba12))
43
+ * **deps:** bump dependabot/fetch-metadata from 2.4.0 to 2.5.0 ([#457](https://github.com/skilbjo/config-rc/issues/457)) ([a00053b](https://github.com/skilbjo/config-rc/commit/a00053bd127ae3df102bb440e9d798797854ebb6))
44
+ * **deps:** bump eslint-plugin-jest from 28.14.0 to 29.1.0 ([#421](https://github.com/skilbjo/config-rc/issues/421)) ([f85b758](https://github.com/skilbjo/config-rc/commit/f85b75883212e7be34ecf6d591af0c1c2fde7883))
45
+ * **deps:** bump eslint-plugin-jest from 29.1.0 to 29.2.1 ([#426](https://github.com/skilbjo/config-rc/issues/426)) ([1d7154a](https://github.com/skilbjo/config-rc/commit/1d7154a8100748bdbbe119b411ae362aa837e84a))
46
+ * **deps:** bump eslint-plugin-jest from 29.11.1 to 29.12.1 ([#456](https://github.com/skilbjo/config-rc/issues/456)) ([32f8605](https://github.com/skilbjo/config-rc/commit/32f86057eb5daab772dca1f8a6a22af2cd184d19))
47
+ * **deps:** bump eslint-plugin-jest from 29.2.1 to 29.5.0 ([#441](https://github.com/skilbjo/config-rc/issues/441)) ([a088b02](https://github.com/skilbjo/config-rc/commit/a088b02ebdf6fb65771055491a5232e70b7586e3))
48
+ * **deps:** bump eslint-plugin-jest from 29.5.0 to 29.9.0 ([#448](https://github.com/skilbjo/config-rc/issues/448)) ([206496f](https://github.com/skilbjo/config-rc/commit/206496f1945c022922e1db958e790e3faf7da014))
49
+ * **deps:** bump eslint-plugin-jest from 29.9.0 to 29.11.1 ([#449](https://github.com/skilbjo/config-rc/issues/449)) ([2f0b45a](https://github.com/skilbjo/config-rc/commit/2f0b45ac17173ad169fe8754baceb22c6ecbfc07))
50
+ * **deps:** bump eslint-plugin-n from 17.21.3 to 17.22.0 ([#387](https://github.com/skilbjo/config-rc/issues/387)) ([ec571b8](https://github.com/skilbjo/config-rc/commit/ec571b82b93e2b85ccf386d26425d2bdff88bb7b))
51
+ * **deps:** bump eslint-plugin-n from 17.22.0 to 17.23.1 ([#390](https://github.com/skilbjo/config-rc/issues/390)) ([0de3996](https://github.com/skilbjo/config-rc/commit/0de3996d820a5c2be7cf8969e023b2f4ae184bfe))
52
+ * **deps:** bump eslint-plugin-n from 17.23.1 to 17.23.2 ([#464](https://github.com/skilbjo/config-rc/issues/464)) ([e8a4b26](https://github.com/skilbjo/config-rc/commit/e8a4b2656f25a533ada82dba323949db2e8520ae))
53
+ * **deps:** bump eslint-plugin-perfectionist from 4.15.0 to 4.15.1 ([#400](https://github.com/skilbjo/config-rc/issues/400)) ([5c647c9](https://github.com/skilbjo/config-rc/commit/5c647c9f9b2f2c4290f77c05afcdbe610bd21b19))
54
+ * **deps:** bump eslint-plugin-perfectionist from 4.15.1 to 5.0.0 ([#444](https://github.com/skilbjo/config-rc/issues/444)) ([a51bc02](https://github.com/skilbjo/config-rc/commit/a51bc025f4daf1ed970fc30a5e05c1dd7aa38a5c))
55
+ * **deps:** bump eslint-plugin-perfectionist from 5.0.0 to 5.1.0 ([#452](https://github.com/skilbjo/config-rc/issues/452)) ([459343d](https://github.com/skilbjo/config-rc/commit/459343d12a1396a229010273930d8523a9f9268a))
56
+ * **deps:** bump eslint-plugin-perfectionist from 5.1.0 to 5.2.0 ([#454](https://github.com/skilbjo/config-rc/issues/454)) ([bcbe263](https://github.com/skilbjo/config-rc/commit/bcbe2638d1dcaa444247e66947077e17a11a8d0b))
57
+ * **deps:** bump eslint-plugin-perfectionist from 5.2.0 to 5.3.1 ([#460](https://github.com/skilbjo/config-rc/issues/460)) ([b9d0463](https://github.com/skilbjo/config-rc/commit/b9d04636e1133505a66ee1ebe2b06319483f5ad1))
58
+ * **deps:** bump eslint-plugin-prettier from 5.5.4 to 5.5.5 ([#463](https://github.com/skilbjo/config-rc/issues/463)) ([498eba8](https://github.com/skilbjo/config-rc/commit/498eba8f7b3d2c414b73d0586317f6e10e661d41))
59
+ * **deps:** bump prettier from 3.6.2 to 3.7.3 ([#431](https://github.com/skilbjo/config-rc/issues/431)) ([87a618a](https://github.com/skilbjo/config-rc/commit/87a618a38d35c5249c9227b3d1c7e714217325ac))
60
+ * **deps:** bump prettier from 3.7.3 to 3.7.4 ([#435](https://github.com/skilbjo/config-rc/issues/435)) ([19b1388](https://github.com/skilbjo/config-rc/commit/19b13887c4405e12676cfa611a55238d2ea02810))
61
+ * **deps:** bump prettier from 3.7.4 to 3.8.0 ([#465](https://github.com/skilbjo/config-rc/issues/465)) ([976b5ab](https://github.com/skilbjo/config-rc/commit/976b5ab443c8ad2ff03167bedb0da09489d2eca3))
62
+ * **deps:** bump typescript from 5.9.2 to 5.9.3 ([#398](https://github.com/skilbjo/config-rc/issues/398)) ([4c2a021](https://github.com/skilbjo/config-rc/commit/4c2a021e171ad1fb308a3a25d736b9be539ecaeb))
63
+ * **eslint:** bump eslint to 9 ([#468](https://github.com/skilbjo/config-rc/issues/468)) ([6363d5e](https://github.com/skilbjo/config-rc/commit/6363d5efb44a6c54b85bbfe4f5733ace546b506d))
64
+
1
65
  ## [1.0.29](https://github.com/skilbjo/config-rc/compare/v1.0.28...v1.0.29) (2025-09-10)
2
66
 
3
67
 
@@ -0,0 +1,3 @@
1
+ import { baseConfig } from './index.js';
2
+
3
+ export default baseConfig;
package/index.js CHANGED
@@ -1,7 +1,117 @@
1
- // import { createRequire } from 'node:module';
1
+ /* eslint-disable perfectionist/sort-objects */
2
+ const eslint = require('@eslint/js');
3
+ const tseslint = require('typescript-eslint');
4
+ const importPlugin = require('eslint-plugin-import');
5
+ const nPlugin = require('eslint-plugin-n');
6
+ const jestPlugin = require('eslint-plugin-jest');
7
+ const prettierPlugin = require('eslint-plugin-prettier');
8
+ const securityPlugin = require('eslint-plugin-security');
9
+ const perfectionistPlugin = require('eslint-plugin-perfectionist');
10
+ const globals = require('globals');
2
11
 
3
- // const require = createRequire(import.meta.url);
12
+ const baseConfig = tseslint.config(
13
+ {
14
+ ignores: ['target/**', 'node_modules/**', '.git/**'],
15
+ },
16
+ {
17
+ languageOptions: {
18
+ globals: {
19
+ ...globals.node,
20
+ ...globals.jest,
21
+ ...globals.es2021,
22
+ Atomics: 'readonly',
23
+ SharedArrayBuffer: 'readonly',
24
+ },
25
+ ecmaVersion: 2022,
26
+ sourceType: 'module',
27
+ },
28
+ plugins: {
29
+ import: importPlugin,
30
+ n: nPlugin,
31
+ prettier: prettierPlugin,
32
+ security: securityPlugin,
33
+ perfectionist: perfectionistPlugin,
34
+ jest: jestPlugin,
35
+ '@typescript-eslint': tseslint.plugin,
36
+ },
37
+ rules: {
38
+ ...eslint.configs.recommended.rules,
39
+ ...importPlugin.configs.recommended.rules,
40
+ ...nPlugin.configs.recommended.rules,
41
+ ...prettierPlugin.configs.recommended.rules,
42
+ ...securityPlugin.configs['recommended-legacy'].rules,
43
+ ...perfectionistPlugin.configs['recommended-alphabetical-legacy'].rules,
4
44
 
5
- const eslintrc = require('./.eslintrc.cjs'); // eslint-disable-line @typescript-eslint/no-require-imports
45
+ '@typescript-eslint/no-non-null-assertion': 1,
46
+ '@typescript-eslint/no-unused-vars': 1,
47
+ eqeqeq: 2,
48
+ 'import/default': 2,
49
+ 'import/export': 2,
50
+ 'import/named': 2,
51
+ 'import/namespace': 2,
52
+ 'import/newline-after-import': 2,
53
+ 'import/no-duplicates': 2,
54
+ 'import/no-unresolved': 2,
55
+ 'import/order': 2,
56
+ 'n/hashbang': 'off',
57
+ 'n/no-extraneous-import': 'off',
58
+ 'n/no-missing-import': 'off', // conflicts with typescript absolute imports
59
+ 'n/no-process-exit': 'off',
60
+ 'n/no-unsupported-features/es-syntax': 'off',
61
+ 'n/shebang': 'off',
62
+ 'no-multiple-empty-lines': [2, { max: 1, maxEOF: 0 }],
63
+ 'perfectionist/sort-exports': 'off',
64
+ 'perfectionist/sort-imports': 'off',
65
+ 'prettier/prettier': [
66
+ 'error',
67
+ {
68
+ arrowParens: 'always',
69
+ printWidth: 80,
70
+ semi: true,
71
+ singleQuote: true,
72
+ tabWidth: 2,
73
+ trailingComma: 'es5',
74
+ },
75
+ ],
76
+ 'security/detect-object-injection': 'off',
77
+ },
78
+ settings: {
79
+ 'import/parsers': {
80
+ '@typescript-eslint/parser': ['.ts'],
81
+ },
82
+ 'import/resolver': {
83
+ node: { extensions: ['.ts', '.js'] },
84
+ typescript: {
85
+ alwaysTryTypes: true,
86
+ },
87
+ },
88
+ },
89
+ },
90
+ {
91
+ files: ['**/*.ts', '**/*.tsx'],
92
+ languageOptions: {
93
+ parser: tseslint.parser,
94
+ parserOptions: {
95
+ project: './tsconfig.json',
96
+ },
97
+ },
98
+ extends: [
99
+ ...tseslint.configs.recommended,
100
+ ...tseslint.configs.strict,
101
+ importPlugin.configs.typescript,
102
+ ],
103
+ rules: {
104
+ '@typescript-eslint/consistent-type-definitions': ['error', 'type'],
105
+ '@typescript-eslint/no-floating-promises': 'error',
106
+ '@typescript-eslint/no-misused-promises': 'error',
107
+ '@typescript-eslint/no-unsafe-function-type': 'off',
108
+ '@typescript-eslint/no-wrapper-object-types': 'off',
109
+ },
110
+ },
111
+ {
112
+ files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
113
+ ...tseslint.configs.disableTypeChecked,
114
+ }
115
+ );
6
116
 
7
- module.exports = eslintrc;
117
+ module.exports = { baseConfig };
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@skilbjo/config-rc",
4
- "version": "1.0.29",
4
+ "version": "1.0.30",
5
5
  "description": "eslint, prettier, & tsconfig config",
6
6
  "main": "index.js",
7
+ "exports": {
8
+ "module": "./index.js",
9
+ "require": "./index.js",
10
+ "default": "./index.js"
11
+ },
7
12
  "private": false,
8
13
  "repository": {
9
14
  "type": "git",
@@ -28,27 +33,27 @@
28
33
  },
29
34
  "homepage": "https://github.com/skilbjo/config-rc#readme",
30
35
  "dependencies": {
31
- "@tsconfig/node22": "22.0.2",
36
+ "@tsconfig/node22": "22.0.5",
32
37
  "@types/jest": "30.0.0",
33
- "@typescript-eslint/eslint-plugin": "8.42.0",
34
- "@typescript-eslint/parser": "8.42.0",
35
- "eslint": "8.57.0",
36
- "eslint-config-prettier": "9.1.0",
37
- "eslint-config-typescript": "3.0.0",
38
- "eslint-import-resolver-typescript": "4.4.4",
38
+ "eslint": "9.39.2",
39
+ "typescript-eslint": "8.53.1",
40
+ "@eslint/js": "9.39.2",
39
41
  "eslint-plugin-import": "2.32.0",
40
- "eslint-plugin-jest": "28.14.0",
41
- "eslint-plugin-n": "17.21.3",
42
- "eslint-plugin-perfectionist": "4.15.0",
43
- "eslint-plugin-prettier": "5.5.4",
42
+ "eslint-plugin-n": "17.23.2",
43
+ "eslint-plugin-jest": "29.12.1",
44
+ "eslint-plugin-prettier": "5.5.5",
45
+ "eslint-config-prettier": "10.1.8",
44
46
  "eslint-plugin-security": "3.0.1",
45
- "prettier": "3.6.2",
46
- "typescript": "5.9.2"
47
+ "eslint-plugin-perfectionist": "4.15.1",
48
+ "globals": "17.0.0",
49
+ "eslint-import-resolver-typescript": "4.4.4",
50
+ "prettier": "3.8.0",
51
+ "typescript": "5.9.3"
47
52
  },
48
53
  "devDependencies": {
49
54
  "@commitlint/cli": "19.3.0",
50
55
  "@commitlint/config-angular": "16.2.4",
51
- "@types/node": "24.3.1",
56
+ "@types/node": "25.0.9",
52
57
  "depcheck": "1.4.7",
53
58
  "husky": "8.0.1"
54
59
  },
@@ -58,7 +63,7 @@
58
63
  ]
59
64
  },
60
65
  "engines": {
61
- "node": ">=20.0.0"
66
+ "node": ">=22.0.0"
62
67
  },
63
68
  "publishConfig": {
64
69
  "registry": "https://registry.npmjs.org/",
package/.eslintrc.cjs DELETED
@@ -1,101 +0,0 @@
1
- /* eslint-disable perfectionist/sort-objects */
2
- module.exports = {
3
- env: {
4
- es6: true,
5
- 'jest/globals': true,
6
- node: true,
7
- },
8
- extends: [
9
- 'prettier',
10
- 'typescript',
11
- 'eslint:recommended',
12
- 'plugin:@typescript-eslint/recommended',
13
- 'plugin:@typescript-eslint/strict',
14
- 'plugin:import/recommended',
15
- 'plugin:import/typescript',
16
- 'plugin:n/recommended',
17
- 'plugin:prettier/recommended',
18
- 'plugin:security/recommended-legacy',
19
- 'plugin:perfectionist/recommended-alphabetical-legacy',
20
- ],
21
- globals: {
22
- Atomics: 'readonly',
23
- SharedArrayBuffer: 'readonly',
24
- },
25
- parserOptions: {
26
- ecmaVersion: 2022,
27
- },
28
- plugins: [
29
- '@typescript-eslint',
30
- 'import',
31
- 'jest',
32
- 'prettier',
33
- 'perfectionist',
34
- ],
35
- reportUnusedDisableDirectives: true,
36
- overrides: [
37
- {
38
- files: ['*.ts', '*.tsx'],
39
- parser: '@typescript-eslint/parser',
40
- parserOptions: {
41
- ecmaVersion: 2022,
42
- project: './tsconfig.json',
43
- sourceType: 'module',
44
- },
45
- rules: {
46
- '@typescript-eslint/consistent-type-definitions': ['error', 'type'],
47
- '@typescript-eslint/no-floating-promises': 'error',
48
- '@typescript-eslint/no-misused-promises': 'error',
49
- },
50
- },
51
- ],
52
- rules: {
53
- '@typescript-eslint/no-non-null-assertion': 1,
54
- '@typescript-eslint/no-unused-vars': 1,
55
- eqeqeq: 2,
56
- 'import/default': 2,
57
- 'import/export': 2,
58
- 'import/named': 2,
59
- 'import/namespace': 2,
60
- 'import/newline-after-import': 2,
61
- 'import/no-duplicates': 2,
62
- 'import/no-unresolved': 2,
63
- 'import/order': 2,
64
- 'n/hashbang': 'off',
65
- 'n/no-extraneous-import': 'off',
66
- 'n/no-missing-import': 'off', // conflicts with typescript absolute imports
67
- 'n/no-process-exit': 'off',
68
- 'n/no-unsupported-features/es-syntax': 'off',
69
- 'n/shebang': 'off',
70
- 'no-multiple-empty-lines': [2, { max: 1, maxEOF: 0 }],
71
- 'perfectionist/sort-exports': 'off',
72
- 'perfectionist/sort-imports': 'off',
73
- 'prettier/prettier': [
74
- 'error',
75
- {
76
- arrowParens: 'always',
77
- printWidth: 80,
78
- semi: true,
79
- singleQuote: true,
80
- tabWidth: 2,
81
- trailingComma: 'es5',
82
- },
83
- ],
84
- 'security/detect-object-injection': 'off',
85
- },
86
- settings: {
87
- 'import/parsers': {
88
- '@typescript-eslint/parser': ['.ts'],
89
- },
90
- 'import/resolver': {
91
- node: { extensions: ['.ts', '.js'] }, // leave this
92
- typescript: {
93
- alwaysTryTypes: true,
94
- },
95
- },
96
- node: {
97
- resolvePaths: ['node_modules/@types'],
98
- tryExtensions: ['.js', '.json', '.node', '.ts', '.d.ts'],
99
- },
100
- },
101
- };