From c2521aa69898a234169c67cb96f22dfee8065175 Mon Sep 17 00:00:00 2001 From: Kepler Sticka-Jones Date: Sun, 26 Apr 2020 19:32:17 -0600 Subject: [PATCH] chore(deps): update all --- README.md | 10 +++++----- jest-preset.js | 6 +++--- package-lock.json | 12 ++++++------ package.json | 18 +++++++++--------- .../jest-runner-stylelint.config.js | 4 ++-- src/__fixtures__/stylelint.config.js | 2 +- src/run.js | 12 ++++++------ src/run.test.js | 14 +++++++------- src/utils/normalizeConfig.js | 4 ++-- src/watchFixPlugin.js | 2 +- src/watchFixPlugin.test.js | 8 ++++---- 11 files changed, 46 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index a34479a..e89373e 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ or jest.config.js: ```js module.exports = { - preset: "jest-runner-stylelint" + preset: "jest-runner-stylelint", }; ``` @@ -126,7 +126,7 @@ module.exports = { "jsx", "ts", "tsx", - "vue" + "vue", ], testMatch: [ "**/*.css", @@ -143,8 +143,8 @@ module.exports = { "**/*.jsx", "**/*.ts", "**/*.tsx", - "**/*.vue" - ] + "**/*.vue", + ], }; ``` @@ -202,7 +202,7 @@ or in `jest-runner-stylelint.config.js` module.exports = { cliOptions: { // Options here - } + }, }; ``` diff --git a/jest-preset.js b/jest-preset.js index 9d6b776..43ed7b7 100644 --- a/jest-preset.js +++ b/jest-preset.js @@ -15,7 +15,7 @@ module.exports = { "jsx", "ts", "tsx", - "vue" + "vue", ], testMatch: [ "**/*.css", @@ -32,6 +32,6 @@ module.exports = { "**/*.jsx", "**/*.ts", "**/*.tsx", - "**/*.vue" - ] + "**/*.vue", + ], }; diff --git a/package-lock.json b/package-lock.json index bade13e..38b5989 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8378,9 +8378,9 @@ "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" }, "lint-staged": { - "version": "10.1.6", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.1.6.tgz", - "integrity": "sha512-45zaGxf4XZuwdUk87yRFE/1b4vTZmH2UnYmUPmindsgdAljOFpWWb0yEjxngmqERUS/MGauJexFF6BjLVg9VMA==", + "version": "10.1.7", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.1.7.tgz", + "integrity": "sha512-ZkK8t9Ep/AHuJQKV95izSa+DqotftGnSsNeEmCSqbQ6j4C4H0jDYhEZqVOGD1Q2Oe227igbqjMWycWyYbQtpoA==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -8434,9 +8434,9 @@ "dev": true }, "commander": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.0.0.tgz", - "integrity": "sha512-JrDGPAKjMGSP1G0DUoaceEJ3DZgAfr/q6X7FVk4+U5KxUSKviYGM2k6zWkfyyBHy5rAtzgYJFa1ro2O9PtoxwQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", "dev": true }, "execa": { diff --git a/package.json b/package.json index 61192f7..8486f09 100644 --- a/package.json +++ b/package.json @@ -57,17 +57,17 @@ "create-jest-runner": "^0.6.0" }, "devDependencies": { - "@commitlint/cli": "^8.1.0", - "@commitlint/config-conventional": "^8.1.0", + "@commitlint/cli": "^8.3.5", + "@commitlint/config-conventional": "^8.3.4", "eslint": "^6.8.0", - "eslint-config-starstuff": "^1.4.5", - "husky": "^4.0.0", - "jest": "^25.1.0", - "jest-runner-eslint": "^0.7.6", + "eslint-config-starstuff": "^1.4.42", + "husky": "^4.2.5", + "jest": "^25.4.0", + "jest-runner-eslint": "^0.7.7", "jest-runner-prettier": "^0.3.6", - "lint-staged": "^10.0.0", - "prettier": "^2.0.3", - "semantic-release": "^17.0.1", + "lint-staged": "^10.1.7", + "prettier": "^2.0.5", + "semantic-release": "^17.0.7", "stylelint": "^13.0.0", "stylelint-config-standard": "^20.0.0" }, diff --git a/src/__fixtures__/jest-runner-stylelint.config.js b/src/__fixtures__/jest-runner-stylelint.config.js index e860f2d..3af8067 100644 --- a/src/__fixtures__/jest-runner-stylelint.config.js +++ b/src/__fixtures__/jest-runner-stylelint.config.js @@ -1,5 +1,5 @@ module.exports = { cliOptions: { - allowEmptyInput: true - } + allowEmptyInput: true, + }, }; diff --git a/src/__fixtures__/stylelint.config.js b/src/__fixtures__/stylelint.config.js index 2b8dabb..2f786c4 100644 --- a/src/__fixtures__/stylelint.config.js +++ b/src/__fixtures__/stylelint.config.js @@ -1,3 +1,3 @@ module.exports = { - extends: "stylelint-config-standard" + extends: "stylelint-config-standard", }; diff --git a/src/run.js b/src/run.js index 9a77fa2..fad67ad 100644 --- a/src/run.js +++ b/src/run.js @@ -9,31 +9,31 @@ module.exports = ({ testPath, config }) => { const defaultConfig = { files: testPath, formatter: "string", - fix: configOverrides.getFix() + fix: configOverrides.getFix(), }; const { cliOptions = {} } = getCliOptions(config); return stylelint .lint(Object.assign({}, cliOptions, defaultConfig)) - .then(data => { + .then((data) => { if (data.errored) { return fail({ start, end: new Date(), test: { path: testPath, - errorMessage: data.output - } + errorMessage: data.output, + }, }); } return pass({ start, end: new Date(), - test: { path: testPath } + test: { path: testPath }, }); }) - .catch(error => { + .catch((error) => { throw error; }); }; diff --git a/src/run.test.js b/src/run.test.js index 75ffaf8..632ccd1 100644 --- a/src/run.test.js +++ b/src/run.test.js @@ -6,13 +6,13 @@ expect.addSnapshotSerializer({ print: (value, serialize) => { delete value.perfStats; delete value.testFilePath; - value.testResults.forEach(result => { + value.testResults.forEach((result) => { delete result.duration; }); return serialize(value); }, - test: value => - value && value.perfStats && value.testFilePath && value.testResults + test: (value) => + value && value.perfStats && value.testFilePath && value.testResults, }); describe("jest-runner-stylelint", () => { @@ -21,8 +21,8 @@ describe("jest-runner-stylelint", () => { run({ testPath: path.join(__dirname, "__fixtures__", "bad.css"), config: {}, - globalConfig: {} - }).then(result => expect(result).toMatchSnapshot())); + globalConfig: {}, + }).then((result) => expect(result).toMatchSnapshot())); }); describe("passing fixture", () => { @@ -30,7 +30,7 @@ describe("jest-runner-stylelint", () => { run({ testPath: path.join(__dirname, "__fixtures__", "good.css"), config: {}, - globalConfig: {} - }).then(result => expect(result).toMatchSnapshot())); + globalConfig: {}, + }).then((result) => expect(result).toMatchSnapshot())); }); }); diff --git a/src/utils/normalizeConfig.js b/src/utils/normalizeConfig.js index dccb9fd..f3656c7 100644 --- a/src/utils/normalizeConfig.js +++ b/src/utils/normalizeConfig.js @@ -1,6 +1,6 @@ -const normalizeConfig = config => { +const normalizeConfig = (config) => { return Object.assign({}, config, { - cliOptions: config.cliOptions || {} + cliOptions: config.cliOptions || {}, }); }; diff --git a/src/watchFixPlugin.js b/src/watchFixPlugin.js index 3860447..6d9334e 100644 --- a/src/watchFixPlugin.js +++ b/src/watchFixPlugin.js @@ -39,7 +39,7 @@ class StylelintWatchFixPlugin { getUsageInfo() { return { key: this._key, - prompt: getPrompt() + prompt: getPrompt(), }; } } diff --git a/src/watchFixPlugin.test.js b/src/watchFixPlugin.test.js index 505bd1b..b47e0ae 100644 --- a/src/watchFixPlugin.test.js +++ b/src/watchFixPlugin.test.js @@ -16,21 +16,21 @@ describe("watchFixPlugin", () => { const plugin = new WatchFixPlugin({ stdout, config }); expect(plugin.getUsageInfo()).toEqual({ key: "F", - prompt: "override Stylelint --fix" + prompt: "override Stylelint --fix", }); await plugin.run(plugin); expect(plugin.getUsageInfo()).toEqual({ key: "F", - prompt: "toggle Stylelint --fix (enabled)" + prompt: "toggle Stylelint --fix (enabled)", }); await plugin.run(plugin); expect(plugin.getUsageInfo()).toEqual({ key: "F", - prompt: "toggle Stylelint --fix (disabled)" + prompt: "toggle Stylelint --fix (disabled)", }); }); @@ -55,7 +55,7 @@ describe("watchFixPlugin", () => { const plugin = new WatchFixPlugin({ stdout, config }); expect(plugin.getUsageInfo()).toEqual({ key: "z", - prompt: "override Stylelint --fix" + prompt: "override Stylelint --fix", }); }); });