eslint-config-agent 1.4.2 → 1.4.3
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 +6 -0
- package/package.json +2 -1
- package/plugins/index.js +51 -0
- package/rules/plugin/typescript-eslint/index.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. See [Conven
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
## [1.4.3](https://github.com/tupe12334/eslint-config/compare/v1.4.2...v1.4.3) (2025-09-27)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* include plugins directory in package files for better distribution ([9923ae5](https://github.com/tupe12334/eslint-config/commit/9923ae55458253eed988c7b433d4f11359b9eb6a))
|
|
12
|
+
|
|
7
13
|
## [1.4.2](https://github.com/tupe12334/eslint-config/compare/v1.4.1...v1.4.2) (2025-09-27)
|
|
8
14
|
|
|
9
15
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-agent",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "ESLint configuration package with TypeScript support",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"README.md",
|
|
13
13
|
"CHANGELOG.md",
|
|
14
14
|
"configs/",
|
|
15
|
+
"plugins/",
|
|
15
16
|
"rules/**/index.js",
|
|
16
17
|
"!rules/**/examples/",
|
|
17
18
|
"!rules/**/*.spec.js",
|
package/plugins/index.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized Plugin Aggregation
|
|
3
|
+
*
|
|
4
|
+
* This file aggregates all ESLint plugins used across the configuration
|
|
5
|
+
* to ensure consistent plugin registration across all config files.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import reactPlugin from "eslint-plugin-react";
|
|
9
|
+
import importPlugin from "eslint-plugin-import";
|
|
10
|
+
import securityPlugin from "eslint-plugin-security";
|
|
11
|
+
import nPlugin from "eslint-plugin-n";
|
|
12
|
+
import classExportPlugin from "eslint-plugin-class-export";
|
|
13
|
+
import singleExportPlugin from "eslint-plugin-single-export";
|
|
14
|
+
import requiredExportsPlugin from "eslint-plugin-required-exports";
|
|
15
|
+
import storybookPlugin from "eslint-plugin-storybook";
|
|
16
|
+
import errorPlugin from "eslint-plugin-error";
|
|
17
|
+
import defaultPlugin from "eslint-plugin-default";
|
|
18
|
+
import noOptionalChainingPlugin from "eslint-plugin-no-optional-chaining";
|
|
19
|
+
import allRules from "../rules/index.js";
|
|
20
|
+
import { noDefaultClassExportRule } from "../rules/no-default-class-export/index.js";
|
|
21
|
+
|
|
22
|
+
// Conditionally import preact plugin if available
|
|
23
|
+
let preactPlugin = null;
|
|
24
|
+
try {
|
|
25
|
+
preactPlugin = (await import("eslint-plugin-preact")).default;
|
|
26
|
+
} catch {
|
|
27
|
+
// eslint-plugin-preact is not available
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Centralized plugin configuration
|
|
31
|
+
export const plugins = {
|
|
32
|
+
react: reactPlugin,
|
|
33
|
+
import: importPlugin,
|
|
34
|
+
security: securityPlugin,
|
|
35
|
+
n: nPlugin,
|
|
36
|
+
"class-export": classExportPlugin,
|
|
37
|
+
"single-export": singleExportPlugin,
|
|
38
|
+
"required-exports": requiredExportsPlugin,
|
|
39
|
+
storybook: storybookPlugin,
|
|
40
|
+
error: errorPlugin,
|
|
41
|
+
default: defaultPlugin,
|
|
42
|
+
"no-optional-chaining": noOptionalChainingPlugin,
|
|
43
|
+
...(preactPlugin && { preact: preactPlugin }),
|
|
44
|
+
custom: {
|
|
45
|
+
rules: {
|
|
46
|
+
"no-default-class-export": noDefaultClassExportRule,
|
|
47
|
+
"jsx-classname-required": allRules.jsxClassNameRequiredRule,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|