eslint-config-agent 1.0.13 → 1.0.15

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/index.js +5 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file. See [Conven
4
4
 
5
5
 
6
6
 
7
+ ## [1.0.15](https://github.com/tupe12334/eslint-config/compare/v1.0.14...v1.0.15) (2025-09-02)
8
+
9
+ ### Features
10
+
11
+ * add validation for re-exporting imported variables and include corresponding test cases ([0bbeea4](https://github.com/tupe12334/eslint-config/commit/0bbeea48b77afe53eeed3e32b177c1fc170a2371))
12
+
13
+ ### Bug Fixes
14
+
15
+ * update import paths in export test files to use local modules ([1f34161](https://github.com/tupe12334/eslint-config/commit/1f341614b313419b071f860ab762ff96596c32a6))
16
+
17
+ ## [1.0.14](https://github.com/tupe12334/eslint-config/compare/v1.0.13...v1.0.14) (2025-08-31)
18
+
19
+ ### Features
20
+
21
+ * add export validation rules and corresponding test cases for external libraries and scoped packages ([9ba8093](https://github.com/tupe12334/eslint-config/commit/9ba8093c6fb7c93c8363518bb879ecf94f405e1e))
22
+
7
23
  ## [1.0.13](https://github.com/tupe12334/eslint-config/compare/v1.0.12...v1.0.13) (2025-08-31)
8
24
 
9
25
  ### Features
package/index.js CHANGED
@@ -108,9 +108,13 @@ const sharedRestrictedSyntax = [
108
108
  message: "Re-exporting default as named export is not allowed. Use explicit export declaration instead.",
109
109
  },
110
110
  {
111
- selector: "Program:has(ImportDeclaration) ExportNamedDeclaration:has(VariableDeclaration > VariableDeclarator[init.type=Identifier])",
111
+ selector: "Program:has(ImportDeclaration) ExportNamedDeclaration:has(VariableDeclaration > VariableDeclarator[init.type=Identifier]):not(:has(ClassDeclaration))",
112
112
  message: "Exporting imported variables is not allowed. Use direct re-export with 'from' clause or define new values.",
113
113
  },
114
+ {
115
+ selector: "ExportNamedDeclaration[source.value=/^[a-z]/]:not([source.value=/^@/])",
116
+ message: "Exporting from external libraries is not allowed. Only re-export from relative paths or scoped packages.",
117
+ },
114
118
  ];
115
119
 
116
120
  // Required export rules (always errors)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-agent",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "ESLint configuration package with TypeScript support",
5
5
  "main": "index.js",
6
6
  "type": "module",