@skilbjo/config-rc 1.0.34 → 1.0.36

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/.releaserc CHANGED
@@ -9,7 +9,7 @@
9
9
  "verifyConditionsCmd": "make ci",
10
10
  }],
11
11
  ["@semantic-release/github", {
12
- assets: [".eslintrc.js", "index.js"]
12
+ assets: ["eslint.config.mjs", "index.js"]
13
13
  }],
14
14
  ["@semantic-release/npm"],
15
15
  ["@semantic-release/git", {
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.0.36](https://github.com/skilbjo/config-rc/compare/v1.0.35...v1.0.36) (2026-01-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * esm only ([4af35cf](https://github.com/skilbjo/config-rc/commit/4af35cf5d9d8c38c15f6fb111ad1c0180de731b3))
7
+
8
+ ## [1.0.35](https://github.com/skilbjo/config-rc/compare/v1.0.34...v1.0.35) (2026-01-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * remove stylistic/indent ([9a82c05](https://github.com/skilbjo/config-rc/commit/9a82c0599883b0ee2358aceac87341ab38a727fa))
14
+
1
15
  ## [1.0.34](https://github.com/skilbjo/config-rc/compare/v1.0.33...v1.0.34) (2026-01-22)
2
16
 
3
17
 
package/index.js CHANGED
@@ -1,14 +1,16 @@
1
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 stylisticPlugin = require('@stylistic/eslint-plugin');
11
- const globals = require('globals');
2
+ import eslint from '@eslint/js';
3
+ import * as tseslint from 'typescript-eslint';
4
+ import importPlugin from 'eslint-plugin-import';
5
+ import nPlugin from 'eslint-plugin-n';
6
+ import jestPlugin from 'eslint-plugin-jest';
7
+ import prettierPlugin from 'eslint-plugin-prettier';
8
+ import securityPlugin from 'eslint-plugin-security';
9
+ import perfectionistPlugin, {
10
+ configs as perfectionistConfigs,
11
+ } from 'eslint-plugin-perfectionist';
12
+ import stylisticPlugin from '@stylistic/eslint-plugin';
13
+ import globals from 'globals';
12
14
 
13
15
  const config = tseslint.config(
14
16
  {
@@ -42,7 +44,7 @@ const config = tseslint.config(
42
44
  ...nPlugin.configs.recommended.rules,
43
45
  ...prettierPlugin.configs.recommended.rules,
44
46
  ...securityPlugin.configs['recommended-legacy'].rules,
45
- ...perfectionistPlugin.configs['recommended-alphabetical-legacy'].rules,
47
+ ...perfectionistConfigs['recommended-alphabetical-legacy'].rules,
46
48
  '@typescript-eslint/no-non-null-assertion': 1,
47
49
  eqeqeq: 2,
48
50
  'import/default': 2,
@@ -62,24 +64,6 @@ const config = tseslint.config(
62
64
  'no-multiple-empty-lines': [2, { max: 1, maxEOF: 0 }],
63
65
  '@stylistic/eol-last': ['error', 'always'],
64
66
  '@stylistic/no-trailing-spaces': 'error',
65
- '@stylistic/indent': [
66
- 'error',
67
- 2,
68
- {
69
- SwitchCase: 1,
70
- VariableDeclarator: 1,
71
- outerIIFEBody: 1,
72
- MemberExpression: 1,
73
- FunctionDeclaration: { parameters: 1, body: 1 },
74
- FunctionExpression: { parameters: 1, body: 1 },
75
- CallExpression: { arguments: 1 },
76
- ArrayExpression: 1,
77
- ObjectExpression: 1,
78
- ImportDeclaration: 1,
79
- flatTernaryExpressions: false,
80
- ignoreComments: false,
81
- },
82
- ],
83
67
  'perfectionist/sort-exports': 'off',
84
68
  'perfectionist/sort-imports': 'off',
85
69
  'prettier/prettier': [
@@ -143,4 +127,4 @@ const config = tseslint.config(
143
127
  }
144
128
  );
145
129
 
146
- module.exports = { config };
130
+ export { config };
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@skilbjo/config-rc",
4
- "version": "1.0.34",
4
+ "version": "1.0.36",
5
5
  "description": "eslint, prettier, & tsconfig config",
6
+ "type": "module",
6
7
  "main": "index.js",
7
8
  "exports": {
8
9
  ".": "./index.js",
package/tsconfig.json CHANGED
@@ -4,8 +4,8 @@
4
4
  "_version": "22.0.0",
5
5
  "extends": "@tsconfig/node22/tsconfig.json",
6
6
  "compilerOptions": {
7
- "module": "CommonJS",
8
- "moduleResolution": "node",
7
+ "module": "ESNext",
8
+ "moduleResolution": "nodenext",
9
9
  "target": "ES2022",
10
10
  "lib": [
11
11
  "ES2023"
@@ -31,7 +31,6 @@
31
31
  "include": [
32
32
  "src/**/*.ts",
33
33
  "test/**/*.ts",
34
- ".eslintrc.cjs",
35
34
  "index.js"
36
35
  ],
37
36
  "exclude": [