From 0534db03fa162815d7859ab92b9d0b53a51f9747 Mon Sep 17 00:00:00 2001 From: Robert Murphy Date: Mon, 16 Oct 2017 18:11:52 -0400 Subject: [PATCH] add linting --- package-lock.json | 42 ++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + webpack.config.js | 2 +- 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index e651f4d..757d0e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1987,6 +1987,19 @@ } } }, + "eslint-loader": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/eslint-loader/-/eslint-loader-1.9.0.tgz", + "integrity": "sha512-40aN976qSNPyb9ejTqjEthZITpls1SVKtwguahmH1dzGCwQU/vySE+xX33VZmD8csU0ahVNCtFlsPgKqRBiqgg==", + "dev": true, + "requires": { + "loader-fs-cache": "1.0.1", + "loader-utils": "1.1.0", + "object-assign": "4.1.1", + "object-hash": "1.2.0", + "rimraf": "2.6.2" + } + }, "eslint-module-utils": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.1.1.tgz", @@ -4582,6 +4595,29 @@ "strip-bom": "3.0.0" } }, + "loader-fs-cache": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/loader-fs-cache/-/loader-fs-cache-1.0.1.tgz", + "integrity": "sha1-VuC/CL2XCLJqdltoUJhAyN7J/bw=", + "dev": true, + "requires": { + "find-cache-dir": "0.1.1", + "mkdirp": "0.5.1" + }, + "dependencies": { + "find-cache-dir": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-0.1.1.tgz", + "integrity": "sha1-yN765XyKUqinhPnjHFfHQumToLk=", + "dev": true, + "requires": { + "commondir": "1.0.1", + "mkdirp": "0.5.1", + "pkg-dir": "1.0.0" + } + } + } + }, "loader-runner": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", @@ -5004,6 +5040,12 @@ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true }, + "object-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.2.0.tgz", + "integrity": "sha512-smRWXzkvxw72VquyZ0wggySl7PFUtoDhvhpdwgESXxUrH7vVhhp9asfup1+rVLrhsl7L45Ee1Q/l5R2Ul4MwUg==", + "dev": true + }, "object.omit": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", diff --git a/package.json b/package.json index 2a7887f..1cdfa7a 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "coveralls": "^3.0.0", "eslint": "^4.9.0", "eslint-config-airbnb-base": "^12.0.2", + "eslint-loader": "^1.9.0", "eslint-plugin-import": "^2.7.0", "jest": "^21.2.1", "prettier-eslint": "^8.2.1", diff --git a/webpack.config.js b/webpack.config.js index 8c62bef..d2c8376 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -24,7 +24,7 @@ module.exports = { { test: /\.js$/, include: path.join(__dirname, 'src'), - loaders: ['babel-loader'], + loaders: ['babel-loader', 'eslint-loader'], }, ], },