ignore-lint-errors 0.4.1 → 0.4.2
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 +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ In large production projects, ignoring lint errors for existing code is the most
|
|
|
15
15
|
|
|
16
16
|
For the sake of reducing noise, some prefer disabling linting for the entire file. They do so by adding a global directive (e.g. `eslint-disable`) or creating a special file to "suppress" files with many errors.
|
|
17
17
|
|
|
18
|
-
Instead, `ignore-lint-
|
|
18
|
+
Instead, `ignore-lint-errors` takes the honest approach: It adds a local directive (e.g. `eslint-disable-next-line`) for every line that has an error. This way, we can easily see and show others (including non-engineers),
|
|
19
19
|
|
|
20
20
|
- How bad our code is in order to create the urgency to fix issues. The number of local ignores (1 per line) always estimates the actual number of errors better than the number of global ignores (1 per file).
|
|
21
21
|
- Which parts of our code are good and should be replicated, and which parts are bad and to be avoided. When there is a global ignore, a linter doesn't check the file for the given rule(s).
|
|
@@ -28,8 +28,13 @@ Instead, `ignore-lint-error` takes the honest approach: It adds a local directiv
|
|
|
28
28
|
You must pass `--linter` to indicate which linter to run.
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
|
+
# Run eslint
|
|
31
32
|
pnpx ignore-lint-errors --linter eslint
|
|
33
|
+
|
|
34
|
+
# Run stylelint
|
|
32
35
|
pnpx ignore-lint-errors --linter stylelint
|
|
36
|
+
|
|
37
|
+
# Run glint or typescript
|
|
33
38
|
pnpx ignore-lint-errors --linter typescript
|
|
34
39
|
```
|
|
35
40
|
|
|
@@ -66,7 +71,7 @@ pnpm build
|
|
|
66
71
|
## Compatibility
|
|
67
72
|
|
|
68
73
|
- Node.js v22 or above
|
|
69
|
-
- Tested against `eslint@v9`, `stylelint@v17`, `typescript@v5`
|
|
74
|
+
- Tested against `eslint@v9`, `glint@v2`, `stylelint@v17`, `typescript@v5`
|
|
70
75
|
|
|
71
76
|
|
|
72
77
|
## Contributing
|