@virmator/lint 13.4.0 → 13.5.0
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/configs/eslint.config.base.mjs +5 -2
- package/package.json +16 -16
|
@@ -10,12 +10,12 @@ import {existsSync} from 'node:fs';
|
|
|
10
10
|
import {join} from 'node:path';
|
|
11
11
|
import tsEslint from 'typescript-eslint';
|
|
12
12
|
|
|
13
|
-
const globalVars = {
|
|
13
|
+
export const globalVars = {
|
|
14
14
|
...globals.node,
|
|
15
15
|
...globals.browser,
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
function determineTsconfigPath(repoDir) {
|
|
18
|
+
export function determineTsconfigPath(repoDir) {
|
|
19
19
|
const eslintTsconfig = join(repoDir, 'configs', 'tsconfig.eslint.json');
|
|
20
20
|
const rootTsconfig = join(repoDir, 'tsconfig.json');
|
|
21
21
|
|
|
@@ -48,6 +48,7 @@ export function defineEslintConfig(repoDir) {
|
|
|
48
48
|
'*.sh',
|
|
49
49
|
'*.sql',
|
|
50
50
|
'*.yml',
|
|
51
|
+
'**/.not-committed/',
|
|
51
52
|
'**/all-files-for-code-coverage.test.ts',
|
|
52
53
|
'**/configs/',
|
|
53
54
|
'**/coverage/',
|
|
@@ -97,6 +98,7 @@ export function defineEslintConfig(repoDir) {
|
|
|
97
98
|
'sonarjs/cognitive-complexity': 'off',
|
|
98
99
|
'sonarjs/different-types-comparison': 'off', // this rule is wrong
|
|
99
100
|
'sonarjs/function-return-type': 'off',
|
|
101
|
+
'sonarjs/new-cap': 'off',
|
|
100
102
|
'sonarjs/no-alphabetical-sort': 'off',
|
|
101
103
|
'sonarjs/no-duplicate-string': 'off',
|
|
102
104
|
'sonarjs/no-empty-test-file': 'off', // this rule is wrong
|
|
@@ -108,6 +110,7 @@ export function defineEslintConfig(repoDir) {
|
|
|
108
110
|
'sonarjs/no-useless-constructor': 'off', // this rule is wrong
|
|
109
111
|
'sonarjs/prefer-nullish-coalescing': 'off',
|
|
110
112
|
'sonarjs/publicly-writable-directories': 'off',
|
|
113
|
+
'sonarjs/reduce-initial-value': 'off',
|
|
111
114
|
'sonarjs/sonar-prefer-regexp-exec': 'off',
|
|
112
115
|
'sonarjs/use-type-alias': 'off',
|
|
113
116
|
'sonarjs/void-use': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/lint",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"description": "Default ESLint linting plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -31,31 +31,31 @@
|
|
|
31
31
|
"test:update": "npm test update"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@augment-vir/assert": "^30.0
|
|
35
|
-
"@augment-vir/common": "^30.0
|
|
36
|
-
"@virmator/core": "^13.
|
|
34
|
+
"@augment-vir/assert": "^30.2.0",
|
|
35
|
+
"@augment-vir/common": "^30.2.0",
|
|
36
|
+
"@virmator/core": "^13.5.0",
|
|
37
37
|
"mri": "^1.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@augment-vir/test": "^30.0
|
|
40
|
+
"@augment-vir/test": "^30.2.0",
|
|
41
41
|
"@eslint/eslintrc": "^3.1.0",
|
|
42
|
-
"@eslint/js": "^9.
|
|
43
|
-
"@stylistic/eslint-plugin": "^2.
|
|
44
|
-
"@stylistic/eslint-plugin-ts": "^2.
|
|
45
|
-
"@types/node": "^22.
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
42
|
+
"@eslint/js": "^9.12.0",
|
|
43
|
+
"@stylistic/eslint-plugin": "^2.9.0",
|
|
44
|
+
"@stylistic/eslint-plugin-ts": "^2.9.0",
|
|
45
|
+
"@types/node": "^22.7.4",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
|
47
47
|
"c8": "^10.1.2",
|
|
48
|
-
"eslint": "^9.
|
|
48
|
+
"eslint": "^9.12.0",
|
|
49
49
|
"eslint-config-prettier": "^9.1.0",
|
|
50
|
-
"eslint-plugin-jsdoc": "^50.
|
|
50
|
+
"eslint-plugin-jsdoc": "^50.3.1",
|
|
51
51
|
"eslint-plugin-monorepo-cop": "^1.0.2",
|
|
52
52
|
"eslint-plugin-playwright": "^1.6.2",
|
|
53
53
|
"eslint-plugin-prettier": "^5.2.1",
|
|
54
54
|
"eslint-plugin-require-extensions": "^0.1.3",
|
|
55
|
-
"eslint-plugin-sonarjs": "^2.0.
|
|
56
|
-
"eslint-plugin-unicorn": "^
|
|
57
|
-
"istanbul-smart-text-reporter": "^1.1.
|
|
58
|
-
"typescript-eslint": "^8.
|
|
55
|
+
"eslint-plugin-sonarjs": "^2.0.3",
|
|
56
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
|
57
|
+
"istanbul-smart-text-reporter": "^1.1.5",
|
|
58
|
+
"typescript-eslint": "^8.8.0"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=22"
|