Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vuejs/vue-eslint-parser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.1.0
Choose a base ref
...
head repository: vuejs/vue-eslint-parser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 1,173 changed files with 283,332 additions and 3,414 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: off
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*.ts eol=lf
* text=auto eol=lf
/test/fixtures/crlf.vue eol=crlf
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github:
- ota-meshi
- mysticatea
84 changes: 84 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Bug report
description: Create a report to help us improve.

body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: checkboxes
id: sanity-checks
attributes:
label: Before You File a Bug Report Please Confirm You Have Done The Following...
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
options:
- label: I'm using [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue).
- label: I'm sure the problem is a parser problem. (If you are not sure, search for the issue in [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) repo and open the issue in [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) repo if there is no solution.
required: true
- label: I have tried restarting my IDE and the issue persists.
required: true
- label: I have updated to the latest version of the packages.
required: true
- type: input
id: eslint-version
attributes:
label: What version of ESLint are you using?
placeholder: 0.0.0
validations:
required: true
- type: textarea
id: eslint-plugin-vue-version
attributes:
label: What version of `eslint-plugin-vue` and `vue-eslint-parser` are you using?
value: |
- vue-eslint-parser@0.0.0
- eslint-plugin-vue@0.0.0
validations:
required: true
- type: textarea
attributes:
label: What did you do?
description: |
Please include a *minimal* reproduction case.
value: |
<details>
<summary>Configuration</summary>
```
<!-- Paste your configuration here -->
```
</details>
```vue
<!-- Paste your code here -->
```
validations:
required: true
- type: textarea
attributes:
label: What did you expect to happen?
description: |
You can use Markdown in this field.
validations:
required: true
- type: textarea
attributes:
label: What actually happened?
description: |
Please copy-paste the actual ESLint output. You can use Markdown in this field.
validations:
required: true
- type: textarea
id: bug-reproduction
attributes:
label: Link to Minimal Reproducible Example
description: |
Create a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. **If a report has no reproduction, it will be closed.**
[Why Reproductions are Required](https://antfu.me/posts/why-reproductions-are-required)
placeholder: |
https://github.com/[your]/[repo]
validations:
required: true
- type: textarea
attributes:
label: Additional comments
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Other
about: An issue that doesn't fit into the other categories.
title: ""
labels: ""
assignees: ""
---
85 changes: 85 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: CI
on:
push:
branches: [master, try]
pull_request:
branches: [master]
schedule:
- cron: 0 0 * * 0

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install Packages
run: npm install
- name: Lint
run: npm run -s lint

test:
name: Test
strategy:
matrix:
eslint: [9]
node: [18, 20, 21, 'lts/*']
os: [ubuntu-latest]
include:
# On other platforms
- eslint: 9
node: 'lts/*'
os: windows-latest
- eslint: 9
node: 'lts/*'
os: macos-latest

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init
- 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: node scripts/ci-install-eslint ${{ matrix.eslint }}
- name: Build
run: npm run -s build
- name: Test
run: npm run -s test:mocha
test-for-old-eslint:
name: Test
strategy:
matrix:
eslint: [8]
node: ['lts/*']
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init
- 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: node scripts/ci-install-eslint ${{ matrix.eslint }}
- name: Test
run: npm run -s test:debug
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/.nyc_output
/.temp
/coverage
/node_modules
node_modules
/test/temp
/index.*
/npm-debug.log
/test.js
/test/fixtures/espree-v8/node_modules
/test/fixtures/integrations/**/_actual.json
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "test/fixtures/eslint"]
path = test/fixtures/eslint
url = https://github.com/eslint/eslint.git
19 changes: 19 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"include": [
"src/**/*.ts"
],
"exclude": [
"src/external/**/*.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"lcov",
"text-summary"
],
"sourceMap": true
}
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

16 changes: 10 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"eslint.validate": [
"javascript",
{"language": "html", "autoFix": true},
{"language": "vue", "autoFix": true},
{"language": "typescript", "autoFix": true}
]
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"json",
"jsonc"
]
}
Loading