Skip to content

Instantly share code, notes, and snippets.

@takumifukasawa
Last active August 8, 2020 03:39
Show Gist options
  • Save takumifukasawa/09eda86254fd6e1892dff7cb18961484 to your computer and use it in GitHub Desktop.
Save takumifukasawa/09eda86254fd6e1892dff7cb18961484 to your computer and use it in GitHub Desktop.
example of specifing eslintrc and eslintignore file in webpack eslint-loader.
module.exports = {
module: {
rules: [{
test: /\.ts?$/,
exclude: [/node_modules/],
enforce: "pre",
use: {
loader: "eslint-loader",
options: {
fix: true,
configFile: path.resolve(__dirname, ".eslintrc.js"), // config file path
ignoreFile: path.resolve(__dirname, ".eslintignore"), // ignore file path
},
},
}],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment