@aidc-toolkit/dev 0.9.1 → 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 +0 -6
- package/eslint.config.js +2 -7
- package/package.json +8 -8
- package/src/eslint.config.template.ts +93 -64
package/README.md
CHANGED
|
@@ -24,17 +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
|
-
{
|
|
35
|
-
ignores: ["eslint.config.js", "dist"]
|
|
36
|
-
},
|
|
37
|
-
js.configs.recommended,
|
|
38
33
|
...tseslint.configs.strictTypeChecked,
|
|
39
34
|
stylistic.configs["recommended-flat"],
|
|
40
35
|
jsdoc.configs["flat/recommended-typescript"],
|
|
@@ -45,7 +40,6 @@ export default tseslint.config(
|
|
|
45
40
|
|
|
46
41
|
The ESLint configuration requires the installation of the following development dependencies:
|
|
47
42
|
|
|
48
|
-
- @eslint/js
|
|
49
43
|
- @stylistic/eslint-plugin
|
|
50
44
|
- eslint-config-love
|
|
51
45
|
- eslint-plugin-jsdoc
|
package/eslint.config.js
CHANGED
|
@@ -1,18 +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
|
-
{
|
|
10
|
-
ignores: ["eslint.config.js", "dist"]
|
|
11
|
-
},
|
|
12
|
-
js.configs.recommended,
|
|
13
8
|
...tseslint.configs.strictTypeChecked,
|
|
14
9
|
stylistic.configs["recommended-flat"],
|
|
15
10
|
jsdoc.configs["flat/recommended-typescript"],
|
|
16
11
|
esLintConfigLove,
|
|
17
|
-
esLintConfigAIDCToolkit
|
|
12
|
+
...esLintConfigAIDCToolkit
|
|
18
13
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aidc-toolkit/dev",
|
|
3
|
-
"version": "0.9.
|
|
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.
|
|
27
|
-
"@stylistic/eslint-plugin": "^2.
|
|
28
|
-
"eslint-config-love": "^
|
|
29
|
-
"eslint-plugin-jsdoc": "^50.
|
|
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.3.
|
|
32
|
-
"typescript": "^5.6.
|
|
33
|
-
"typescript-eslint": "^8.
|
|
31
|
+
"tsup": "^8.3.5",
|
|
32
|
+
"typescript": "^5.6.3",
|
|
33
|
+
"typescript-eslint": "^8.14.0"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,72 +1,101 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
1
2
|
import type { ConfigWithExtends } from "typescript-eslint";
|
|
2
3
|
|
|
3
|
-
export const esLintConfigAIDCToolkit: ConfigWithExtends =
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
linterOptions: {
|
|
17
|
+
reportUnusedDisableDirectives: "error"
|
|
18
|
+
},
|
|
13
19
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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-magic-numbers": "off",
|
|
22
|
-
"@typescript-eslint/no-unnecessary-type-parameters": "off",
|
|
23
|
-
"@typescript-eslint/unbound-method": ["error", {
|
|
24
|
-
ignoreStatic: true
|
|
25
|
-
}],
|
|
20
|
+
rules: {
|
|
21
|
+
"no-dupe-class-members": "off",
|
|
22
|
+
"no-redeclare": "off",
|
|
23
|
+
"no-unused-vars": "off",
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
ObjectExpression: {
|
|
48
|
-
multiline: true,
|
|
49
|
-
minProperties: 1
|
|
50
|
-
},
|
|
51
|
-
ObjectPattern: {
|
|
52
|
-
multiline: true,
|
|
53
|
-
minProperties: 1
|
|
54
|
-
}
|
|
55
|
-
}],
|
|
56
|
-
"@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
|
+
}],
|
|
57
45
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
+
}
|
|
71
100
|
}
|
|
72
|
-
|
|
101
|
+
];
|