@thedanbob/esbuild-plugin-eslint 0.4.0 → 0.4.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 → README.md} +5 -14
- package/package.json +2 -2
package/{readme.md → README.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `esbuild-plugin-eslint`
|
|
2
2
|
|
|
3
|
-
> Lint your [`esbuild`](https://github.com/evanw/esbuild) bundles with [`eslint`](https://github.com/eslint/eslint).
|
|
3
|
+
> Lint your [`esbuild`](https://github.com/evanw/esbuild) bundles with [`eslint`](https://github.com/eslint/eslint).
|
|
4
4
|
|
|
5
5
|
Nicely integrates the most recent version of [`eslint`](https://github.com/eslint/eslint) into an [`esbuild`](https://github.com/evanw/esbuild) plugin.
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ node esbuild.config.js
|
|
|
28
28
|
|
|
29
29
|
## Config
|
|
30
30
|
|
|
31
|
-
This plugin respects your [ESLint configuration](https://eslint.org/docs/user-guide/configuring)
|
|
31
|
+
This plugin respects your [ESLint configuration](https://eslint.org/docs/user-guide/configuring) by default. It takes the same options as the [ESLint constructor](https://eslint.org/docs/latest/developer-guide/nodejs-api#parameters) with the addition of `filter`, `throwOnError`, and `throwOnWarning`. The most important options are:
|
|
32
32
|
|
|
33
33
|
### `filter`
|
|
34
34
|
|
|
@@ -43,7 +43,7 @@ Tells esbuild what files to look at. Only files matching this pattern will be ha
|
|
|
43
43
|
|
|
44
44
|
Type: `boolean`<br>
|
|
45
45
|
Default: `false`<br>
|
|
46
|
-
Used by:
|
|
46
|
+
Used by: The plugin itself
|
|
47
47
|
|
|
48
48
|
Instructs the plugin to forward errors found by ESLint to esbuild and throw an error.
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ Instructs the plugin to forward errors found by ESLint to esbuild and throw an e
|
|
|
51
51
|
|
|
52
52
|
Type: `boolean`<br>
|
|
53
53
|
Default: `false`<br>
|
|
54
|
-
Used by:
|
|
54
|
+
Used by: The plugin itself
|
|
55
55
|
|
|
56
56
|
Instructs the plugin to forward warnings found by ESLint to esbuild and throw an error.
|
|
57
57
|
|
|
@@ -62,16 +62,7 @@ Default: `false`<br>
|
|
|
62
62
|
Used by: [`eslint`](https://github.com/eslint/eslint)<br>
|
|
63
63
|
Reference: [eslint.org (`options.fix`)](https://eslint.org/docs/latest/developer-guide/nodejs-api#parameters)<br>
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### `useEslintrc`
|
|
68
|
-
|
|
69
|
-
Type: `boolean`<br>
|
|
70
|
-
Default: `true`<br>
|
|
71
|
-
Used by: [`eslint`](https://github.com/eslint/eslint)<br>
|
|
72
|
-
Reference: [eslint.org (`options.useEslintrc`)](https://eslint.org/docs/latest/developer-guide/nodejs-api#parameters)<br>
|
|
73
|
-
|
|
74
|
-
If set to `false`, ESLint will not respect any configuration files it finds.
|
|
65
|
+
Enables the autofix feature of ESLint.
|
|
75
66
|
|
|
76
67
|
## Attribution
|
|
77
68
|
|
package/package.json
CHANGED