Skip to content

Commit

Permalink
Fix @typscript-eslint/parser
Browse files Browse the repository at this point in the history
Using "null-loader" was the only way that I got working to exclude that
specific module. While I was at it I also used it to exclude all type
definitions.
  • Loading branch information
fkling committed Aug 20, 2020
1 parent 2f2374c commit d0d4617
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"js-yaml": "^3.13.1",
"json-loader": "^0.5.3",
"mini-css-extract-plugin": "^0.9.0",
"null-loader": "^4.0.0",
"postcss-loader": "^3.0.0",
"progress-bar-webpack-plugin": "^2.1.0",
"raw-loader": "^4.0.0",
Expand Down
7 changes: 7 additions & 0 deletions website/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ module.exports = Object.assign({

module: {
rules: [
{
test: [
/\/@typescript-eslint\/.*\/CLIEngine/,
/\.d\.ts$/,
],
use: 'null-loader',
},
{
test: /\.txt$/,
exclude: /node_modules/,
Expand Down
8 changes: 8 additions & 0 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7579,6 +7579,14 @@ nth-check@~1.0.1:
dependencies:
boolbase "~1.0.0"

null-loader@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/null-loader/-/null-loader-4.0.0.tgz#8e491b253cd87341d82c0e84b66980d806dfbd04"
integrity sha512-vSoBF6M08/RHwc6r0gvB/xBJBtmbvvEkf6+IiadUCoNYchjxE8lwzCGFg0Qp2D25xPiJxUBh2iNWzlzGMILp7Q==
dependencies:
loader-utils "^2.0.0"
schema-utils "^2.6.5"

num2fraction@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede"
Expand Down

0 comments on commit d0d4617

Please sign in to comment.