Skip to content

Commit

Permalink
test: add v8 print config test (#186)
Browse files Browse the repository at this point in the history
* test: add v8 print config test

* fix: update yarn.lock

* fixup
  • Loading branch information
yeonjuan authored Apr 6, 2024
1 parent 1e0611b commit 4aa0d83
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.vscode
.parce-cache
out
out
integration-test-projects
21 changes: 19 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- "**"
jobs:
build:
ci:
name: CI
runs-on: ubuntu-latest
steps:
Expand All @@ -27,11 +27,28 @@ jobs:
run: yarn check:format
- name: Check Types
run: yarn check:ts

- name: Code coverage report
uses: codecov/codecov-action@v2
with:
yml: ./codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittest
name: codecov
eslint-v8:
name: ESLint v8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.16.1
- name: Install
run: yarn install --immutable
- name: Build
run: yarn build
- name: (v8) Install
working-directory: integration-test-projects/v8
run: npm install
- name: (v8) Print config
working-directory: integration-test-projects/v8
run: npm run print-config
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ packages/**/.yarn
# generated types
packages/parser/types
packages/eslint-plugin/types


integration-test-projects/**/*.yarn
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ yarn.lock
# generated types
packages/parser/types
packages/eslint-plugin/types
integration-test-projects
15 changes: 15 additions & 0 deletions integration-test-projects/v8/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import html from "@html-eslint/eslint-plugin";
import parser from "@html-eslint/parser";

export default [
html.configs["flat/recommended"],
{
files: ["**/*.html"],
plugins: {
"@html-eslint": html,
},
languageOptions: {
parser,
},
},
];
1 change: 1 addition & 0 deletions integration-test-projects/v8/input.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html></html>
13 changes: 13 additions & 0 deletions integration-test-projects/v8/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "v8",
"type": "module",
"packageManager": "yarn@4.0.2",
"scripts": {
"print-config": "eslint --print-config input.html"
},
"devDependencies": {
"@html-eslint/eslint-plugin": "file:../../packages/eslint-plugin",
"@html-eslint/parser": "file:../../packages/parser",
"eslint": "^8"
}
}
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1055,8 +1055,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "@html-eslint/cli@workspace:packages/cli"
dependencies:
"@html-eslint/eslint-plugin": "npm:^0.23.1"
"@html-eslint/parser": "npm:^0.23.0"
"@html-eslint/eslint-plugin": "npm:^0.24.0"
"@html-eslint/parser": "npm:^0.24.0"
axios: "npm:^1.6.2"
chalk: "npm:^4.1.1"
eslint: "npm:^7.27.0"
Expand All @@ -1066,11 +1066,11 @@ __metadata:
languageName: unknown
linkType: soft

"@html-eslint/eslint-plugin@npm:^0.23.1, @html-eslint/eslint-plugin@workspace:packages/eslint-plugin":
"@html-eslint/eslint-plugin@npm:^0.24.0, @html-eslint/eslint-plugin@workspace:packages/eslint-plugin":
version: 0.0.0-use.local
resolution: "@html-eslint/eslint-plugin@workspace:packages/eslint-plugin"
dependencies:
"@html-eslint/parser": "npm:^0.23.0"
"@html-eslint/parser": "npm:^0.24.0"
"@types/eslint": "npm:^8.56.2"
"@types/estree": "npm:^0.0.47"
es-html-parser: "npm:^0.0.8"
Expand All @@ -1096,7 +1096,7 @@ __metadata:
languageName: unknown
linkType: soft

"@html-eslint/parser@npm:^0.23.0, @html-eslint/parser@workspace:packages/parser":
"@html-eslint/parser@npm:^0.24.0, @html-eslint/parser@workspace:packages/parser":
version: 0.0.0-use.local
resolution: "@html-eslint/parser@workspace:packages/parser"
dependencies:
Expand All @@ -1105,7 +1105,7 @@ __metadata:
languageName: unknown
linkType: soft

"@html-eslint/web-linter@npm:^0.23.0, @html-eslint/web-linter@workspace:packages/web-linter":
"@html-eslint/web-linter@npm:^0.24.0, @html-eslint/web-linter@workspace:packages/web-linter":
version: 0.0.0-use.local
resolution: "@html-eslint/web-linter@workspace:packages/web-linter"
dependencies:
Expand Down Expand Up @@ -15743,9 +15743,9 @@ __metadata:
version: 0.0.0-use.local
resolution: "website@workspace:packages/website"
dependencies:
"@html-eslint/eslint-plugin": "npm:^0.23.1"
"@html-eslint/parser": "npm:^0.23.0"
"@html-eslint/web-linter": "npm:^0.23.0"
"@html-eslint/eslint-plugin": "npm:^0.24.0"
"@html-eslint/parser": "npm:^0.24.0"
"@html-eslint/web-linter": "npm:^0.24.0"
"@parcel/transformer-sass": "npm:2.10.3"
"@types/codemirror": "npm:^5.60.5"
"@types/eslint": "npm:^8.56.2"
Expand Down

0 comments on commit 4aa0d83

Please sign in to comment.