Skip to content
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

test: add v8 print config test #186

Merged
merged 3 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "[email protected]",
"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
Loading