Skip to content

docs: add related rules and update ESLint Stylistic links (#2911) #2069

docs: add related rules and update ESLint Stylistic links (#2911)

docs: add related rules and update ESLint Stylistic links (#2911) #2069

Workflow file for this run

name: CI
on:
push:
branches:
- 'master'
pull_request:
types:
- 'opened'
- 'synchronize'
- 'reopened'
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
- name: Install Packages
run: npm install --legacy-peer-deps
- name: Lint
run: npm run lint
test:
name: Test
strategy:
matrix:
node: [18, 20, 21, 'lts/*']
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js v${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install Packages
run: npm install
- name: Test
run: npm test
test-with-eslint-v8:
name: Test with ESLint v8
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js v18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Packages
run: npm install
- name: Install ESLint v8
run: npm install --save-dev eslint@8 --force
- name: Test
run: npm test
test-without-eslint-stylistic:
name: Test without ESLint Stylistic
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
- name: Install Packages
run: npm install
- name: Uninstall @stylistic/eslint-plugin
run: npm uninstall @stylistic/eslint-plugin
- name: Test
run: npm test
test-with-old-eslint-stylistic:
name: Test with old ESLint Stylistic
strategy:
matrix:
stylistic: [2, 3, 4]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
- name: Install Packages
run: npm install
- name: Install @stylistic/eslint-plugin v${{ matrix.stylistic }}
run: npm install -D @stylistic/eslint-plugin@${{ matrix.stylistic }} --force
- name: Test
run: npm test
test-with-typescript-eslint-v7:
name: Test with typescript-eslint v7
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
- name: Install Packages
run: npm install
- name: Install @typescript-eslint/parser v7
run: npm install -D @typescript-eslint/parser@7 --force
- name: Test
run: npm test