Skip to content

Commit

Permalink
fix: updates spelling in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yowainwright committed Jan 11, 2021
1 parent 9f64841 commit 9100ed7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,6 @@

[![npm version](https://badge.fury.io/js/es-check.svg)](https://www.npmjs.com/package/es-check)

**Version 5** release! 🎉 Thanks to [@BrandonOCasey](https://github.com/brandonocasey).
Removes need for `boolean` in argument; post [Caporal **1.1.0**](https://github.com/mattallty/Caporal.js/commit/ae5d2c3cc1acef1b89a13608033b250fa7750c4e).
This will require an update for any boolean cli flags, in example `--module`, `--allow-hash-bang`.

Example of CLI boolean flag in previous versions (Versions 0-4.\*)

```sh

// the "true" argument was required
es-check --module true es6 ./tests/modules/*.js'
```
Now, with Version 5
```sh
// the "true" argument must be removed if used
es-check --module es6 ./tests/modules/*.js'

```

---

**ES Check** checks JavaScript files against a specified version of ECMAScript (ES) with a shell command. If a specified file's ES version doesn't match the ES version argument passed in the ES Check command, ES Check will throw an error and log the files that didn't match the check.
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ prog
* @note
* Check for a configuration file.
* - If one exists, default to those options
* - Ff no command line arguments are passed in
* - If no command line arguments are passed in
*/
const config = fs.existsSync(configFilePath) ? JSON.parse(fs.readFileSync(configFilePath)) : {}
const expectedEcmaVersion = args.ecmaVersion ? args.ecmaVersion : config.ecmaVersion
Expand Down

0 comments on commit 9100ed7

Please sign in to comment.