Skip to content

Commit

Permalink
chore: add typos config
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Aug 29, 2024
1 parent 6305345 commit 7b9353d
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 57 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Typos
on:
pull_request:
branches-ignore:
- gh-pages
- releases/**
types:
- opened
- synchronize
- reopened

jobs:
run:
name: Spell check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Spell check
uses: crate-ci/[email protected]
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ dist
*.tgz
*.zip
*~

.eslintcache
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"jsonc",
"json5",
"yaml",
"toml",
"yml"
],
"files.associations": {
Expand Down
2 changes: 2 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[files]
extend-exclude = [ "assets/inclusion-vapor-v0.excalidraw" ]
4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
vue,
react,
// svelte,
yaml
yaml,
toml
} from '@kazupon/eslint-config'

export default defineConfig(
Expand Down Expand Up @@ -46,6 +47,7 @@ export default defineConfig(
json5: true,
prettier: true
}),
toml(),
react({
refresh: true,
rules: {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"eslint-plugin-react-refresh": "^0.4.9",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-svelte": "^2.43.0",
"eslint-plugin-toml": "^0.11.1",
"eslint-plugin-unicorn": "^54.0.0",
"eslint-plugin-vue": "^9.27.0",
"eslint-plugin-yml": "^1.14.0",
Expand All @@ -66,6 +67,7 @@
"pkg-pr-new": "^0.0.20",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-toml": "^2.0.1",
"serve": "^14.2.3",
"typescript": "^5.5.3",
"typescript-eslint": "^8.1.0",
Expand All @@ -84,8 +86,8 @@
"*.{json,md,yml}": [
"prettier --write"
],
"*.{js,mjs,cjs,vue,svelte}": [
"prettier --write --plugin prettier-plugin-svelte",
"*.{js,mjs,cjs,vue,svelte,toml}": [
"prettier --write --plugin prettier-plugin-svelte --plugin prettier-plugin-toml",
"eslint --fix"
],
"*.ts?(x)": [
Expand Down
162 changes: 108 additions & 54 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 7b9353d

Please sign in to comment.