File tree Expand file tree Collapse file tree 8 files changed +220
-17
lines changed
Expand file tree Collapse file tree 8 files changed +220
-17
lines changed Original file line number Diff line number Diff line change 22 "semi": false,
33 "trailingComma": "es5",
44 "singleQuote": true,
5- "plugins": ["prettier-plugin-tailwindcss"]
5+ "plugins": [
6+ "prettier-plugin-tailwindcss",
7+ "@trivago/prettier-plugin-sort-imports"
8+ ]
69}
Original file line number Diff line number Diff line change 11// Localization support
2-
32import * as ClipboardJS from 'clipboard'
43
54const DOCUMENTATION_OPTIONS = {
Original file line number Diff line number Diff line change 11import { mergeHTMLPlugin } from './hljs-merge-html-plugin'
2- import { $$ } from 'select-dom '
3-
2+ import { LanguageFn } from 'highlight.js '
3+ import hljs from 'highlight.js/lib/core'
44import asciidoc from 'highlight.js/lib/languages/asciidoc'
55import bash from 'highlight.js/lib/languages/bash'
66import c from 'highlight.js/lib/languages/c'
@@ -13,7 +13,6 @@ import go from 'highlight.js/lib/languages/go'
1313import gradle from 'highlight.js/lib/languages/gradle'
1414import groovy from 'highlight.js/lib/languages/groovy'
1515import handlebars from 'highlight.js/lib/languages/handlebars'
16- import hljs from 'highlight.js/lib/core'
1716import http from 'highlight.js/lib/languages/http'
1817import ini from 'highlight.js/lib/languages/ini'
1918import java from 'highlight.js/lib/languages/java'
@@ -35,7 +34,7 @@ import swift from 'highlight.js/lib/languages/swift'
3534import typescript from 'highlight.js/lib/languages/typescript'
3635import xml from 'highlight.js/lib/languages/xml'
3736import yaml from 'highlight.js/lib/languages/yaml'
38- import { LanguageFn } from 'highlight.js '
37+ import { $$ } from 'select-dom '
3938
4039const languages : Array < {
4140 name : string
Original file line number Diff line number Diff line change 1- import 'htmx.org'
2- import 'htmx-ext-preload'
3- import 'htmx-ext-head-support'
4-
5- import { initTocNav } from './toc-nav'
6- import { initHighlight } from './hljs'
7- import { initTabs } from './tabs'
81import { initCopyButton } from './copybutton'
9- import { initNav } from './pages-nav '
2+ import { initHighlight } from './hljs '
103import { openDetailsWithAnchor } from './open-details-with-anchor'
4+ import { initNav } from './pages-nav'
5+ import { initSmoothScroll } from './smooth-scroll'
6+ import { initTabs } from './tabs'
7+ import { initTocNav } from './toc-nav'
8+ import 'htmx-ext-head-support'
9+ import 'htmx-ext-preload'
10+ import 'htmx.org'
1111import { $ , $$ } from 'select-dom'
12-
1312import { UAParser } from 'ua-parser-js'
14- import { initSmoothScroll } from './smooth-scroll'
13+
1514const { getOS } = new UAParser ( )
1615
1716document . addEventListener ( 'htmx:load' , function ( ) {
Original file line number Diff line number Diff line change 11import { UAParser } from 'ua-parser-js'
2+
23const { getBrowser } = new UAParser ( )
34
45// This is a fix for anchors in details elements in non-Chrome browsers.
Original file line number Diff line number Diff line change 1+ import js from '@eslint/js'
12import { defineConfig , globalIgnores } from 'eslint/config'
23import globals from 'globals'
3- import js from '@eslint/js'
44import tseslint from 'typescript-eslint'
55
66export default defineConfig ( [
Original file line number Diff line number Diff line change 2929 "devDependencies" : {
3030 "@eslint/js" : " 9.23.0" ,
3131 "@tailwindcss/postcss" : " 4.1.0" ,
32+ "@trivago/prettier-plugin-sort-imports" : " 5.2.2" ,
3233 "eslint" : " 9.23.0" ,
3334 "globals" : " 16.0.0" ,
3435 "parcel" : " 2.14.4" ,
You can’t perform that action at this time.
0 commit comments