Comparing version 4.0.1 to 5.0.0
@@ -6,2 +6,21 @@ # Change Log | ||
# [5.0.0](https://github.com/4Catalyzer/cli/compare/pedantic@4.0.1...pedantic@5.0.0) (2020-03-22) | ||
### Bug Fixes | ||
* Clean up dependencies ([2479dd7](https://github.com/4Catalyzer/cli/commit/2479dd743fbff67cbdb6a79f70dd3bdd00518003)) | ||
* feat! Use Prettier v2.x ([5baf549](https://github.com/4Catalyzer/cli/commit/5baf54987a9ca10d0ce68a5ef204f0f139760b93)) | ||
### BREAKING CHANGES | ||
* Prettier v2.x changes formatting | ||
## [4.0.1](https://github.com/4Catalyzer/cli/compare/pedantic@4.0.0...pedantic@4.0.1) (2020-03-12) | ||
@@ -8,0 +27,0 @@ |
@@ -7,3 +7,3 @@ const format = require('./lib'); | ||
exports.builder = _ => | ||
exports.builder = (_) => | ||
_.option('write', { | ||
@@ -26,3 +26,3 @@ type: 'boolean', | ||
exports.handler = async argv => { | ||
exports.handler = async (argv) => { | ||
const { _, patterns, write, withNodeModules, ...options } = argv; | ||
@@ -29,0 +29,0 @@ |
@@ -58,3 +58,3 @@ const { promises: fs } = require('fs'); | ||
await Promise.all( | ||
filePaths.map(async filePath => { | ||
filePaths.map(async (filePath) => { | ||
let content; | ||
@@ -136,3 +136,3 @@ let code; | ||
output += `${table( | ||
needsFormatting.map(filePath => [ | ||
needsFormatting.map((filePath) => [ | ||
'', | ||
@@ -143,3 +143,3 @@ path.relative(cwd, filePath).trim(), | ||
align: ['', 'l'], | ||
stringLength: str => stripAnsi(str).length, | ||
stringLength: (str) => stripAnsi(str).length, | ||
}, | ||
@@ -146,0 +146,0 @@ )} |
@@ -7,3 +7,3 @@ const format = require('./lib'); | ||
exports.builder = _ => | ||
exports.builder = (_) => | ||
_.option('fix', { | ||
@@ -31,3 +31,3 @@ type: 'boolean', | ||
exports.handler = async argv => { | ||
exports.handler = async (argv) => { | ||
const { _, patterns, fix, withWarnings, withNodeModules, ...options } = argv; | ||
@@ -34,0 +34,0 @@ |
@@ -37,3 +37,3 @@ const { CLIEngine } = require('eslint'); | ||
result.WarningCount -= result.fixableWarningCount; | ||
result.messages = result.messages.filter(msg => msg.fix); | ||
result.messages = result.messages.filter((msg) => msg.fix); | ||
} | ||
@@ -40,0 +40,0 @@ |
{ | ||
"name": "pedantic", | ||
"version": "4.0.1", | ||
"version": "5.0.0", | ||
"main": "lib.js", | ||
@@ -25,2 +25,8 @@ "repository": { | ||
}, | ||
"dependencies": { | ||
"@4c/cli-core": "^2.1.3", | ||
"eslint": "^6.5.1", | ||
"prettier": "^2.0.0", | ||
"yargs": "^15.0.1" | ||
}, | ||
"devDependencies": { | ||
@@ -30,9 +36,3 @@ "@4c/jest-preset": "^1.5.0", | ||
}, | ||
"dependencies": { | ||
"@4c/cli-core": "^2.1.2", | ||
"chalk": "^3.0.0", | ||
"eslint": "^6.5.1", | ||
"prettier": "^1.19.1", | ||
"yargs": "^15.0.1" | ||
} | ||
"gitHead": "1e77b8bf73e20913b5d8a7ef1f63bebe8d5309fe" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16897
4
+ Addedprettier@2.8.8(transitive)
- Removedchalk@^3.0.0
- Removedchalk@3.0.0(transitive)
- Removedprettier@1.19.1(transitive)
Updated@4c/cli-core@^2.1.3
Updatedprettier@^2.0.0