Skip to content

[pull] master from mysticatea:master #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 141 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
6234993
⚒ remove outdated settings
mysticatea May 14, 2020
27a275f
✨ use espree in eslint deps
mysticatea May 14, 2020
c12da39
⚒ add funding field
mysticatea May 14, 2020
c627e36
🔖 7.1.0
mysticatea May 15, 2020
ca614f4
Fixed wrong location calculation when including CRLF. (#74)
ota-meshi Oct 12, 2020
f7d69af
7.1.1
ota-meshi Oct 12, 2020
9a04a8e
Move repo (#83)
ota-meshi Oct 13, 2020
7074763
Update the CI workflow. (#86)
ota-meshi Nov 6, 2020
bd916f5
Fix type of VDirectiveKey (#85)
ota-meshi Nov 6, 2020
237eac4
Fix the wrong location when using with `@typescript-eslint/scope-mana…
ota-meshi Nov 18, 2020
5056775
Add parserOptions.vueFeatures.interpolationAsNonHTML option (#88)
ota-meshi Dec 3, 2020
c8084c8
Add parserOptions.vueFeatures.filter option (#89)
ota-meshi Dec 3, 2020
0041efa
7.2.0
ota-meshi Dec 3, 2020
495abaa
Changed the parsing of custom block to parse like Vue3 parser. (#90)
ota-meshi Dec 7, 2020
45f8900
Add defineCustomBlocksVisitor to parserServices (#91)
ota-meshi Dec 14, 2020
86b293e
Upgrade typescript-eslint and prettier (#92)
ota-meshi Dec 14, 2020
17507a4
7.3.0
ota-meshi Dec 14, 2020
349b7dc
Fix parsing errors in multiple v-for aliases in ecmaVersion: 5. (#96)
ota-meshi Jan 21, 2021
3196668
7.4.0
ota-meshi Jan 21, 2021
cd14790
Fix wrong ast for v-for="(a, index) in list" (#97)
ota-meshi Jan 21, 2021
5724851
7.4.1
ota-meshi Jan 21, 2021
935b6f4
Upgrade esquery and use new option (#100)
ota-meshi Feb 13, 2021
c6e6aa3
7.5.0
ota-meshi Feb 14, 2021
ca0ef62
Change to be case sensitive if file is SFC. (#103)
ota-meshi Mar 2, 2021
aa55d1c
7.6.0
ota-meshi Mar 2, 2021
c96d66e
Format (#109)
ota-meshi Jun 16, 2021
2f5e7fe
Change parser to allow parsing two script tags on `<script setup>` (#…
ota-meshi Jun 30, 2021
66d424e
Add support for `<script setup>` (#110)
ota-meshi Jul 2, 2021
68dde0f
7.7.0
ota-meshi Jul 2, 2021
79574b5
Revert default option for `sourceType: module` on `<script setup>`. (…
ota-meshi Jul 2, 2021
3908b34
7.7.1
ota-meshi Jul 2, 2021
b575cca
Downgrade packages that are incompatible with Node v8 (#113)
ota-meshi Jul 2, 2021
4d6e4c1
7.7.2
ota-meshi Jul 2, 2021
1d65789
Fix parsing error when combining `<script>` and `export` in `<script …
ota-meshi Jul 6, 2021
e69dd81
Change `parserOptions.parser` to accept multiple lang parsers (#116)
ota-meshi Jul 6, 2021
c36717c
7.8.0
ota-meshi Jul 6, 2021
0078cdc
Change to parse expressions in style vars (#118)
ota-meshi Jul 18, 2021
02b6d08
7.9.0
ota-meshi Jul 18, 2021
86ec4d1
Add defineDocumentVisitor to parserServices (#119)
ota-meshi Jul 28, 2021
6ef1534
Fix incorrect AST for commented CSS vars injection. (#120)
ota-meshi Jul 28, 2021
42e4f92
7.10.0
ota-meshi Jul 28, 2021
36f1766
Chores: Add engines compatibility check (#121)
ota-meshi Aug 14, 2021
184dc09
Add test for ESLint v8 (#122)
ota-meshi Aug 19, 2021
8ce78e8
Change to determine parser by extension when parsing non-vue files us…
ota-meshi Sep 4, 2021
ef885a8
Fix bug when script tags are missing and multiple parsers are used (#…
ota-meshi Sep 5, 2021
0b0401a
Fix testcase (#127)
ota-meshi Sep 5, 2021
b5a5af9
7.11.0
ota-meshi Sep 5, 2021
2586806
Drop support for node <v12.22.0, v13, >=v14<v14.17.0, v15 and eslint …
ota-meshi Oct 19, 2021
f7a7a1e
Change the default of `parserOptions.vueFeatures.interpolationAsNonHT…
ota-meshi Oct 19, 2021
db2d945
8.0.0
ota-meshi Oct 19, 2021
88539f6
Change to use eslint v8 in some test cases. (#133)
ota-meshi Oct 30, 2021
0f6348e
Fix wrong location when having multiple `<script>` (#132)
ota-meshi Oct 30, 2021
acad11f
Update test script (#134)
ota-meshi Oct 30, 2021
a16cdbd
8.0.1
ota-meshi Oct 30, 2021
ac49d02
Update dev deps (#138)
ota-meshi Nov 16, 2021
dbd89bd
Upgrade eslint-scope to v7 (#137)
ota-meshi Nov 16, 2021
9cd8f88
Update eslint-visitor-keys to v3.1 (#139)
ota-meshi Nov 17, 2021
108faa6
Add optional chain expression to typings (#140)
neelance Jan 20, 2022
25c6847
Update AST typings to es2022 (#141)
ota-meshi Jan 20, 2022
160f4ef
Support arbitrary module namespace names with `<script setup>` (#142)
ota-meshi Jan 20, 2022
8a0a474
8.1.0
ota-meshi Jan 21, 2022
108115d
Support complex expression in CSS `v-bind()` (#143)
ota-meshi Jan 24, 2022
734a87c
8.2.0
ota-meshi Jan 24, 2022
42b5bfb
Fix wrong handling when CRLF in `<script>` (#146)
ota-meshi Feb 22, 2022
d900ec2
8.3.0
ota-meshi Feb 22, 2022
62b6986
Add support for scope analysis of `<script setup>` (#144)
ota-meshi Mar 15, 2022
9448a78
Custom template tokenizers (#148)
rashfael Apr 14, 2022
caac5e8
Drop support for Node.js v12 (#149)
ota-meshi Apr 14, 2022
22f461e
prepare release
ota-meshi Apr 14, 2022
c476e7c
9.0.0-alpha.0
ota-meshi Apr 14, 2022
50b0126
9.0.0
ota-meshi May 11, 2022
bfc8a3a
fix tag
ota-meshi May 11, 2022
cfa2b47
9.0.1
ota-meshi May 11, 2022
05f707e
Fix crash for script setup in no-obj-calls rule
ota-meshi May 17, 2022
fb2f67d
Revert "Fix crash for script setup in no-obj-calls rule"
ota-meshi May 17, 2022
f14d066
Fix crash for script setup in no-obj-calls rule (#152)
ota-meshi May 17, 2022
806a38c
9.0.2
ota-meshi May 17, 2022
ae42ce3
Fix wrong tokenize for lone ampersand (#158)
ota-meshi Jun 23, 2022
9dc89b5
9.0.3
ota-meshi Jun 23, 2022
8dbabb6
Update README.md
ota-meshi Aug 29, 2022
b70caf5
Remove david-dm from README (#167)
renbaoshuo Sep 1, 2022
9daf014
Add support for parser object to `parserOptions.parser` (#165)
ota-meshi Sep 9, 2022
0631f8c
9.1.0
ota-meshi Sep 9, 2022
881d5c4
Create bug_report.yml
ota-meshi Oct 12, 2022
0ca20f1
Create other.md
ota-meshi Oct 12, 2022
5c3558c
Update typescript (#171)
ota-meshi Oct 12, 2022
bb88c01
Fix wrong scope reference type for `<script setup lang=ts>` (#181)
ota-meshi Mar 30, 2023
36a4929
9.1.1
ota-meshi Mar 30, 2023
fde53d1
Add exported meta object (#190)
TatsuyaYamamoto Apr 28, 2023
1ac85ee
Fix false positives for type def with script setup in ts no-unused-va…
ota-meshi May 3, 2023
384b521
9.2.0
ota-meshi May 3, 2023
59d8e25
Fix defineCustomBlocksVisitor was incompatible with ESLint v8.40 (#192)
ota-meshi May 6, 2023
fafbc7d
9.2.1
ota-meshi May 7, 2023
8e8aa96
Add support for defineOptions and defineSlots (#193)
ota-meshi May 14, 2023
92c0d88
Add `vueFeatures.customMacros` option (#194)
ota-meshi May 14, 2023
195d46d
Add support for `<script setup lang=ts generic="...">` (#182)
ota-meshi May 14, 2023
a2d5182
9.3.0
ota-meshi May 14, 2023
6014008
add VGenericExpression to ast.md
ota-meshi May 14, 2023
4b402ee
add my account to FUNDING.yml
ota-meshi May 14, 2023
fcba4fe
Fix wrong scope for generics with multiple script blocks (#201)
ota-meshi Jun 11, 2023
6aa8585
9.3.1
ota-meshi Jun 11, 2023
cbf1481
chore: use skipLibCheck (#209)
ota-meshi Sep 14, 2023
7fd3735
fix: context provided by defineCustomBlocksVisitor (#211)
ota-meshi Oct 8, 2023
4cd70e6
fix: "has only a getter" error (#210)
ota-meshi Oct 8, 2023
92dd3f3
9.3.2
ota-meshi Oct 8, 2023
9d38572
chore: fix ci error for Vue 3.4 (#214)
ota-meshi Dec 30, 2023
aa2de99
Add support for defineModel (#213)
ota-meshi Dec 30, 2023
9dc1d99
Add support for v-bind same-name shorthand (#215)
ota-meshi Jan 8, 2024
4587eef
9.4.0
ota-meshi Jan 8, 2024
7b1f6a1
Update bug_report.yml
ota-meshi Jan 19, 2024
18e8e17
test: add scope test (#219)
ota-meshi Jan 22, 2024
d4eef64
fix: shorthand camelize should be used in `rawName` (#218)
waynzh Jan 22, 2024
f3ac447
Fix an error when using CRLF for generic directive (#220)
ota-meshi Jan 22, 2024
7c9c24b
9.4.1
ota-meshi Jan 22, 2024
2b3a762
Fix an error when using default for generic (#222)
ota-meshi Jan 22, 2024
d79bcad
9.4.2
ota-meshi Jan 22, 2024
dbeb73b
chore: fix type annotation
ota-meshi Feb 24, 2024
ae61e8d
fix: ESLintArrowFunctionExpression.body typing (#225)
ota-meshi Mar 4, 2024
79ecf1e
Fix wrong AST for asycn function in v-on (#227)
ota-meshi Jun 1, 2024
c7b5fbf
Fixed parsing error when arrow function type in generics (#234)
ota-meshi Jun 1, 2024
b0e0ccc
9.4.3
ota-meshi Jun 1, 2024
d1d2540
Drop support old eslint and node (#242)
ota-meshi Jan 29, 2025
aca17d7
Make to use `project: undefined` when parsing script-fragments in `<t…
ota-meshi Jan 29, 2025
68574cf
Changed default ecmaVersion to "latest" (#243)
ota-meshi Jan 29, 2025
7e30c9f
chore: Update readme (#244)
ota-meshi Jan 29, 2025
769da24
Remove unnecessary code (#245)
ota-meshi Jan 29, 2025
bb58633
refactor (#246)
ota-meshi Jan 29, 2025
b925331
Remove useless spread and fallbacks (#249)
fisker Mar 5, 2025
0876121
chore: fix linting error (#251)
ota-meshi Mar 5, 2025
b32d6c4
Fix VGenericExpression VisitorKeys (#252)
ota-meshi Mar 5, 2025
7b00625
10.0.0
ota-meshi Mar 5, 2025
ebde0d5
feat: add `TokenStore#get{Loc,Range}()` (#253)
fisker Mar 5, 2025
2af9766
10.1.0
ota-meshi Mar 5, 2025
8fef4ca
Fix wrong scope for generic attribute (#254)
ota-meshi Mar 5, 2025
9574d91
10.1.1
ota-meshi Mar 5, 2025
5712b7f
Update README.md (#259)
javag97 Apr 1, 2025
32056bc
fix: reset vExpressionScriptState when ending mustache (#256)
woongsikchoi Apr 4, 2025
4ddeeef
10.1.2
ota-meshi Apr 4, 2025
519d2ba
Chore: remove codecov workflow (#262)
ota-meshi Apr 5, 2025
d09047a
fix: text token type in V_EXPRESSION_DATA state (#257)
woongsikchoi Apr 5, 2025
01ed265
10.1.3
ota-meshi Apr 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

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

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +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: ""
---
72 changes: 37 additions & 35 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI
on:
push:
branches: [master]
branches: [master, try]
pull_request:
branches: [master]
schedule:
Expand All @@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init
- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 'lts/*'
- name: Install Packages
run: npm install
- name: Lint
Expand All @@ -29,55 +29,57 @@ jobs:
name: Test
strategy:
matrix:
eslint: [7]
node: [14]
eslint: [9]
node: [18, 20, 21, 'lts/*']
os: [ubuntu-latest]
include:
# On other platforms
- eslint: 7
node: 14
- eslint: 9
node: 'lts/*'
os: windows-latest
- eslint: 7
node: 14
- eslint: 9
node: 'lts/*'
os: macos-latest
# On old Node.js versions
- eslint: 7
node: 12
os: ubuntu-latest
- eslint: 7
node: 10
os: ubuntu-latest
# On old ESLint versions
- eslint: 6
node: 14
os: ubuntu-latest
- eslint: 5
node: 14
os: ubuntu-latest
# On the minimum supported ESLint/Node.js version
- eslint: 5
node: 8.10.0
os: ubuntu-latest

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init
- name: Install Node.js v${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install Packages
run: npm install
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
- name: Send Coverage
run: npm run -s codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
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
17 changes: 10 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"eslint.validate": [
"javascript",
{"language": "html", "autoFix": true},
{"language": "vue", "autoFix": true},
{"language": "typescript", "autoFix": true}
],
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"json",
"jsonc"
]
}
Loading