@virmator/lint 13.2.7 → 13.2.9

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
@@ -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)
@@ -5,8 +5,7 @@
5
5
  "clean": true,
6
6
  "exclude": [
7
7
  "**/*.test.ts",
8
- "**/*.example.ts",
9
- "**/*.test-helper.ts"
8
+ "**/*.example.ts"
10
9
  ],
11
10
  "include": [
12
11
  "src/**/*.ts"
@@ -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',
@@ -82,6 +88,8 @@ export function defineEslintConfig(repoDir) {
82
88
  '@typescript-eslint/no-unsafe-member-access': 'off',
83
89
  '@typescript-eslint/no-unsafe-return': 'off',
84
90
  '@typescript-eslint/prefer-reduce-type-parameter': 'off',
91
+ '@typescript-eslint/unified-signatures': 'off', // this rule is always wrong
92
+ '@typescript-eslint/no-useless-constructor': 'off', // this rule is always wrong
85
93
 
86
94
  'no-async-promise-executor': 'off',
87
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.7",
3
+ "version": "13.2.9",
4
4
  "description": "Default ESLint linting plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -32,20 +32,21 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@augment-vir/common": "^29.3.0",
35
- "@virmator/core": "^13.2.7",
35
+ "@virmator/core": "^13.2.9",
36
36
  "mri": "^1.2.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@eslint/eslintrc": "^3.1.0",
40
40
  "@eslint/js": "^9.9.0",
41
- "@stylistic/eslint-plugin": "^2.6.2",
42
- "@stylistic/eslint-plugin-ts": "^2.6.2",
43
- "@types/node": "^22.2.0",
41
+ "@stylistic/eslint-plugin": "^2.6.4",
42
+ "@stylistic/eslint-plugin-ts": "^2.6.4",
43
+ "@types/node": "^22.4.0",
44
44
  "@typescript-eslint/eslint-plugin": "^8.1.0",
45
45
  "c8": "^10.1.2",
46
46
  "eslint": "^9.9.0",
47
47
  "eslint-config-prettier": "^9.1.0",
48
- "eslint-plugin-jsdoc": "^50.1.0",
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",
@@ -1,7 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "rootDir": ".."
4
- },
5
- "extends": "./tsconfig.base.json",
6
- "include": ["../packages/**/*.ts"]
7
- }