oxlint-plugin-slimdeer 0.6.0 → 0.6.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/README.md +7 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -94,7 +94,13 @@ export default [
|
|
|
94
94
|
];
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
No config for your JSX yet? ESLint then lints no `.jsx` file, and the rule warns on nothing. Put this object before `slimdeer.configs.recommended`:
|
|
98
|
+
|
|
99
|
+
```js
|
|
100
|
+
{ files: ["**/*.{js,jsx}"], languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } } },
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
For TypeScript, [add a config object with its parser](https://github.com/lndgalante/oxlint-plugin-slimdeer/blob/main/docs/rules/compressible-image.md#eslint-setup).
|
|
98
104
|
|
|
99
105
|
Then run `npx eslint .`, without `--cache`: ESLint would replay old warnings for images you already shrank, and the rule would print no summary.
|
|
100
106
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-slimdeer",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "Lint rule for oxlint and ESLint: flags PNGs and JPEGs your code uses that could be at least 4 KiB and 10% smaller at about the same visual quality
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Lint rule for oxlint and ESLint: flags PNGs and JPEGs your code uses that could be at least 4 KiB and 10% smaller at about the same visual quality. Its command shows them before and after, shrinks them, or writes WebP and AVIF copies. No upload.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxlint",
|
|
7
7
|
"oxlint-plugin",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"check:published": "node scripts/check-package.js --published"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"eslint": ">=9.0.0",
|
|
60
|
+
"eslint": ">=9.0.0 <11",
|
|
61
61
|
"oxlint": ">=1.60.0 <2"
|
|
62
62
|
},
|
|
63
63
|
"peerDependenciesMeta": {
|