eslint-config-agent 2.1.0 → 3.0.1
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/CHANGELOG.md +26 -0
- package/configs/test-files.js +0 -2
- package/index.js +16 -3
- package/package.json +2 -2
- package/plugins/index.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,32 @@ All notable changes to this project will be documented in this file. See [Conven
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
## 3.0.0 (2026-04-02)
|
|
8
|
+
|
|
9
|
+
* feat: add centy configuration and update claude agent/command definitions ([6f656c5](https://github.com/tupe12334/eslint-config-agent/commit/6f656c5))
|
|
10
|
+
* feat: move peerDependencies to dependencies for single-install experience ([80f5998](https://github.com/tupe12334/eslint-config-agent/commit/80f5998))
|
|
11
|
+
* feat(ci): migrate to OIDC trusted publishing and single CI/CD workflow ([d69b81a](https://github.com/tupe12334/eslint-config-agent/commit/d69b81a))
|
|
12
|
+
* feat(commands): add tupe Claude slash commands and update centy config ([5a8f4a0](https://github.com/tupe12334/eslint-config-agent/commit/5a8f4a0))
|
|
13
|
+
* feat(config): add eslint-plugin-early-return recommended config ([1fc0e45](https://github.com/tupe12334/eslint-config-agent/commit/1fc0e45))
|
|
14
|
+
* feat(config): add git diff and pnpm install permissions to settings ([d544eb7](https://github.com/tupe12334/eslint-config-agent/commit/d544eb7))
|
|
15
|
+
* feat(config): add git push and WebFetch permissions to settings ([8485f43](https://github.com/tupe12334/eslint-config-agent/commit/8485f43))
|
|
16
|
+
* feat(config): add pnpm knip and git restore permissions to settings ([ffac7cd](https://github.com/tupe12334/eslint-config-agent/commit/ffac7cd))
|
|
17
|
+
* feat(manifest): update centyVersion to 0.8.4 and clean up timestamps ([d735642](https://github.com/tupe12334/eslint-config-agent/commit/d735642))
|
|
18
|
+
* feat(rules): add eslint-plugin-switch-case with recommended config ([d938695](https://github.com/tupe12334/eslint-config-agent/commit/d938695))
|
|
19
|
+
* feat(rules): remove no-class-property-defaults rule ([0f606c5](https://github.com/tupe12334/eslint-config-agent/commit/0f606c5))
|
|
20
|
+
* feat(rules): replace tseslint recommended with strict-type-checked and stylistic-type-checked ([651ed7b](https://github.com/tupe12334/eslint-config-agent/commit/651ed7b))
|
|
21
|
+
* feat(settings): add 'Bash(ls:*)' permission to settings ([2a23685](https://github.com/tupe12334/eslint-config-agent/commit/2a23685))
|
|
22
|
+
* feat(settings): add additional Bash commands for formatting and testing ([27175fd](https://github.com/tupe12334/eslint-config-agent/commit/27175fd))
|
|
23
|
+
* feat(settings): add additional WebFetch permissions to settings ([cac497c](https://github.com/tupe12334/eslint-config-agent/commit/cac497c))
|
|
24
|
+
* feat(settings): add git stash and GitHub workflow permissions ([255513e](https://github.com/tupe12334/eslint-config-agent/commit/255513e))
|
|
25
|
+
* fix(rules): suppress no-empty-function in RuleTester no-op callbacks ([56ca34f](https://github.com/tupe12334/eslint-config-agent/commit/56ca34f))
|
|
26
|
+
* chore: remove eslint-plugin-preact from knip ignoreDependencies ([032a085](https://github.com/tupe12334/eslint-config-agent/commit/032a085))
|
|
27
|
+
* chore: remove kiro settings configuration files ([80baec6](https://github.com/tupe12334/eslint-config-agent/commit/80baec6))
|
|
28
|
+
* chore(config): remove empty hooks array from config.json ([750cc28](https://github.com/tupe12334/eslint-config-agent/commit/750cc28))
|
|
29
|
+
* chore(release): bump version to 2.0.0 ([982c1d9](https://github.com/tupe12334/eslint-config-agent/commit/982c1d9))
|
|
30
|
+
* chore(release): bump version to 2.1.0 ([5dc4711](https://github.com/tupe12334/eslint-config-agent/commit/5dc4711))
|
|
31
|
+
* refactor(classname): replace custom rule with eslint-plugin-jsx-classname strict config ([9da02c0](https://github.com/tupe12334/eslint-config-agent/commit/9da02c0))
|
|
32
|
+
|
|
7
33
|
## <small>1.9.3 (2026-01-10)</small>
|
|
8
34
|
|
|
9
35
|
* chore: update eslint-plugin-ddd to v0.5.2 ([27e8654](https://github.com/tupe12334/eslint-config/commit/27e8654))
|
package/configs/test-files.js
CHANGED
|
@@ -24,8 +24,6 @@ const sharedRules = {
|
|
|
24
24
|
'no-continue': 'off',
|
|
25
25
|
// Additional built-in error handling rules
|
|
26
26
|
'prefer-promise-reject-errors': 'error',
|
|
27
|
-
// Optional chaining restriction
|
|
28
|
-
'no-optional-chaining/no-optional-chaining': 'error',
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
// Shared no-restricted-syntax rules for both JS and TS
|
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import js from '@eslint/js'
|
|
2
2
|
import earlyReturn from 'eslint-plugin-early-return'
|
|
3
|
+
import switchCase from 'eslint-plugin-switch-case'
|
|
3
4
|
import jsxClassname from 'eslint-plugin-jsx-classname'
|
|
4
5
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
5
6
|
import { defineConfig } from 'eslint/config'
|
|
@@ -40,8 +41,6 @@ const sharedRules = {
|
|
|
40
41
|
'no-continue': 'off',
|
|
41
42
|
// Additional built-in error handling rules
|
|
42
43
|
'prefer-promise-reject-errors': 'error',
|
|
43
|
-
// Optional chaining restriction
|
|
44
|
-
'no-optional-chaining/no-optional-chaining': 'error',
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
// Shared no-restricted-syntax rules for both JS and TS
|
|
@@ -107,8 +106,22 @@ const config = defineConfig([
|
|
|
107
106
|
},
|
|
108
107
|
reactHooks.configs['recommended-latest'],
|
|
109
108
|
js.configs.recommended,
|
|
110
|
-
...tseslint.configs.
|
|
109
|
+
...tseslint.configs.strictTypeChecked,
|
|
110
|
+
...tseslint.configs.stylisticTypeChecked,
|
|
111
|
+
{
|
|
112
|
+
files: ['**/*.{ts,tsx}'],
|
|
113
|
+
languageOptions: {
|
|
114
|
+
parserOptions: {
|
|
115
|
+
projectService: true,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
files: ['**/*.{js,jsx,mjs,cjs}'],
|
|
121
|
+
...tseslint.configs.disableTypeChecked,
|
|
122
|
+
},
|
|
111
123
|
earlyReturn.configs.recommended,
|
|
124
|
+
{ plugins: { 'switch-case': switchCase }, ...switchCase.configs.recommended },
|
|
112
125
|
|
|
113
126
|
// Base plugin strict configs (error, default, guard-clauses)
|
|
114
127
|
...basePluginsConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-agent",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "ESLint configuration package with TypeScript support",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -112,7 +112,6 @@
|
|
|
112
112
|
"eslint-plugin-import": "^2.32.0",
|
|
113
113
|
"eslint-plugin-jsx-classname": "^1.0.1",
|
|
114
114
|
"eslint-plugin-n": "^17.21.3",
|
|
115
|
-
"eslint-plugin-no-optional-chaining": "^1.0.0",
|
|
116
115
|
"eslint-plugin-preact": "^0.1.0",
|
|
117
116
|
"eslint-plugin-react": "^7.37.5",
|
|
118
117
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
@@ -120,6 +119,7 @@
|
|
|
120
119
|
"eslint-plugin-security": "^3.0.1",
|
|
121
120
|
"eslint-plugin-single-export": "^1.1.2",
|
|
122
121
|
"eslint-plugin-storybook": "^9.1.5",
|
|
122
|
+
"eslint-plugin-switch-case": "^3.0.1",
|
|
123
123
|
"globals": "^16.4.0",
|
|
124
124
|
"typescript-eslint": "^8.40.0"
|
|
125
125
|
}
|
package/plugins/index.js
CHANGED
|
@@ -15,7 +15,6 @@ import requiredExportsPlugin from 'eslint-plugin-required-exports'
|
|
|
15
15
|
import storybookPlugin from 'eslint-plugin-storybook'
|
|
16
16
|
import errorPlugin from 'eslint-plugin-error'
|
|
17
17
|
import defaultPlugin from 'eslint-plugin-default'
|
|
18
|
-
import noOptionalChainingPlugin from 'eslint-plugin-no-optional-chaining'
|
|
19
18
|
import dddPlugin from 'eslint-plugin-ddd'
|
|
20
19
|
import preactPlugin from 'eslint-plugin-preact'
|
|
21
20
|
import { noDefaultClassExportRule } from '../rules/no-default-class-export/index.js'
|
|
@@ -32,7 +31,6 @@ export const plugins = {
|
|
|
32
31
|
storybook: storybookPlugin,
|
|
33
32
|
error: errorPlugin,
|
|
34
33
|
default: defaultPlugin,
|
|
35
|
-
'no-optional-chaining': noOptionalChainingPlugin,
|
|
36
34
|
ddd: dddPlugin,
|
|
37
35
|
preact: preactPlugin,
|
|
38
36
|
custom: {
|