Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b175c4c

Browse files
committed
Merge branch 'main' into suggestion-fix-parse-error
* main: (285 commits) 8.55.0 Build: changelog update for 8.55.0 chore: upgrade @eslint/[email protected] (eslint#17811) chore: package.json update for @eslint/js release chore: upgrade @eslint/[email protected] (eslint#17799) feat: importNamePattern option in no-restricted-imports (eslint#17721) docs: fix typo `--rules` -> `--rule` (eslint#17806) ci: pin Node.js 21.2.0 (eslint#17809) chore: fix several `cli` tests to run in the intended flat config mode (eslint#17797) docs: remove "Open in Playground" buttons for removed rules (eslint#17791) docs: fix correct/incorrect examples of rules (eslint#17789) docs: update and fix examples for `no-unused-vars` (eslint#17788) docs: add specific stylistic rule for each deprecated rule (eslint#17778) chore: remove unused config-extends fixtures (eslint#17781) chore: remove formatting/stylistic rules from new rule templates (eslint#17780) chore: check rule examples for syntax errors (eslint#17718) 8.54.0 Build: changelog update for 8.54.0 chore: upgrade @eslint/[email protected] (eslint#17773) chore: package.json update for @eslint/js release ...
2 parents 62681aa + e0cb960 commit b175c4c

File tree

563 files changed

+34926
-7251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

563 files changed

+34926
-7251
lines changed

.eslintrc.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
* Internally, ESLint is using the eslint.config.js file to lint itself.
77
* This file is needed too, because:
88
*
9-
* 1. There are tests that expect .eslintrc.js to be present to actually run.
10-
* 2. ESLint VS Code extension expects eslintrc config files to be
9+
* 1. ESLint VS Code extension expects eslintrc config files to be
1110
* present to work correctly.
1211
*
1312
* Once we no longer need to support both eslintrc and flat config, we will
@@ -63,21 +62,11 @@ module.exports = {
6362
"internal-rules"
6463
],
6564
extends: [
66-
"eslint"
65+
"eslint/eslintrc"
6766
],
6867
parserOptions: {
6968
ecmaVersion: 2021
7069
},
71-
72-
/*
73-
* it fixes eslint-plugin-jsdoc's reports: "Invalid JSDoc tag name "template" jsdoc/check-tag-names"
74-
* refs: https://github.com/gajus/eslint-plugin-jsdoc#check-tag-names
75-
*/
76-
settings: {
77-
jsdoc: {
78-
mode: "typescript"
79-
}
80-
},
8170
rules: {
8271
"internal-rules/multiline-comment-style": "error"
8372
},
@@ -96,9 +85,6 @@ module.exports = {
9685
"plugin:eslint-plugin/rules-recommended"
9786
],
9887
rules: {
99-
"eslint-plugin/no-missing-message-ids": "error",
100-
"eslint-plugin/no-unused-message-ids": "error",
101-
"eslint-plugin/prefer-message-ids": "error",
10288
"eslint-plugin/prefer-placeholders": "error",
10389
"eslint-plugin/prefer-replace-text": "error",
10490
"eslint-plugin/report-message-format": ["error", "[^a-z].*\\.$"],
@@ -119,7 +105,6 @@ module.exports = {
119105
"plugin:eslint-plugin/tests-recommended"
120106
],
121107
rules: {
122-
"eslint-plugin/prefer-output-null": "error",
123108
"eslint-plugin/test-case-property-ordering": "error",
124109
"eslint-plugin/test-case-shorthand-strings": "error"
125110
}

.github/ISSUE_TEMPLATE/new-rule.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ body:
2626
options:
2727
- Warns about a potential problem
2828
- Suggests an alternate way of doing something
29-
- Enforces a formatting/stylistic preference
3029
validations:
3130
required: true
3231
- type: textarea

.github/ISSUE_TEMPLATE/rule-change.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body:
1515
required: true
1616
- type: dropdown
1717
attributes:
18-
label: What change to do you want to make?
18+
label: What change do you want to make?
1919
options:
2020
- Generate more warnings
2121
- Generate fewer warnings

.github/renovate.json5

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
":approveMajorUpdates",
6+
":semanticCommitScopeDisabled"
7+
],
8+
"ignorePresets": [":semanticPrefixFixDepsChoreOthers"],
9+
"labels": ["dependencies"],
10+
11+
// Wait well over npm's three day window for any new package as a precaution against malicious publishes
12+
// https://docs.npmjs.com/policies/unpublish/#packages-published-less-than-72-hours-ago
13+
"minimumReleaseAge": "7 days",
14+
15+
"packageRules": [
16+
{
17+
"description": "Use the deps:actions label for github-action manager updates (this means Renovate's github-action manager).",
18+
"addLabels": ["deps:actions"],
19+
"matchManagers": ["github-actions"]
20+
},
21+
{
22+
"description": "Use the deps:npm label for npm manager packages (this means Renovate's npm manager).",
23+
"addLabels": ["deps:npm"],
24+
"matchManagers": ["npm"]
25+
},
26+
{
27+
"description": "Group Babel packages into a single PR.",
28+
"groupName": "babel",
29+
"matchPackagePrefixes": ["@babel", "babel-"]
30+
},
31+
{
32+
"description": "Group wdio packages into a single PR.",
33+
"groupName": "wdio",
34+
"matchPackagePrefixes": ["@wdio"]
35+
},
36+
{
37+
"description": "Group metascraper packages into a single PR.",
38+
"groupName": "metascraper",
39+
"matchPackagePrefixes": ["metascraper"]
40+
}
41+
]
42+
}

.github/workflows/add-to-triage.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
name: Verify Files
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version: 'lts/*'
2020
- name: Install Packages
@@ -33,6 +33,8 @@ jobs:
3333
run: npm run lint:scss
3434
- name: Lint Docs JS Files
3535
run: node Makefile lintDocsJS
36+
- name: Check Rule Examples
37+
run: node Makefile checkRuleExamples
3638
- name: Build Docs Website
3739
working-directory: docs
3840
run: npm run build
@@ -45,16 +47,16 @@ jobs:
4547
strategy:
4648
matrix:
4749
os: [ubuntu-latest]
48-
node: [20.x, 19.x, 18.x, 17.x, 16.x, 14.x, 12.x, "12.22.0"]
50+
node: ["21.2.0", 20.x, 19.x, 18.x, 17.x, 16.x, 14.x, 12.x, "12.22.0"]
4951
include:
5052
- os: windows-latest
5153
node: "lts/*"
5254
- os: macOS-latest
5355
node: "lts/*"
5456
runs-on: ${{ matrix.os }}
5557
steps:
56-
- uses: actions/checkout@v3
57-
- uses: actions/setup-node@v3
58+
- uses: actions/checkout@v4
59+
- uses: actions/setup-node@v4
5860
with:
5961
node-version: ${{ matrix.node }}
6062
- name: Install Packages
@@ -68,13 +70,19 @@ jobs:
6870
name: Browser Test
6971
runs-on: ubuntu-latest
7072
steps:
71-
- uses: actions/checkout@v3
72-
- uses: actions/setup-node@v3
73+
- uses: actions/checkout@v4
74+
- uses: actions/setup-node@v4
7375
with:
7476
node-version: '16'
7577
- name: Install Packages
7678
run: npm install
7779
- name: Test
78-
run: node Makefile karma
80+
run: node Makefile wdio
7981
- name: Fuzz Test
8082
run: node Makefile fuzz
83+
- uses: actions/upload-artifact@v3
84+
if: failure()
85+
with:
86+
name: logs
87+
path: |
88+
wdio-logs/*.log

.github/workflows/codeql-analysis.yml

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

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL

.github/workflows/update-readme.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Check out repo
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
with:
1414
token: ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }}
1515

1616
- name: Set up Node.js
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818

1919
- name: Install npm packages
2020
run: npm install

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
test.js
44
coverage/
55
build/
6+
logs
7+
wdio-logs
68
npm-debug.log
79
yarn-error.log
810
.pnpm-debug.log

0 commit comments

Comments
 (0)