eslint-plugin-vue v10 #1561
This file contains 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: | |
- '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/*'] | |
eslint: [9] | |
include: | |
# On old ESLint version | |
- node: 18 | |
eslint: 8 | |
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 -f | |
- name: Install ESLint v${{ matrix.eslint }} | |
run: npm install --save-dev eslint@${{ matrix.eslint }} -f | |
- 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 -f | |
- name: Uninstall @stylistic/eslint-plugin | |
run: npm uninstall -D @stylistic/eslint-plugin | |
- name: Test | |
run: npm test |