Skip to content

Commit 228a859

Browse files
committed
chore: updates actions; adds walk
1 parent 895f059 commit 228a859

File tree

11 files changed

+626
-16
lines changed

11 files changed

+626
-16
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ name: 'CodeQL'
1414

1515
on:
1616
push:
17-
branches: [master]
17+
branches: [main]
1818
pull_request:
1919
# The branches below must be a subset of the branches above
20-
branches: [master]
20+
branches: [main]
2121
schedule:
2222
- cron: '45 14 * * 4'
2323

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [20.x]
16+
node-version: [22.x]
1717

1818
steps:
1919
- uses: actions/checkout@v4

.github/workflows/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
node-version: [20.x]
13+
node-version: [22.x]
1414

1515
steps:
1616
- uses: actions/checkout@v4

README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,12 @@ index.js es-check <ecmaVersion> [files...]
107107

108108
```sh
109109

110-
<ecmaVersion> 'define the ECMAScript version to check for against a glob of JavaScript files' required
111-
[files...] 'a glob of files to test the ECMAScript version against' required
110+
Usage: index [options] [ecmaVersion] [files...]
111+
112+
Arguments:
113+
ecmaVersion ecmaVersion to check files against. Can be: es3, es4, es5, es6/es2015, es7/es2016, es8/es2017, es9/es2018, es10/es2019, es11/es2020, es12/es2021,
114+
es13/es2022, es14/es2023
115+
files a glob of files to to test the EcmaScript version against
112116

113117
```
114118

@@ -126,7 +130,7 @@ index.js es-check <ecmaVersion> [files...]
126130

127131
```sh
128132

129-
--allow-hash-bang supports files that start with hash bang, default false
133+
--allowHashBang supports files that start with hash bang, default false
130134

131135
```
132136

@@ -150,7 +154,7 @@ index.js es-check <ecmaVersion> [files...]
150154

151155
```sh
152156

153-
--loose-glob-match allows for loose glob matching, default false
157+
--looseGlobMatch allows for loose glob matching, default false
154158

155159
```
156160

@@ -160,11 +164,18 @@ index.js es-check <ecmaVersion> [files...]
160164

161165
```sh
162166

163-
-h, --help Display help
164-
-V, --version Display version
165-
--no-color Disable colors
166-
--quiet Quiet mode - only displays warn and error messages
167-
-v, --verbose Verbose mode - will also output debug messages
167+
Options:
168+
-V, --version output the version number
169+
--module use ES modules
170+
--allow-hash-bang, --allowHashBang if the code starts with #! treat it as a comment (default: false)
171+
--files <files> a glob of files to to test the EcmaScript version against (alias for [files...])
172+
--not <files> folder or file names to skip
173+
--no-color, --noColor disable use of colors in output (default: false)
174+
-v, --verbose verbose mode: will also output debug messages (default: false)
175+
--quiet quiet mode: only displays warn and error messages (default: false)
176+
--looseGlobMatching doesn't fail if no files are found in some globs/files (default: false)
177+
--silent silent mode: does not output anything, giving no indication of success or failure other than the exit code (default: false)
178+
-h, --help display help for command
168179
169180
```
170181

0 commit comments

Comments
 (0)