@croct/eslint-plugin 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/index.cjs +19115 -23820
- package/index.d.cts +12 -15
- package/package.json +23 -21
package/index.d.cts
CHANGED
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import * as _eslint_core0 from "@eslint/core";
|
|
2
|
-
import * as eslint from "eslint";
|
|
3
1
|
import { ESLint } from "eslint";
|
|
4
|
-
import * as _typescript_eslint_utils_ts_eslint0 from "@typescript-eslint/utils/ts-eslint";
|
|
5
2
|
|
|
6
3
|
//#region src/rules/index.d.ts
|
|
7
4
|
declare const rules: {
|
|
8
|
-
'argument-spacing':
|
|
5
|
+
'argument-spacing': import("@typescript-eslint/utils/ts-eslint").RuleModule<"missing", readonly unknown[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
9
6
|
name: string;
|
|
10
7
|
};
|
|
11
|
-
'jsx-attribute-spacing':
|
|
8
|
+
'jsx-attribute-spacing': import("@typescript-eslint/utils/ts-eslint").RuleModule<"missing", readonly unknown[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
12
9
|
name: string;
|
|
13
10
|
};
|
|
14
|
-
'complex-expression-spacing':
|
|
11
|
+
'complex-expression-spacing': import("@typescript-eslint/utils/ts-eslint").RuleModule<"missing", readonly unknown[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
15
12
|
name: string;
|
|
16
13
|
};
|
|
17
|
-
'newline-per-chained-call':
|
|
14
|
+
'newline-per-chained-call': import("@typescript-eslint/utils/ts-eslint").RuleModule<"expectedLineBreak", {
|
|
18
15
|
ignoreChainDeeperThan: number;
|
|
19
|
-
}[], unknown,
|
|
16
|
+
}[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
20
17
|
name: string;
|
|
21
18
|
};
|
|
22
|
-
'min-chained-call-depth':
|
|
19
|
+
'min-chained-call-depth': import("@typescript-eslint/utils/ts-eslint").RuleModule<"unexpectedLineBreak", {
|
|
23
20
|
maxLineLength: number;
|
|
24
21
|
ignoreChainDeeperThan: number;
|
|
25
|
-
}[], unknown,
|
|
22
|
+
}[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
26
23
|
name: string;
|
|
27
24
|
};
|
|
28
|
-
'parameter-destructuring':
|
|
25
|
+
'parameter-destructuring': import("@typescript-eslint/utils/ts-eslint").RuleModule<"unexpectedDestructuring", readonly unknown[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
29
26
|
name: string;
|
|
30
27
|
};
|
|
31
28
|
};
|
|
@@ -36,10 +33,10 @@ declare const plugin: {
|
|
|
36
33
|
configs: {};
|
|
37
34
|
};
|
|
38
35
|
declare const configs: {
|
|
39
|
-
readonly javascript: eslint.Linter.Config<
|
|
40
|
-
readonly typescript: eslint.Linter.Config<
|
|
41
|
-
readonly react: eslint.Linter.Config<
|
|
42
|
-
readonly cypress: eslint.Linter.Config<
|
|
36
|
+
readonly javascript: import("eslint").Linter.Config<import("@eslint/core").RulesConfig>[];
|
|
37
|
+
readonly typescript: import("eslint").Linter.Config<import("@eslint/core").RulesConfig>[];
|
|
38
|
+
readonly react: import("eslint").Linter.Config<import("@eslint/core").RulesConfig>[];
|
|
39
|
+
readonly cypress: import("eslint").Linter.Config<import("@eslint/core").RulesConfig>[];
|
|
43
40
|
};
|
|
44
41
|
//#endregion
|
|
45
42
|
export { configs, plugin, rules };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@croct/eslint-plugin",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "ESLint rules and presets applied to all Croct JavaScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"email": "lib+coding-standard-js@croct.com",
|
|
28
28
|
"url": "https://croct.com"
|
|
29
29
|
},
|
|
30
|
-
"main": "
|
|
31
|
-
"types": "
|
|
30
|
+
"main": "index.cjs",
|
|
31
|
+
"types": "index.d.cts",
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsdown",
|
|
34
34
|
"lint": "eslint 'src/**/*.{ts,tsx}'",
|
|
@@ -37,36 +37,38 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
40
|
-
"@eslint/compat": "^2.0
|
|
41
|
-
"@stylistic/eslint-plugin": "^5.
|
|
42
|
-
"@typescript-eslint/typescript-estree": "^8.
|
|
43
|
-
"@typescript-eslint/utils": "^8.
|
|
44
|
-
"eslint-plugin-cypress": "^6.1
|
|
45
|
-
"eslint-plugin-eslint-plugin": "^7.3.
|
|
40
|
+
"@eslint/compat": "^2.1.0",
|
|
41
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
42
|
+
"@typescript-eslint/typescript-estree": "^8.59.4",
|
|
43
|
+
"@typescript-eslint/utils": "^8.59.4",
|
|
44
|
+
"eslint-plugin-cypress": "^6.4.1",
|
|
45
|
+
"eslint-plugin-eslint-plugin": "^7.3.3",
|
|
46
46
|
"eslint-plugin-import-newlines": "^2.0.0",
|
|
47
|
-
"eslint-plugin-jest": "^29.15.
|
|
47
|
+
"eslint-plugin-jest": "^29.15.2",
|
|
48
48
|
"eslint-plugin-newline-destructuring": "^1.2.2",
|
|
49
49
|
"eslint-plugin-self": "^1.2.1",
|
|
50
|
-
"eslint-plugin-testing-library": "^7.16.
|
|
50
|
+
"eslint-plugin-testing-library": "^7.16.2",
|
|
51
51
|
"globals": "^17.6.0",
|
|
52
|
-
"typescript-eslint": "^8.
|
|
52
|
+
"typescript-eslint": "^8.59.4",
|
|
53
|
+
"unrs-resolver": "^1.12.2"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@types/jest": "^30.0.0",
|
|
57
|
+
"@types/node": "^25.9.1",
|
|
56
58
|
"@types/semver": "^7.7.1",
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
58
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
59
|
-
"@typescript-eslint/types": "^8.
|
|
60
|
-
"eslint": "^10.0
|
|
59
|
+
"@typescript-eslint/parser": "^8.59.4",
|
|
60
|
+
"@typescript-eslint/rule-tester": "^8.59.4",
|
|
61
|
+
"@typescript-eslint/types": "^8.59.4",
|
|
62
|
+
"eslint": "^10.4.0",
|
|
61
63
|
"eslint-plugin-import-x": "^4.16.2",
|
|
62
64
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
63
65
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
64
66
|
"eslint-plugin-react": "^7.37.5",
|
|
65
|
-
"eslint-plugin-react-hooks": "^7.
|
|
66
|
-
"jest": "^30.2
|
|
67
|
-
"ts-jest": "^29.4.
|
|
68
|
-
"tsdown": "^0.
|
|
69
|
-
"typescript": "~
|
|
67
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
68
|
+
"jest": "^30.4.2",
|
|
69
|
+
"ts-jest": "^29.4.11",
|
|
70
|
+
"tsdown": "^0.22.0",
|
|
71
|
+
"typescript": "~6.0.3"
|
|
70
72
|
},
|
|
71
73
|
"peerDependencies": {
|
|
72
74
|
"@typescript-eslint/parser": ">= 8",
|