Skip to content

Commit

Permalink
Fix webpack config intelsense (#71)
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Ieni <[email protected]>
  • Loading branch information
ElSalvo96 and marcoieni authored Jul 15, 2023
1 parent f73cb9e commit f86cf22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ module.exports = {
semi: "off",
},
ignorePatterns: ["out", "dist", "**/*.d.ts", ".eslintrc.cjs"],
env: {
// needed to solve errors in webpack config
node: true,
},
};
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
//@ts-check
/** @typedef {import('webpack').Configuration} WebpackConfig **/

// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require("path");
// eslint-disable-next-line @typescript-eslint/no-var-requires
const webpack = require("webpack");

/** @type WebpackConfig */
Expand Down

0 comments on commit f86cf22

Please sign in to comment.