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
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,10 @@ module.exports = {
65
65
If you are using **TypeScript >= 2.8.0**, it's recommended to set `"importsNotUsedAsValues": "preserve"`[compiler option](https://www.typescriptlang.org/docs/handbook/compiler-options.html)
66
66
in the `tsconfig.json`. [Here is an explanation.](#type-only-modules-watching)
67
67
68
+
> You can find examples how to configure it with [babel-loader](https://github.com/babel/babel-loader), [ts-loader](https://github.com/TypeStrong/ts-loader),
69
+
> [eslint](https://github.com/eslint/eslint) and [Visual Studio Code](https://code.visualstudio.com/) in the
70
+
> [**examples**](./examples) directory.
71
+
68
72
## Modules resolution
69
73
70
74
It's very important to be aware that **this plugin uses [TypeScript](https://github.com/Microsoft/TypeScript)'s, not
@@ -97,7 +101,7 @@ module.exports = {
97
101
plugins: [
98
102
newForkTsCheckerWebpackPlugin({
99
103
eslint: {
100
-
files:'./src/**/*.ts'// required - same as command `eslint ./src/**/*.ts`
104
+
files:'./src/**/*'// required - same as command `eslint ./src/**/* --ext .ts,.tsx,.js,.jsx`
101
105
}
102
106
})
103
107
]
@@ -108,19 +112,15 @@ You should also have an ESLint configuration file in your root project directory
108
112
Here is a sample `.eslintrc.js` configuration for a TypeScript project:
109
113
110
114
```js
111
-
constpath=require('path');
112
-
113
115
module.exports= {
114
-
parser:'@typescript-eslint/parser', // specifies the ESLint parser
115
-
extends: [
116
-
'plugin:@typescript-eslint/recommended'// uses the recommended rules from the @typescript-eslint/eslint-plugin
0 commit comments