Skip to content

Commit

Permalink
chore: replace lint-staged yml config with js wd-157
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove committed Nov 20, 2023
1 parent 1b8387d commit a3fa2d4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ overrides:
- files:
- commitlint.config.js
- prettier.config.js
- lint-staged.config.js
rules:
import/no-default-export:
- off
Expand Down
4 changes: 0 additions & 4 deletions .lintstagedrc.yml

This file was deleted.

9 changes: 9 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('lint-staged').Config} */
let config = {
'*': `make lint_editor lint_fs`,
'*.{json,yml,css,js,cjs,d.ts}': `prettier --write`,
'*.css': `make lint_css`,
'*.js': `make lint_js lint_type`,
}

export default config
7 changes: 7 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@commitlint/cli": "17.8.1",
"@commitlint/config-conventional": "18.4.0",
"@ls-lint/ls-lint": "2.2.2",
"@types/lint-staged": "13.2.2",
"browserslist": "4.22.1",
"concurrently": "8.2.2",
"editorconfig-checker": "5.1.1",
Expand Down

0 comments on commit a3fa2d4

Please sign in to comment.