@aidc-toolkit/dev 0.9.0 → 0.9.2

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/README.md CHANGED
@@ -24,14 +24,12 @@ declaring their own `eslint.config.js` file as follows:
24
24
 
25
25
  ```javascript
26
26
  import tseslint from "typescript-eslint";
27
- import js from "@eslint/js";
28
27
  import stylistic from "@stylistic/eslint-plugin";
29
28
  import jsdoc from "eslint-plugin-jsdoc";
30
29
  import esLintConfigLove from "eslint-config-love";
31
30
  import { esLintConfigAIDCToolkit } from "@aidc-toolkit/dev";
32
31
 
33
32
  export default tseslint.config(
34
- js.configs.recommended,
35
33
  ...tseslint.configs.strictTypeChecked,
36
34
  stylistic.configs["recommended-flat"],
37
35
  jsdoc.configs["flat/recommended-typescript"],
@@ -42,7 +40,6 @@ export default tseslint.config(
42
40
 
43
41
  The ESLint configuration requires the installation of the following development dependencies:
44
42
 
45
- - @eslint/js
46
43
  - @stylistic/eslint-plugin
47
44
  - eslint-config-love
48
45
  - eslint-plugin-jsdoc
package/eslint.config.js CHANGED
@@ -1,15 +1,13 @@
1
- import tseslint from "typescript-eslint"
2
- import js from "@eslint/js";
1
+ import tseslint from "typescript-eslint";
3
2
  import stylistic from "@stylistic/eslint-plugin";
4
3
  import jsdoc from "eslint-plugin-jsdoc";
5
4
  import esLintConfigLove from "eslint-config-love";
6
5
  import { esLintConfigAIDCToolkit } from "./dist/index.js";
7
6
 
8
7
  export default tseslint.config(
9
- js.configs.recommended,
10
8
  ...tseslint.configs.strictTypeChecked,
11
9
  stylistic.configs["recommended-flat"],
12
10
  jsdoc.configs["flat/recommended-typescript"],
13
11
  esLintConfigLove,
14
- esLintConfigAIDCToolkit
12
+ ...esLintConfigAIDCToolkit
15
13
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aidc-toolkit/dev",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Shared development artefacts for AIDC Toolkit",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,13 +23,13 @@
23
23
  "build": "tsup src/index.ts --format cjs,esm --dts"
24
24
  },
25
25
  "devDependencies": {
26
- "@eslint/js": "^9.10.0",
27
- "@stylistic/eslint-plugin": "^2.7.2",
28
- "eslint-config-love": "^64.0.0",
29
- "eslint-plugin-jsdoc": "^50.2.2",
26
+ "@eslint/js": "^9.14.0",
27
+ "@stylistic/eslint-plugin": "^2.10.1",
28
+ "eslint-config-love": "^98.0.2",
29
+ "eslint-plugin-jsdoc": "^50.5.0",
30
30
  "ts-node": "^10.9.2",
31
- "tsup": "^8.2.4",
32
- "typescript": "^5.5.4",
33
- "typescript-eslint": "^8.4.0"
31
+ "tsup": "^8.3.5",
32
+ "typescript": "^5.6.3",
33
+ "typescript-eslint": "^8.14.0"
34
34
  }
35
35
  }
@@ -1,64 +1,101 @@
1
+ import js from "@eslint/js";
1
2
  import type { ConfigWithExtends } from "typescript-eslint";
2
3
 
3
- export const esLintConfigAIDCToolkit: ConfigWithExtends = {
4
- languageOptions: {
5
- parserOptions: {
6
- projectService: true
7
- }
4
+ export const esLintConfigAIDCToolkit: ConfigWithExtends[] = [
5
+ {
6
+ ignores: ["eslint.config.js", "dist"]
8
7
  },
8
+ js.configs.recommended,
9
+ {
10
+ languageOptions: {
11
+ parserOptions: {
12
+ projectService: true
13
+ }
14
+ },
9
15
 
10
- linterOptions: {
11
- reportUnusedDisableDirectives: "error"
12
- },
16
+ linterOptions: {
17
+ reportUnusedDisableDirectives: "error"
18
+ },
13
19
 
14
- rules: {
15
- "@typescript-eslint/class-literal-property-style": "off",
16
- "@typescript-eslint/class-methods-use-this": "off",
17
- "@typescript-eslint/init-declarations": "off",
18
- "@typescript-eslint/max-params": "off",
19
- "@typescript-eslint/no-empty-function": "off",
20
- "@typescript-eslint/no-empty-object-type": "off",
21
- "@typescript-eslint/no-unnecessary-type-parameters": "off",
22
- "@typescript-eslint/unbound-method": ["error", {
23
- ignoreStatic: true
24
- }],
20
+ rules: {
21
+ "no-dupe-class-members": "off",
22
+ "no-redeclare": "off",
23
+ "no-unused-vars": "off",
25
24
 
26
- "@stylistic/array-bracket-newline": ["error", "consistent"],
27
- "@stylistic/brace-style": ["error", "1tbs", {
28
- allowSingleLine: false
29
- }],
30
- "@stylistic/comma-dangle": ["error", "never"],
31
- "@stylistic/indent": ["error", 4],
32
- "@stylistic/member-delimiter-style": ["error", {
33
- multiline: {
34
- delimiter: "semi",
35
- requireLast: true
36
- },
37
- singleline: {
38
- delimiter: "semi"
39
- }
40
- }],
41
- "@stylistic/operator-linebreak": ["error", "after"],
42
- "@stylistic/quotes": ["error", "double"],
43
- "@stylistic/semi": ["error", "always"],
44
- "@stylistic/object-curly-newline": ["error", {
45
- ObjectExpression: {
46
- multiline: true,
47
- minProperties: 1
48
- },
49
- ObjectPattern: {
50
- multiline: true,
51
- minProperties: 1
52
- }
53
- }],
54
- "@stylistic/object-property-newline": "error",
25
+ "@typescript-eslint/class-literal-property-style": "off",
26
+ "@typescript-eslint/class-methods-use-this": "off",
27
+ "@typescript-eslint/init-declarations": "off",
28
+ "@typescript-eslint/max-params": "off",
29
+ "@typescript-eslint/no-empty-function": "off",
30
+ "@typescript-eslint/no-empty-object-type": "off",
31
+ "@typescript-eslint/no-magic-numbers": "off",
32
+ "@typescript-eslint/no-unnecessary-type-parameters": "off",
33
+ "@typescript-eslint/no-unused-vars": [
34
+ "error",
35
+ {
36
+ argsIgnorePattern: "^_",
37
+ varsIgnorePattern: "^_",
38
+ caughtErrorsIgnorePattern: "^_"
39
+ }
40
+ ],
41
+ "@typescript-eslint/prefer-destructuring": "off",
42
+ "@typescript-eslint/unbound-method": ["error", {
43
+ ignoreStatic: true
44
+ }],
55
45
 
56
- "jsdoc/require-returns": ["warn", {
57
- checkGetters: false
58
- }],
59
- "jsdoc/tag-lines": ["warn", "any", {
60
- count: 1,
61
- startLines: 1
62
- }]
46
+ "@stylistic/array-bracket-newline": ["error", "consistent"],
47
+ "@stylistic/brace-style": ["error", "1tbs", {
48
+ allowSingleLine: false
49
+ }],
50
+ "@stylistic/comma-dangle": ["error", "never"],
51
+ "@stylistic/indent": ["error", 4],
52
+ "@stylistic/member-delimiter-style": ["error", {
53
+ multiline: {
54
+ delimiter: "semi",
55
+ requireLast: true
56
+ },
57
+ singleline: {
58
+ delimiter: "semi"
59
+ }
60
+ }],
61
+ "@stylistic/no-trailing-spaces": ["warn"],
62
+ "@stylistic/operator-linebreak": ["error", "after"],
63
+ "@stylistic/quotes": ["error", "double"],
64
+ "@stylistic/semi": ["error", "always"],
65
+ "@stylistic/object-curly-newline": ["error", {
66
+ ObjectExpression: {
67
+ multiline: true,
68
+ minProperties: 1
69
+ },
70
+ ObjectPattern: {
71
+ multiline: true,
72
+ minProperties: 1
73
+ }
74
+ }],
75
+ "@stylistic/object-property-newline": "error",
76
+
77
+ "jsdoc/require-description": ["warn", {
78
+ contexts: ["ClassDeclaration", "ClassProperty", "FunctionDeclaration", "MethodDefinition", "TSEnumDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSTypeAliasDeclaration"]
79
+ }],
80
+ "jsdoc/require-jsdoc": ["warn", {
81
+ contexts: ["ClassDeclaration", "ClassProperty", "FunctionDeclaration", "MethodDefinition", "TSEnumDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSTypeAliasDeclaration"]
82
+ }],
83
+ "jsdoc/require-returns": ["warn", {
84
+ checkGetters: false
85
+ }],
86
+ "jsdoc/tag-lines": ["warn", "any", {
87
+ count: 1,
88
+ startLines: 1
89
+ }]
90
+ }
91
+ },
92
+ {
93
+ files: [
94
+ "test/**/*"
95
+ ],
96
+ rules: {
97
+ "jsdoc/require-jsdoc": "off",
98
+ "@typescript-eslint/dot-notation": "off"
99
+ }
63
100
  }
64
- };
101
+ ];
package/tsconfig.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "forceConsistentCasingInFileNames": true,
18
18
 
19
19
  // Language and environment.
20
- "target": "es2020",
20
+ "target": "esnext",
21
21
  "useDefineForClassFields": true,
22
22
 
23
23
  // Completeness.