ignore-lint-errors 1.2.3 → 1.3.1
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/dist/src/utils/linters/oxlint.js +3 -3
- package/package.json +11 -11
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getFilesWithErrors, getMessage } from './shared/index.js';
|
|
2
2
|
export const outputFilePath = '.ignore-lint-errors/oxlint.txt';
|
|
3
3
|
function extractRuleId(code) {
|
|
4
|
-
const matches = code.match(
|
|
5
|
-
if (matches === null) {
|
|
4
|
+
const matches = code.match(/^(.+)\((.+)\)$/);
|
|
5
|
+
if (matches === null || matches.length !== 3) {
|
|
6
6
|
throw new Error(`Unable to extract rule ID (code: ${code})`);
|
|
7
7
|
}
|
|
8
|
-
return matches[1]
|
|
8
|
+
return `${matches[1]}/${matches[2]}`;
|
|
9
9
|
}
|
|
10
10
|
function normalize(file) {
|
|
11
11
|
const filePathToData = new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ignore-lint-errors",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Codemod to ignore lint errors per line",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codemod",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@codemod-utils/ast-javascript": "^4.3.
|
|
30
|
-
"@codemod-utils/ast-template": "^4.1.
|
|
31
|
-
"@codemod-utils/ast-template-tag": "^2.7.
|
|
32
|
-
"@codemod-utils/files": "^4.1.
|
|
33
|
-
"@codemod-utils/package-json": "^4.1.
|
|
29
|
+
"@codemod-utils/ast-javascript": "^4.3.5",
|
|
30
|
+
"@codemod-utils/ast-template": "^4.1.2",
|
|
31
|
+
"@codemod-utils/ast-template-tag": "^2.7.2",
|
|
32
|
+
"@codemod-utils/files": "^4.1.2",
|
|
33
|
+
"@codemod-utils/package-json": "^4.1.4",
|
|
34
34
|
"yargs": "^18.2.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@changesets/cli": "^3.0.3",
|
|
38
|
-
"@codemod-utils/tests": "^3.3.
|
|
39
|
-
"@ijlee2-frontend-configs/changesets": "^3.0.
|
|
40
|
-
"@ijlee2-frontend-configs/oxlint-node": "^0.3.
|
|
41
|
-
"@ijlee2-frontend-configs/prettier": "^3.4.
|
|
42
|
-
"@ijlee2-frontend-configs/typescript": "^4.4.
|
|
38
|
+
"@codemod-utils/tests": "^3.3.1",
|
|
39
|
+
"@ijlee2-frontend-configs/changesets": "^3.0.4",
|
|
40
|
+
"@ijlee2-frontend-configs/oxlint-node": "^0.3.2",
|
|
41
|
+
"@ijlee2-frontend-configs/prettier": "^3.4.4",
|
|
42
|
+
"@ijlee2-frontend-configs/typescript": "^4.4.1",
|
|
43
43
|
"@types/node": "^22.20.5",
|
|
44
44
|
"@types/yargs": "^17.0.35",
|
|
45
45
|
"concurrently": "^10.0.6",
|