eslint-config-agent 1.3.5 → 1.3.6

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 +6 -0
  2. package/index.js +4 -38
  3. package/package.json +1 -1
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.3.6](https://github.com/tupe12334/eslint-config/compare/v1.3.5...v1.3.6) (2025-09-21)
8
+
9
+ ### Bug Fixes
10
+
11
+ * update TypeScript ESLint integration and remove deprecated parser references ([79ef677](https://github.com/tupe12334/eslint-config/commit/79ef677335cbeb7ed4550da40a0789975dcc68d7))
12
+
7
13
  ## [1.3.5](https://github.com/tupe12334/eslint-config/compare/v1.3.4...v1.3.5) (2025-09-20)
8
14
 
9
15
  ### Bug Fixes
package/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import js from "@eslint/js";
2
- import tsPlugin from "@typescript-eslint/eslint-plugin";
3
- import tsParser from "@typescript-eslint/parser";
2
+ import tseslint from "typescript-eslint";
4
3
  import reactHooks from "eslint-plugin-react-hooks";
5
4
  import reactPlugin from "eslint-plugin-react";
6
5
  import importPlugin from "eslint-plugin-import";
@@ -18,7 +17,7 @@ import { noDefaultClassExportRule } from "./rules/no-default-class-export/index.
18
17
  let preactPlugin = null;
19
18
  try {
20
19
  preactPlugin = (await import("eslint-plugin-preact")).default;
21
- } catch (error) {
20
+ } catch {
22
21
  // eslint-plugin-preact is not available
23
22
  }
24
23
 
@@ -31,6 +30,7 @@ const sharedRules = {
31
30
  "function-paren-newline": "off",
32
31
  quotes: "off",
33
32
  "no-unused-vars": "off",
33
+ "@typescript-eslint/no-unused-vars": "off",
34
34
  "max-lines-per-function": allRules.maxFunctionLinesWarning,
35
35
  "max-lines": allRules.maxFileLinesWarning,
36
36
  semi: "off",
@@ -211,6 +211,7 @@ const config = [
211
211
  }]
212
212
  ),
213
213
  js.configs.recommended,
214
+ ...tseslint.configs.recommended,
214
215
 
215
216
  // TypeScript and TSX files
216
217
  {
@@ -223,21 +224,12 @@ const config = [
223
224
  "**/*.stories.{js,jsx,ts,tsx}",
224
225
  ],
225
226
  languageOptions: {
226
- parser: tsParser,
227
- parserOptions: {
228
- ecmaVersion: "latest",
229
- sourceType: "module",
230
- ecmaFeatures: {
231
- jsx: true,
232
- },
233
- },
234
227
  globals: {
235
228
  ...globals.browser,
236
229
  ...globals.es2021,
237
230
  },
238
231
  },
239
232
  plugins: {
240
- "@typescript-eslint": tsPlugin,
241
233
  react: reactPlugin,
242
234
  import: importPlugin,
243
235
  security: securityPlugin,
@@ -523,21 +515,12 @@ const config = [
523
515
  "**/*.stories.{js,jsx,ts,tsx}",
524
516
  ],
525
517
  languageOptions: {
526
- parser: tsParser,
527
- parserOptions: {
528
- ecmaVersion: "latest",
529
- sourceType: "module",
530
- ecmaFeatures: {
531
- jsx: true,
532
- },
533
- },
534
518
  globals: {
535
519
  ...globals.browser,
536
520
  ...globals.es2021,
537
521
  },
538
522
  },
539
523
  plugins: {
540
- "@typescript-eslint": tsPlugin,
541
524
  react: reactPlugin,
542
525
  import: importPlugin,
543
526
  security: securityPlugin,
@@ -653,21 +636,12 @@ const config = [
653
636
  "**/*.stories.{js,jsx,ts,tsx}",
654
637
  ],
655
638
  languageOptions: {
656
- parser: tsParser,
657
- parserOptions: {
658
- ecmaVersion: "latest",
659
- sourceType: "module",
660
- ecmaFeatures: {
661
- jsx: true,
662
- },
663
- },
664
639
  globals: {
665
640
  ...globals.browser,
666
641
  ...globals.es2021,
667
642
  },
668
643
  },
669
644
  plugins: {
670
- "@typescript-eslint": tsPlugin,
671
645
  react: reactPlugin,
672
646
  import: importPlugin,
673
647
  security: securityPlugin,
@@ -1019,14 +993,6 @@ const config = [
1019
993
  {
1020
994
  files: ["**/*.stories.{js,jsx,ts,tsx}"],
1021
995
  languageOptions: {
1022
- parser: tsParser,
1023
- parserOptions: {
1024
- ecmaVersion: "latest",
1025
- sourceType: "module",
1026
- ecmaFeatures: {
1027
- jsx: true,
1028
- },
1029
- },
1030
996
  globals: {
1031
997
  ...globals.browser,
1032
998
  ...globals.es2021,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-agent",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "ESLint configuration package with TypeScript support",
5
5
  "main": "index.js",
6
6
  "type": "module",