ignore-lint-errors 1.2.1 → 1.2.3

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.
@@ -5,7 +5,7 @@ export function getIgnoredRules(lineOfCode, data) {
5
5
  try {
6
6
  AST.traverse(lineOfCode, {
7
7
  visitComment(path) {
8
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
8
+ // oxlint-disable-next-line typescript/no-unsafe-member-access
9
9
  const comment = path.value.value.trim();
10
10
  if (!comment.startsWith(ignoreDirective)) {
11
11
  return false;
@@ -18,7 +18,7 @@ function getComment(message, data) {
18
18
  }
19
19
  }
20
20
  export function ignoreError(lintError, data) {
21
- // eslint-disable-next-line prefer-const
21
+ // oxlint-disable-next-line eslint/prefer-const
22
22
  let { line, message } = lintError;
23
23
  const { commentStyle, ignoreDirective, lines } = data;
24
24
  const currentIndex = line - 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ignore-lint-errors",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Codemod to ignore lint errors per line",
5
5
  "keywords": [
6
6
  "codemod",
@@ -19,31 +19,33 @@
19
19
  "author": "Isaac J. Lee",
20
20
  "type": "module",
21
21
  "main": "dist/src/index.js",
22
+ "bin": {
23
+ "ignore-lint-errors": "dist/bin/ignore-lint-errors.js"
24
+ },
22
25
  "files": [
23
26
  "dist"
24
27
  ],
25
28
  "dependencies": {
26
- "@codemod-utils/ast-javascript": "^4.3.2",
27
- "@codemod-utils/ast-template": "^4.1.0",
28
- "@codemod-utils/ast-template-tag": "^2.7.0",
29
- "@codemod-utils/files": "^4.1.0",
30
- "@codemod-utils/package-json": "^4.1.0",
31
- "yargs": "^18.1.0"
29
+ "@codemod-utils/ast-javascript": "^4.3.4",
30
+ "@codemod-utils/ast-template": "^4.1.1",
31
+ "@codemod-utils/ast-template-tag": "^2.7.1",
32
+ "@codemod-utils/files": "^4.1.1",
33
+ "@codemod-utils/package-json": "^4.1.3",
34
+ "yargs": "^18.2.0"
32
35
  },
33
36
  "devDependencies": {
34
- "@changesets/cli": "^3.0.2",
37
+ "@changesets/cli": "^3.0.3",
35
38
  "@codemod-utils/tests": "^3.3.0",
36
- "@ijlee2-frontend-configs/changesets": "^3.0.2",
37
- "@ijlee2-frontend-configs/eslint-config-node": "^4.2.4",
38
- "@ijlee2-frontend-configs/prettier": "^3.3.4",
39
- "@sondr3/minitest": "^0.1.2",
40
- "@tsconfig/node22": "^22.0.6",
41
- "@tsconfig/strictest": "^2.0.8",
42
- "@types/node": "^22.20.1",
39
+ "@ijlee2-frontend-configs/changesets": "^3.0.3",
40
+ "@ijlee2-frontend-configs/oxlint-node": "^0.3.0",
41
+ "@ijlee2-frontend-configs/prettier": "^3.4.2",
42
+ "@ijlee2-frontend-configs/typescript": "^4.4.0",
43
+ "@types/node": "^22.20.5",
43
44
  "@types/yargs": "^17.0.35",
44
- "concurrently": "^10.0.5",
45
- "eslint": "^10.10.0",
46
- "prettier": "^3.9.6",
45
+ "concurrently": "^10.0.6",
46
+ "oxlint": "^1.88.0",
47
+ "oxlint-tsgolint": "^7.0.2004",
48
+ "prettier": "^3.9.10",
47
49
  "typescript": "^6.0.3"
48
50
  },
49
51
  "engines": {
@@ -55,14 +57,11 @@
55
57
  "lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
56
58
  "lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" && pnpm format",
57
59
  "lint:format": "prettier . --cache --check",
58
- "lint:js": "eslint . --cache",
59
- "lint:js:fix": "eslint . --fix",
60
+ "lint:js": "oxlint",
61
+ "lint:js:fix": "oxlint --fix",
60
62
  "lint:types": "tsc --noEmit",
61
63
  "release:prepare": "changeset version",
62
64
  "release:publish": "pnpm build && changeset publish",
63
65
  "test": "sh build.sh --test && mt dist-for-testing --quiet"
64
- },
65
- "bin": {
66
- "ignore-lint-errors": "dist/bin/ignore-lint-errors.js"
67
66
  }
68
67
  }