Merge pull request #654 from zen-browser/fix/lefthook

This commit is contained in:
Shintaro Jokagi 2025-06-03 16:26:06 +12:00 committed by GitHub
commit 85b90b6107
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 74 additions and 78 deletions

View file

@ -14,7 +14,9 @@ export const cspellConfig: Linter.Config = {
'warn',
{
configFile: new URL('../cspell.json', import.meta.url).toString(),
cspell: {},
cspell: {
language: 'en,es',
},
},
],
},

View file

@ -1,56 +1,70 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"language": "en",
"language": "en,es",
"files": ["**/*.{ts,js,astro,html,css,json,yml,yaml,md}"],
"words": [
"createdDefault",
"createdAsc",
"createdDesc",
"updatedDefault",
"updatedAsc",
"updatedDesc",
"adam",
"AMOLED",
"Astronav",
"tuta",
"junicode",
"cfasync",
"Junicode",
"Galdámez",
"García",
"Briel",
"brhm",
"Brhm",
"kristijanribaric",
"Ribaric",
"larvey",
"Larvey",
"taroj",
"Jokagi",
"bryan",
"Canoa",
"canoa",
"cfasync",
"createdAsc",
"createdDefault",
"createdDesc",
"daniel",
"FMPEG",
"ferrocyante",
"flatpaks",
"Galdámez",
"García",
"Garro",
"isnan",
"itro",
"jace",
"Jace",
"canoa",
"Canoa",
"itro",
"jafeth",
"Jafeth",
"Garro",
"XPCOM",
"zsync",
"flatpaks",
"Nehalem",
"VAAPI",
"FMPEG",
"AMOLED",
"jank",
"mfsa",
"OCSP",
"unfloatable",
"Jokagi",
"junicode",
"Junicode",
"kristijanribaric",
"Kristijan",
"laggy",
"larvey",
"Larvey",
"linuxarmsum",
"linuxsum",
"linaarchsum",
"mfsa",
"mozilla",
"Nehalem",
"NSIS",
"wmfcdm",
"unfocusing",
"Briel",
"OCSP",
"oscar",
"Otero",
"patreon",
"Pdzly",
"ferrocyante"
"Ribaric",
"taroj",
"testid",
"theming",
"tuta",
"tsconfigs",
"unfloatable",
"unfocusing",
"updatedAsc",
"updatedDefault",
"updatedDesc",
"VAAPI",
"wmfcdm",
"XPCOM",
"zsync"
],
"flagWords": [],
"ignorePaths": [
@ -69,13 +83,14 @@
"pnpm-lock.yaml"
],
"allowCompoundWords": true,
"dictionaries": ["typescript", "node", "html", "css", "bash", "npm"],
"dictionaries": ["typescript", "node", "html", "css", "bash", "npm", "es-es"],
"import": [
"@cspell/dict-typescript/cspell-ext.json",
"@cspell/dict-node/cspell-ext.json",
"@cspell/dict-html/cspell-ext.json",
"@cspell/dict-css/cspell-ext.json",
"@cspell/dict-bash/cspell-ext.json",
"@cspell/dict-npm/cspell-ext.json"
"@cspell/dict-npm/cspell-ext.json",
"@cspell/dict-es-es/cspell-ext.json"
]
}

View file

@ -5,7 +5,7 @@ pre-commit:
priority: 1
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,md,mdx,yaml,yml,json,html,css,astro}"
run: |
pnpm prettier {staged_files} --write
pnpm prettier {staged_files} --write --list-different
stage_fixed: true
eslint:
@ -19,7 +19,6 @@ pre-commit:
pnpm lefthook run cspell
eslint:
parallel: true
commands:
base:
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,astro}"
@ -32,22 +31,7 @@ eslint:
pnpm eslint {staged_files} --max-warnings=0 --fix --cache
stage_fixed: true
src:
root: src/
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,astro}"
run: |
pnpm eslint {staged_files} --max-warnings=0 --fix --cache
stage_fixed: true
scripts:
root: scripts/
glob: "*.{js,ts,py}"
run: |
pnpm eslint {staged_files} --max-warnings=0 --fix --cache
stage_fixed: true
cspell:
parallel: true
commands:
base:
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,astro,json,yaml,yml,md,mdx}"
@ -55,20 +39,6 @@ cspell:
pnpm cspell {staged_files}
stage_fixed: true
src:
root: src/
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,astro,json,yaml,yml,md,mdx}"
run: |
pnpm cspell {staged_files}
stage_fixed: true
scripts:
root: scripts/
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,json,yaml,yml,md,mdx}"
run: |
pnpm cspell {staged_files}
stage_fixed: true
commit-msg:
commands:
commitlint:

View file

@ -15,7 +15,7 @@
"astro": "astro",
"lint": "eslint . --max-warnings=0 --cache",
"lint:fix": "eslint . --fix",
"spell": "cspell \"src/**/*.{ts,tsx,js,jsx,astro,md,json,yml,yaml}\"",
"spell": "cspell \"**/*.{ts,tsx,js,jsx,astro,md,json,yml,yaml}\"",
"format": "prettier . --check --cache",
"format:fix": "prettier . --write --cache --list-different",
"commitlint": "commitlint --edit",
@ -59,6 +59,7 @@
"@commitlint/config-conventional": "^19.8.1",
"@cspell/dict-bash": "^4.2.0",
"@cspell/dict-css": "^4.0.17",
"@cspell/dict-es-es": "^3.0.3",
"@cspell/dict-html": "^4.0.11",
"@cspell/dict-node": "^5.0.7",
"@cspell/dict-npm": "^5.2.4",

8
pnpm-lock.yaml generated
View file

@ -105,6 +105,9 @@ importers:
'@cspell/dict-css':
specifier: ^4.0.17
version: 4.0.17
'@cspell/dict-es-es':
specifier: ^3.0.3
version: 3.0.3
'@cspell/dict-html':
specifier: ^4.0.11
version: 4.0.11
@ -579,6 +582,9 @@ packages:
'@cspell/dict-en_us@4.4.9':
resolution: {integrity: sha512-5gjqpUwhE+qP9A9wxD1+MGGJ3DNqTgSpiOsS10cGJfV4p/Z194XkDUZrUrJsnJA/3fsCZHAzcNWh8m0bw1v++A==}
'@cspell/dict-es-es@3.0.3':
resolution: {integrity: sha512-hROLoJ/aBcK43drDqHVnZhtUS9cUQtTZFJl4k9ih3lBoeRhCZIQDg1qARfEFTEwX8LN+FrERjnahndrZcxuaGw==}
'@cspell/dict-filetypes@3.0.12':
resolution: {integrity: sha512-+ds5wgNdlUxuJvhg8A1TjuSpalDFGCh7SkANCWvIplg6QZPXL4j83lqxP7PgjHpx7PsBUS7vw0aiHPjZy9BItw==}
@ -5633,6 +5639,8 @@ snapshots:
'@cspell/dict-en_us@4.4.9': {}
'@cspell/dict-es-es@3.0.3': {}
'@cspell/dict-filetypes@3.0.12': {}
'@cspell/dict-flutter@1.1.0': {}

View file

@ -1067,7 +1067,7 @@
"Allow VAAPI/FMPEG APIs only for Linux",
"Twilight will now display the proper name on .desktop files",
"Added a better icon selection for workspaces, enhancing more icons",
"Created a \"Force container workspace\" option. Basically, force each container to belong to acertain workspace.",
"Created a \"Force container workspace\" option. Basically, force each container to belong to a certain workspace.",
"Bookmarks are now opened in the workspace's default container",
"Allow tab unloader to ignore picture-in-picture tabs"
],
@ -1121,7 +1121,7 @@
"description": "Fixed handling of corrupted mod files"
},
{
"description": "Fixed reseting shortcuts not working"
"description": "Fixed resetting shortcuts not working"
},
{
"description": "Fixed settings UI when night theme is enabled while having a light website displayed"
@ -1430,7 +1430,7 @@
"description": "Fixed opening panel animation, making the popup view look weird while animating"
},
{
"description": "Fixed web panels being reloaded when unpining them"
"description": "Fixed web panels being reloaded when unpinning them"
},
{
"description": "Fixed not making a default workspace when creating a new profile on specific conditions"
@ -1656,7 +1656,7 @@
"description": "Fixed an 'all-tabs' buttons appearing always and not being able to remove it"
},
{
"description": "Fixed overlaping top toolbar in compact mode when having multiple toolbars enabled"
"description": "Fixed overlapping top toolbar in compact mode when having multiple toolbars enabled"
},
{
"description": "Fixed gradient generator overflowing the dialog on some displays"
@ -1684,7 +1684,7 @@
"description": "Fixed macos window control when changing right side tabs to normal tabs"
},
{
"description": "Fixed compact mode overlaping site when having bookmarks bar enabled"
"description": "Fixed compact mode overlapping site when having bookmarks bar enabled"
},
{
"description": "Fixed entering into customize mode while having collapsed tabs"
@ -1856,7 +1856,7 @@
"issue": 4050
},
{
"description": "Fixed weird colouring for toggle inputs",
"description": "Fixed weird coloring for toggle inputs",
"issue": 4047
},
"Update application identifier for Zen Browser to align with new naming conventions (MacOS)",