fix: add info
to ESLint.DeprecatedRuleUse
type
#12612
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
verify_files: | |
name: Verify Files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Install Packages | |
run: npm install | |
- name: Install Docs Packages | |
working-directory: docs | |
run: npm install | |
- name: Lint Files (eslint) | |
uses: trunk-io/trunk-action@v1 | |
with: | |
# Run on everything except the docs folder. | |
arguments: --ignore=docs/** --filter=eslint | |
check-mode: all | |
- name: Lint Files (other) | |
uses: trunk-io/trunk-action@v1 | |
with: | |
# Run on everything except the docs folder. | |
arguments: --ignore=docs/** --filter=-eslint | |
- name: Check Rule Files | |
run: node Makefile checkRuleFiles | |
- name: Check Licenses | |
run: node Makefile checkLicenses | |
- name: Lint Docs Files (eslint) | |
uses: trunk-io/trunk-action@v1 | |
with: | |
# Run only on the docs folder. | |
arguments: --ignore=** --ignore=!docs/** --filter=eslint | |
check-mode: all | |
- name: Lint Docs Files (other) | |
uses: trunk-io/trunk-action@v1 | |
with: | |
# Run only on the docs folder. | |
arguments: --ignore=** --ignore=!docs/** --filter=-eslint | |
- name: Check Rule Examples | |
run: node Makefile checkRuleExamples | |
- name: Check Rule Types | |
run: npm run lint:rule-types | |
- name: Lint Files, Dependencies, & Exports | |
run: npm run lint:unused | |
test_on_node: | |
name: Test | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [23.x, 22.x, 21.x, 20.x, 18.x, "18.18.0"] | |
NODE_OPTIONS: [""] | |
include: | |
- os: windows-latest | |
node: "lts/*" | |
- os: macOS-latest | |
node: "lts/*" | |
- os: ubuntu-latest | |
node: 22.x | |
# `--experimental-strip-types` is enabled by default in Node.js 23.x. | |
# This additional environment is necessary only to test `--experimental-transform-types`, | |
# as it is not enabled by default in any Node.js version yet. | |
NODE_OPTIONS: "--experimental-transform-types" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Packages | |
run: npm install | |
- name: Test | |
env: | |
NODE_OPTIONS: ${{ matrix.NODE_OPTIONS }} | |
run: node Makefile mocha | |
- name: Fuzz Test | |
run: node Makefile fuzz | |
- name: Test EMFILE Handling | |
run: npm run test:emfile | |
test_on_browser: | |
name: Browser Test | |
runs-on: ubuntu-latest | |
env: | |
TERM: xterm-256color | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" # Should be the same as the version used on Netlify to build the ESLint Playground | |
- name: Install Packages | |
run: npm install | |
- name: Test | |
run: node Makefile cypress | |
- name: Fuzz Test | |
run: node Makefile fuzz | |
test_types: | |
name: Test Types of ${{ matrix.package.name }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: | |
[ | |
{ name: eslint, directory: . }, | |
{ | |
name: eslint-config-eslint, | |
directory: packages/eslint-config-eslint, | |
}, | |
{ name: "@eslint/js", directory: packages/js }, | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Install Packages | |
run: npm install | |
- name: Install Packages for ${{ matrix.package.name }} | |
working-directory: ${{ matrix.package.directory }} | |
run: npm install | |
- name: Test types for ${{ matrix.package.name }} | |
working-directory: ${{ matrix.package.directory }} | |
run: npm run test:types |