Skip to content

Commit

Permalink
fix: tests, docs, eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Dec 16, 2023
1 parent 5bafdf9 commit 65fc213
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 13 deletions.
199 changes: 194 additions & 5 deletions docs/assets/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import antfu from '@antfu/eslint-config'

export default antfu({
ignores: ['dist', '**/dist/**', 'node_modules', '**/node_modules/**', 'build', '**/build/**', 'tmp', '**/tmp/**', 'demos', '**/demos/**', 'coverage', '**/coverage/**', '_archive', '**/_archive/**', '*.spec.*', '**/*.spec.*/**', 'vitest.config.ts', '**/vitest.config.ts/**', '*.md', '**/*.md/**', '*.yml', '**/*.yml/**'],
ignores: ['docs', 'dist', '**/dist/**', 'node_modules', '**/node_modules/**', 'build', '**/build/**', 'tmp', '**/tmp/**', 'demos', '**/demos/**', 'coverage', '**/coverage/**', '_archive', '**/_archive/**', '*.spec.*', '**/*.spec.*/**', 'vitest.config.ts', '**/vitest.config.ts/**', '*.md', '**/*.md/**', '*.yml', '**/*.yml/**'],
})
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@
"css-what": "^6.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.4.5",
"@antfu/eslint-config": "^2.4.6",
"@antfu/ni": "^0.21.12",
"@types/node": "^20.10.4",
"@vitest/coverage-v8": "^1.0.4",
"c8": "^8.0.1",
"eslint": "^8.55.0",
"eslint": "^8.56.0",
"tsup": "^8.0.1",
"typedoc": "^0.25.4",
"typescript": "^5.3.3",
"vite": "^5.0.9",
"vite": "^5.0.10",
"vitest": "^1.0.4"
}
}
4 changes: 2 additions & 2 deletions src/htmlparser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $('body')
"
`)
expect(dom).toMatchInlineSnapshot(`
VDocumentFragment {
_VDocumentFragment {
"_childNodes": [
VElement {
"_attributes": {},
Expand All @@ -76,7 +76,7 @@ $('body')
"_text": "
var x = 1 & 4
window.addEventListener('load', function () {
\$('body')
$('body')
.attr('data-spy', 'scroll')
.attr('data-offset', '88')
.attr('data-target', '#outline')
Expand Down

0 comments on commit 65fc213

Please sign in to comment.