From c1561d9ea01750f58359656343c1543ad8d504d3 Mon Sep 17 00:00:00 2001 From: zeng <370203400@qq.com> Date: Mon, 22 Jul 2024 09:29:49 -0500 Subject: [PATCH 1/3] Create node.js.yml --- .github/workflows/node.js.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..6d573d7 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test From 87c8509375a270c42f0a65fde4b4c40625aa2407 Mon Sep 17 00:00:00 2001 From: zeng <370203400@qq.com> Date: Mon, 22 Jul 2024 09:32:41 -0500 Subject: [PATCH 2/3] Update node.js.yml --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6d573d7..f1e170a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: From c4ea1c851d78839eaf53d53bb3cafa6d6a6b1355 Mon Sep 17 00:00:00 2001 From: zeng <370203400@qq.com> Date: Mon, 22 Jul 2024 09:36:56 -0500 Subject: [PATCH 3/3] Update always-camel-case.md --- docs/rules/always-camel-case.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/rules/always-camel-case.md b/docs/rules/always-camel-case.md index 12c16be..236e061 100644 --- a/docs/rules/always-camel-case.md +++ b/docs/rules/always-camel-case.md @@ -4,28 +4,27 @@ ## Rule Details -This rule aims to... +This rule aims to enforce camal case in naming things. Examples of **incorrect** code for this rule: ```js -// fill me in +let a_b = 1; ``` Examples of **correct** code for this rule: ```js -// fill me in +let aB = 1; ``` ### Options -If there are any options, describe them here. Otherwise, delete this section. + ## When Not To Use It -Give a short description of when it would be appropriate to turn off this rule. + ## Further Reading -If there are other links that describe the issue this rule addresses, please include them here in a bulleted list.