+8
-1
@@ -33,2 +33,3 @@ #!/usr/bin/env node | ||
| .option('--allow-hash-bang', 'if the code starts with #! treat it as a comment') | ||
| .option('--files <files>', 'a glob of files to to test the EcmaScript version against (alias for [files...])') | ||
| .option('--not <files>', 'folder or file names to skip') | ||
@@ -57,2 +58,7 @@ .option('--no-color', 'disable use of colors in output') | ||
| if (filesArg && filesArg.length && options.files) { | ||
| logger.error('Cannot pass in both [files...] argument and --files flag at the same time!') | ||
| process.exit(1) | ||
| } | ||
| /** | ||
@@ -66,3 +72,4 @@ * @note | ||
| const expectedEcmaVersion = ecmaVersionArg ? ecmaVersionArg : config.ecmaVersion | ||
| const files = filesArg && filesArg.length ? filesArg : [].concat(config.files) | ||
| const files = | ||
| filesArg && filesArg.length ? filesArg : options.files ? options.files.split(',') : [].concat(config.files) | ||
| const esmodule = options.module ? options.module : config.module | ||
@@ -69,0 +76,0 @@ const allowHashBang = options.allowHashBang ? options.allowHashBang : config.allowHashBang |
+18
-17
| { | ||
| "name": "es-check", | ||
| "version": "7.1.1", | ||
| "version": "7.2.0", | ||
| "description": "Checks the ECMAScript version of .js glob against a specified version of ECMAScript with a shell command", | ||
@@ -41,26 +41,27 @@ "main": "index.js", | ||
| "devDependencies": { | ||
| "@commitlint/cli": "17.4.2", | ||
| "@commitlint/config-conventional": "17.4.2", | ||
| "@commitlint/prompt": "17.4.2", | ||
| "assert": "^2.0.0", | ||
| "@commitlint/cli": "19.3.0", | ||
| "@commitlint/config-conventional": "19.2.2", | ||
| "@commitlint/format": "^19.3.0", | ||
| "@commitlint/prompt": "19.3.0", | ||
| "assert": "^2.1.0", | ||
| "codecov": "^3.8.3", | ||
| "codependence": "^0.2.6", | ||
| "codependence": "^0.3.0", | ||
| "commitizen": "4.3.0", | ||
| "conventional-changelog-cli": "^2.2.2", | ||
| "eslint": "8.32.0", | ||
| "eslint-config-prettier": "8.6.0", | ||
| "husky": "8.0.3", | ||
| "conventional-changelog-cli": "^4.1.0", | ||
| "eslint": "9.1.1", | ||
| "eslint-config-prettier": "9.1.0", | ||
| "husky": "9.0.11", | ||
| "is-ci": "^3.0.1", | ||
| "mocha": "^10.2.0", | ||
| "mocha": "10.4.0", | ||
| "nyc": "^15.1.0", | ||
| "path-exists-cli": "^2.0.0", | ||
| "prettier": "2.8.3", | ||
| "release-it": "15.6.0" | ||
| "prettier": "3.2.5", | ||
| "release-it": "17.2.0" | ||
| }, | ||
| "dependencies": { | ||
| "acorn": "8.8.2", | ||
| "commander": "10.0.0", | ||
| "fast-glob": "^3.2.12", | ||
| "acorn": "8.11.3", | ||
| "commander": "12.0.0", | ||
| "fast-glob": "^3.3.2", | ||
| "supports-color": "^8.1.1", | ||
| "winston": "^3.8.2" | ||
| "winston": "3.13.0" | ||
| }, | ||
@@ -67,0 +68,0 @@ "engines": { |
+13
-1
@@ -136,5 +136,17 @@ <p align="center"> | ||
| ```sh | ||
| --not=folderName1,folderName2 An array of file/folder names or globs that you would like to ignore. Defaults to `[]`. | ||
| --not=target1,target2 An array of file/folder names or globs that you would like to ignore. Defaults to `[]`. | ||
| ``` | ||
| **Files** | ||
| ```sh | ||
| --files=target1,target2 An array of file/folder names or globs to test the ECMAScript version against. Alias of [...files] argument. | ||
| ``` | ||
| ⚠️ **NOTE:** This is primarily intended as a way to override the `files` setting in the `.escheckrc` file for specific invocations. Setting both the `[...files]` argument and `--files` flag is an error. | ||
| ### Global Options | ||
@@ -141,0 +153,0 @@ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
19594
3.92%212
2.91%240
5.26%18
5.88%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated