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
You can pass [eslint options](https://eslint.org/docs/developer-guide/nodejs-api#%E2%97%86-new-eslint-options).
46
+
You can pass [eslint options](https://eslint.org/docs/developer-guide/nodejs-api#-new-eslintoptions).
95
47
96
48
Note that the config option you provide will be passed to the `ESLint` class.
97
49
This is a different set of options than what you'd specify in `package.json` or `.eslintrc`.
98
-
See the [eslint docs](https://eslint.org/docs/developer-guide/nodejs-api#%E2%97%86-new-eslint-options) for more details.
50
+
See the [eslint docs](https://eslint.org/docs/developer-guide/nodejs-api#-new-eslintoptions) for more details.
99
51
100
52
**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).
101
53
@@ -111,7 +63,7 @@ A string indicating the root of your files.
111
63
- Type: `String`
112
64
- Default: `eslint`
113
65
114
-
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`.
66
+
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`.
115
67
116
68
### `extensions`
117
69
@@ -133,15 +85,15 @@ Specify the files and/or directories to exclude. Must be relative to `options.co
133
85
- Default: `null`
134
86
135
87
Specify directories, files, or globs. Must be relative to `options.context`.
136
-
Directories are traveresed recursively looking for files matching `options.extensions`.
88
+
Directories are traversed recursively looking for files matching `options.extensions`.
137
89
File and glob patterns ignore `options.extensions`.
138
90
139
91
### `fix`
140
92
141
93
- Type: `Boolean`
142
94
- Default: `false`
143
95
144
-
Will enable [ESLint autofix feature](https://eslint.org/docs/developer-guide/nodejs-api#%E2%97%86-eslint-outputfixes-results).
96
+
Will enable [ESLint autofix feature](https://eslint.org/docs/developer-guide/nodejs-api#-eslintoutputfixesresults).
145
97
146
98
**Be careful: this option will change source files.**
0 commit comments