You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> This is eslint-webpack-plugin 3.0 which works only with webpack 5. For the webpack 4, see the [2.x branch](https://github.com/webpack-contrib/eslint-webpack-plugin/tree/2.x).
24
+
23
25
This plugin uses [`eslint`](https://eslint.org/) to find and fix problems in your JavaScript code
24
26
25
27
## Getting Started
@@ -50,11 +52,11 @@ module.exports = {
50
52
51
53
## Options
52
54
53
-
You can pass [eslint options](https://eslint.org/docs/developer-guide/nodejs-api#%e2%97%86-new-eslint-options).
55
+
You can pass [eslint options](https://eslint.org/docs/developer-guide/nodejs-api#-new-eslintoptions).
54
56
55
57
Note that the config option you provide will be passed to the `ESLint` class.
56
58
This is a different set of options than what you'd specify in `package.json` or `.eslintrc`.
57
-
See the [eslint docs](https://eslint.org/docs/developer-guide/nodejs-api#%e2%97%86-new-eslint-options) for more details.
59
+
See the [eslint docs](https://eslint.org/docs/developer-guide/nodejs-api#-new-eslintoptions) for more details.
58
60
59
61
**Warning**: In eslint-webpack-plugin version 1 the options were passed to the now deprecated [CLIEngine](https://eslint.org/docs/developer-guide/nodejs-api#cliengine).
60
62
@@ -70,7 +72,7 @@ A string indicating the root of your files.
70
72
- Type: `String`
71
73
- Default: `eslint`
72
74
73
-
Path to `eslint` instance that will be used for linting. If the `eslintPath` is a folder like a official eslint, or specify a `formatter` option. now you dont have to install `eslint`.
75
+
Path to `eslint` instance that will be used for linting. If the `eslintPath` is a folder like a official eslint, or specify a `formatter` option. now you don't have to install `eslint`.
74
76
75
77
### `extensions`
76
78
@@ -92,15 +94,15 @@ Specify the files and/or directories to exclude. Must be relative to `options.co
92
94
- Default: `null`
93
95
94
96
Specify directories, files, or globs. Must be relative to `options.context`.
95
-
Directories are traveresed recursively looking for files matching `options.extensions`.
97
+
Directories are traversed recursively looking for files matching `options.extensions`.
96
98
File and glob patterns ignore `options.extensions`.
97
99
98
100
### `fix`
99
101
100
102
- Type: `Boolean`
101
103
- Default: `false`
102
104
103
-
Will enable [ESLint autofix feature](https://eslint.org/docs/developer-guide/nodejs-api#%e2%97%86-eslint-outputfixes-results).
105
+
Will enable [ESLint autofix feature](https://eslint.org/docs/developer-guide/nodejs-api#-eslintoutputfixesresults).
104
106
105
107
**Be careful: this option will change source files.**
Copy file name to clipboardExpand all lines: src/content/plugins/stylelint-webpack-plugin.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ module.exports = {
52
52
53
53
## Options
54
54
55
-
See [stylelint's options](http://stylelint.io/user-guide/node-api/#options) for the complete list of options available. These options are passed through to the `stylelint` directly.
55
+
See [stylelint's options](https://stylelint.io/user-guide/usage/node-api#options) for the complete list of options available. These options are passed through to the `stylelint` directly.
56
56
57
57
### `configFile`
58
58
@@ -61,7 +61,7 @@ See [stylelint's options](http://stylelint.io/user-guide/node-api/#options) for
61
61
62
62
Specify the config file location to be used by `stylelint`.
63
63
64
-
**Note:** By default this is [handled by `stylelint`](http://stylelint.io/user-guide/configuration/).
64
+
**Note:** By default this is [handled by `stylelint`](https://stylelint.io/user-guide/configure).
65
65
66
66
### `context`
67
67
@@ -96,14 +96,14 @@ Specify directories, files, or globs. Must be relative to `options.context`. Dir
96
96
- Type: `Boolean`
97
97
- Default: `false`
98
98
99
-
If `true`, `stylelint` will fix as many errors as possible. The fixes are made to the actual source files. All unfixed errors will be reported. See [Autofixing errors](https://stylelint.io/user-guide/cli#autofixing-errors) docs.
99
+
If `true`, `stylelint` will fix as many errors as possible. The fixes are made to the actual source files. All unfixed errors will be reported. See [Autofixing errors](https://stylelint.io/user-guide/usage/options#fix) docs.
100
100
101
101
### `formatter`
102
102
103
103
- Type: `String|Function`
104
104
- Default: `'string'`
105
105
106
-
Specify the formatter that you would like to use to format your results. See [formatter option](https://stylelint.io/user-guide/node-api#formatter).
106
+
Specify the formatter that you would like to use to format your results. See [formatter option](https://stylelint.io/user-guide/usage/options#formatter).
0 commit comments