Skip to content

Commit

Permalink
fix(deps): update dependency astro-eslint-parser to ^0.7.0 (#116)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency astro-eslint-parser to ^0.7.0

* Create gold-horses-melt.md

* fix

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
  • Loading branch information
renovate[bot] and ota-meshi authored Oct 7, 2022
1 parent bf61557 commit 9c481f8
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 32 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-horses-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-astro": minor
---

update dependency astro-eslint-parser to ^0.7.0
55 changes: 28 additions & 27 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/typescript-node
{
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"args": {
"VARIANT": "18-bullseye"
}
},
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"args": {
"VARIANT": "18-bullseye"
}
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"astro-build.astro-vscode"
]
}
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"astro-build.astro-vscode",
"esbenp.prettier-vscode"
]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
!/.github
/tests/fixtures/rules/*/invalid/template-attr-*.astro
/tests/fixtures/rules/*/invalid/template-attr-*.astro
/tests/fixtures/rules/*/invalid/_*.astro
/docs-build/src/md
/docs-build/src/pages
/docs-build/README.md
Expand Down
6 changes: 2 additions & 4 deletions docs/rules/no-conflict-set-directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ since: "v0.7.0"

## :book: Rule Details

This rule reports conflicting `set:text`, `set:html`, and child content.
**The parser now checks what this rule checks, so this rule is no longer needed.**

<ESLintCodeBlock>
This rule reports conflicting `set:text`, `set:html`, and child content.

<!--eslint-skip-->

Expand All @@ -34,8 +34,6 @@ const foo = "hello"
<p set:html={foo}>!</p>
```

</ESLintCodeBlock>

## :wrench: Options

Nothing.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"homepage": "https://ota-meshi.github.io/eslint-plugin-astro/",
"dependencies": {
"@typescript-eslint/types": "^5.25.0",
"astro-eslint-parser": "^0.6.0",
"astro-eslint-parser": "^0.7.0",
"eslint-utils": "^3.0.0",
"postcss": "^8.4.14",
"postcss-selector-parser": "^6.0.10",
Expand Down
2 changes: 2 additions & 0 deletions tests/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ export function loadTestCases(
const filter = options?.filter ?? (() => true)

const valid = listupInput(validFixtureRoot)
.filter((file) => !path.basename(file).startsWith("_"))
.filter(filter)
.map((inputFile) => getConfig(ruleName, inputFile))

const fixable = plugin.rules[ruleName].meta.fixable != null

const invalid = listupInput(invalidFixtureRoot)
.filter((file) => !path.basename(file).startsWith("_"))
.filter(filter)
.map((inputFile) => {
const config = getConfig(ruleName, inputFile)
Expand Down

0 comments on commit 9c481f8

Please sign in to comment.