Socket
Socket
Sign inDemoInstall

eslint-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-webpack-plugin - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

10

declarations/index.d.ts

@@ -13,4 +13,12 @@ export default ESLintWebpackPlugin;

* @param {Compiler} compiler
* @param {Options} options
* @param {string[]} wanted
* @param {string[]} exclude
*/
run(compiler: Compiler): Promise<void>;
run(
compiler: Compiler,
options: Options,
wanted: string[],
exclude: string[]
): Promise<void>;
/**

@@ -17,0 +25,0 @@ * @param {Compiler} compiler

2

dist/getESLint.js

@@ -6,5 +6,5 @@ "use strict";

});
exports.default = getESLint;
exports.loadESLint = loadESLint;
exports.loadESLintThreaded = loadESLintThreaded;
exports.default = getESLint;

@@ -11,0 +11,0 @@ var _os = require("os");

@@ -44,7 +44,14 @@ "use strict";

// this differentiates one from the other when being cached.
this.key = compiler.name || `${this.key}_${counter += 1}`; // If `lintDirtyModulesOnly` is disabled,
this.key = compiler.name || `${this.key}_${counter += 1}`;
const options = { ...this.options,
exclude: (0, _utils.parseFiles)(this.options.exclude || [], this.getContext(compiler)),
extensions: (0, _utils.arrify)(this.options.extensions),
files: (0, _utils.parseFiles)(this.options.files || '', this.getContext(compiler))
};
const wanted = (0, _utils.parseFoldersToGlobs)(options.files, options.extensions);
const exclude = (0, _utils.parseFoldersToGlobs)(this.options.exclude ? options.exclude : '**/node_modules/**', []); // If `lintDirtyModulesOnly` is disabled,
// execute the linter on the build
if (!this.options.lintDirtyModulesOnly) {
compiler.hooks.run.tapPromise(this.key, this.run);
compiler.hooks.run.tapPromise(this.key, c => this.run(c, options, wanted, exclude));
}

@@ -59,3 +66,3 @@

return this.run(c);
return this.run(c, options, wanted, exclude);
});

@@ -65,6 +72,9 @@ }

* @param {Compiler} compiler
* @param {Options} options
* @param {string[]} wanted
* @param {string[]} exclude
*/
async run(compiler) {
async run(compiler, options, wanted, exclude) {
// Do not re-hook

@@ -78,9 +88,2 @@ if ( // @ts-ignore

const options = { ...this.options,
exclude: (0, _utils.parseFiles)(this.options.exclude || [], this.getContext(compiler)),
extensions: (0, _utils.arrify)(this.options.extensions),
files: (0, _utils.parseFiles)(this.options.files || '', this.getContext(compiler))
};
const wanted = (0, _utils.parseFoldersToGlobs)(options.files, options.extensions);
const exclude = (0, _utils.parseFoldersToGlobs)(this.options.exclude ? options.exclude : '**/node_modules/**', []);
compiler.hooks.thisCompilation.tap(this.key, compilation => {

@@ -87,0 +90,0 @@ /** @type {import('./linter').Linter} */

@@ -6,4 +6,4 @@ "use strict";

});
exports.getESLintOptions = getESLintOptions;
exports.getOptions = getOptions;
exports.getESLintOptions = getESLintOptions;

@@ -10,0 +10,0 @@ var _schemaUtils = require("schema-utils");

@@ -7,5 +7,5 @@ "use strict";

exports.arrify = arrify;
exports.jsonStringifyReplacerSortKeys = void 0;
exports.parseFiles = parseFiles;
exports.parseFoldersToGlobs = parseFoldersToGlobs;
exports.jsonStringifyReplacerSortKeys = void 0;

@@ -37,2 +37,4 @@ var _path = require("path");

*/
/* istanbul ignore next */
function arrify(value) {

@@ -39,0 +41,0 @@ // eslint-disable-next-line no-undefined

{
"name": "eslint-webpack-plugin",
"version": "3.0.1",
"version": "3.1.0",
"description": "A ESLint plugin for webpack",

@@ -45,19 +45,19 @@ "license": "MIT",

"peerDependencies": {
"eslint": "^7.0.0",
"eslint": "^7.0.0 || ^8.0.0",
"webpack": "^5.0.0"
},
"dependencies": {
"@types/eslint": "^7.2.14",
"jest-worker": "^27.0.6",
"@types/eslint": "^7.28.2",
"jest-worker": "^27.3.1",
"micromatch": "^4.0.4",
"normalize-path": "^3.0.0",
"schema-utils": "^3.1.0"
"schema-utils": "^3.1.1"
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@types/fs-extra": "^9.0.10",
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"@types/fs-extra": "^9.0.13",
"@types/micromatch": "^4.0.2",

@@ -68,19 +68,19 @@ "@types/normalize-path": "^3.0.0",

"babel-eslint": "^10.1.0",
"babel-jest": "^27.0.6",
"babel-jest": "^27.3.1",
"chokidar": "^3.5.2",
"cross-env": "^7.0.3",
"del": "^6.0.0",
"del-cli": "^4.0.0",
"eslint": "^7.30.0",
"del-cli": "^4.0.1",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-import": "^2.25.2",
"fs-extra": "^10.0.0",
"husky": "^7.0.1",
"jest": "^27.0.6",
"lint-staged": "^11.0.0",
"husky": "^7.0.4",
"jest": "^27.3.1",
"lint-staged": "^11.2.5",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"standard-version": "^9.3.0",
"typescript": "^4.3.5",
"webpack": "^5.43.0"
"prettier": "^2.4.1",
"standard-version": "^9.3.2",
"typescript": "^4.4.4",
"webpack": "^5.60.0"
},

@@ -87,0 +87,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc