@virmator/lint 13.2.8 → 13.2.10
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 +1 -0
- package/configs/c8.config.json +1 -2
- package/configs/eslint.config.base.mjs +7 -0
- package/dist/lint.d.ts +10 -0
- package/dist/lint.js +11 -0
- package/package.json +6 -5
- package/configs/tsconfig.eslint.json +0 -7
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ A default plugin for [virmator](https://www.npmjs.com/package/virmator).
|
|
|
20
20
|
- [@eslint/js](https://npmjs.com/package/@eslint/js)
|
|
21
21
|
- [@eslint/eslintrc](https://npmjs.com/package/@eslint/eslintrc)
|
|
22
22
|
- [@stylistic/eslint-plugin](https://npmjs.com/package/@stylistic/eslint-plugin)
|
|
23
|
+
- [eslint-plugin-monorepo-cop](https://npmjs.com/package/eslint-plugin-monorepo-cop)
|
|
23
24
|
- [@stylistic/eslint-plugin-ts](https://npmjs.com/package/@stylistic/eslint-plugin-ts)
|
|
24
25
|
- [@typescript-eslint/eslint-plugin](https://npmjs.com/package/@typescript-eslint/eslint-plugin)
|
|
25
26
|
- [eslint-config-prettier](https://npmjs.com/package/eslint-config-prettier)
|
package/configs/c8.config.json
CHANGED
|
@@ -34,6 +34,12 @@ export function defineEslintConfig(repoDir) {
|
|
|
34
34
|
return [
|
|
35
35
|
...compat.plugins('require-extensions'),
|
|
36
36
|
...compat.extends('plugin:require-extensions/recommended'),
|
|
37
|
+
...compat.config({
|
|
38
|
+
plugins: ['monorepo-cop'],
|
|
39
|
+
rules: {
|
|
40
|
+
'monorepo-cop/no-relative-import-outside-package': 'error',
|
|
41
|
+
},
|
|
42
|
+
}),
|
|
37
43
|
{
|
|
38
44
|
ignores: [
|
|
39
45
|
'*.graphql',
|
|
@@ -83,6 +89,7 @@ export function defineEslintConfig(repoDir) {
|
|
|
83
89
|
'@typescript-eslint/no-unsafe-return': 'off',
|
|
84
90
|
'@typescript-eslint/prefer-reduce-type-parameter': 'off',
|
|
85
91
|
'@typescript-eslint/unified-signatures': 'off', // this rule is always wrong
|
|
92
|
+
'@typescript-eslint/no-useless-constructor': 'off', // this rule is always wrong
|
|
86
93
|
|
|
87
94
|
'no-async-promise-executor': 'off',
|
|
88
95
|
'no-prototype-builtins': 'off',
|
package/dist/lint.d.ts
CHANGED
|
@@ -68,6 +68,11 @@ export declare const virmatorLintPlugin: Readonly<Readonly<{
|
|
|
68
68
|
readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
|
|
69
69
|
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
70
70
|
};
|
|
71
|
+
readonly 'eslint-plugin-monorepo-cop': {
|
|
72
|
+
readonly type: NpmDepType.Dev;
|
|
73
|
+
readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
|
|
74
|
+
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
75
|
+
};
|
|
71
76
|
readonly '@stylistic/eslint-plugin-ts': {
|
|
72
77
|
readonly type: NpmDepType.Dev;
|
|
73
78
|
readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
|
|
@@ -179,6 +184,11 @@ export declare const virmatorLintPlugin: Readonly<Readonly<{
|
|
|
179
184
|
readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
|
|
180
185
|
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
181
186
|
};
|
|
187
|
+
readonly 'eslint-plugin-monorepo-cop': {
|
|
188
|
+
readonly type: NpmDepType.Dev;
|
|
189
|
+
readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
|
|
190
|
+
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
191
|
+
};
|
|
182
192
|
readonly '@stylistic/eslint-plugin-ts': {
|
|
183
193
|
readonly type: NpmDepType.Dev;
|
|
184
194
|
readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
|
package/dist/lint.js
CHANGED
|
@@ -133,6 +133,17 @@ export const virmatorLintPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
133
133
|
PackageType.MonoRoot,
|
|
134
134
|
],
|
|
135
135
|
},
|
|
136
|
+
'eslint-plugin-monorepo-cop': {
|
|
137
|
+
type: NpmDepType.Dev,
|
|
138
|
+
env: [
|
|
139
|
+
VirmatorEnv.Node,
|
|
140
|
+
VirmatorEnv.Web,
|
|
141
|
+
],
|
|
142
|
+
packageType: [
|
|
143
|
+
PackageType.TopPackage,
|
|
144
|
+
PackageType.MonoRoot,
|
|
145
|
+
],
|
|
146
|
+
},
|
|
136
147
|
'@stylistic/eslint-plugin-ts': {
|
|
137
148
|
type: NpmDepType.Dev,
|
|
138
149
|
env: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/lint",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.10",
|
|
4
4
|
"description": "Default ESLint linting plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@augment-vir/common": "^29.3.0",
|
|
35
|
-
"@virmator/core": "^13.2.
|
|
35
|
+
"@virmator/core": "^13.2.10",
|
|
36
36
|
"mri": "^1.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -40,19 +40,20 @@
|
|
|
40
40
|
"@eslint/js": "^9.9.0",
|
|
41
41
|
"@stylistic/eslint-plugin": "^2.6.4",
|
|
42
42
|
"@stylistic/eslint-plugin-ts": "^2.6.4",
|
|
43
|
-
"@types/node": "^22.
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
43
|
+
"@types/node": "^22.5.0",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^8.2.0",
|
|
45
45
|
"c8": "^10.1.2",
|
|
46
46
|
"eslint": "^9.9.0",
|
|
47
47
|
"eslint-config-prettier": "^9.1.0",
|
|
48
48
|
"eslint-plugin-jsdoc": "^50.2.2",
|
|
49
|
+
"eslint-plugin-monorepo-cop": "^1.0.2",
|
|
49
50
|
"eslint-plugin-playwright": "^1.6.2",
|
|
50
51
|
"eslint-plugin-prettier": "^5.2.1",
|
|
51
52
|
"eslint-plugin-require-extensions": "^0.1.3",
|
|
52
53
|
"eslint-plugin-sonarjs": "^1.0.4",
|
|
53
54
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
54
55
|
"istanbul-smart-text-reporter": "^1.1.4",
|
|
55
|
-
"typescript-eslint": "^8.
|
|
56
|
+
"typescript-eslint": "^8.2.0"
|
|
56
57
|
},
|
|
57
58
|
"engines": {
|
|
58
59
|
"node": ">=22"
|