using lint-staged

This commit is contained in:
Fractal-Tess
2022-09-19 21:56:01 +03:00
parent a6d20b3bb5
commit 28f8e278cf
5 changed files with 851 additions and 1289 deletions

View File

@@ -1,8 +1,23 @@
# v 0.1 # v 0.2
# Minified files # Minified files
*.min.* *.min.*
*.min.* *.min.*
# Husky
.husky/*
# Git
.gitignore
# Eslint
.eslintignore
# Self
.prettierignore
# Pnpm
pnpm-lock.yaml
# dotenv environment variable files # dotenv environment variable files
.env .env
.env.development.local .env.development.local
@@ -10,9 +25,6 @@
.env.production.local .env.production.local
.env.local .env.local
# Fix: .eslintignore is being threated as a markdown
.eslintignore
# Runtime data # Runtime data
pids pids
*.pid *.pid

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname -- "$0")/_/husky.sh"
# If not using pnpm, switch this to your package manager # If not using pnpm, switch to your package manager
pnpm format pnpm lint-staged
pnpm lint

View File

@@ -1,8 +1,23 @@
# v 0.1 # v 0.2
# Minified files # Minified files
*.min.* *.min.*
*.min.* *.min.*
# Husky
.husky/*
# Git
.gitignore
# Eslint
.eslintignore
# Self
.prettierignore
# Pnpm
pnpm-lock.yaml
# dotenv environment variable files # dotenv environment variable files
.env .env
.env.development.local .env.development.local
@@ -10,9 +25,6 @@
.env.production.local .env.production.local
.env.local .env.local
# Fix: .eslintignore is being threated as a markdown
.eslintignore
# Runtime data # Runtime data
pids pids
*.pid *.pid

View File

@@ -24,6 +24,12 @@
"svelte:dev": "vite dev", "svelte:dev": "vite dev",
"svelte:preview": "vite preview" "svelte:preview": "vite preview"
}, },
"lint-staged": {
"*": [
"prettier --write",
"eslint"
]
},
"devDependencies": { "devDependencies": {
"@fontsource/roboto": "^4.5.8", "@fontsource/roboto": "^4.5.8",
"@fortawesome/fontawesome-svg-core": "^6.2.0", "@fortawesome/fontawesome-svg-core": "^6.2.0",
@@ -43,6 +49,7 @@
"eslint-plugin-svelte3": "^4.0.0", "eslint-plugin-svelte3": "^4.0.0",
"eslint-plugin-unused-imports": "^2.0.0", "eslint-plugin-unused-imports": "^2.0.0",
"husky": "^8.0.1", "husky": "^8.0.1",
"lint-staged": "^13.0.3",
"postcss": "^8.4.16", "postcss": "^8.4.16",
"postcss-load-config": "^4.0.1", "postcss-load-config": "^4.0.1",
"prettier": "^2.7.1", "prettier": "^2.7.1",

2088
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff