Skip to content

Commit

Permalink
chore: create lint-staged.config.js (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
lumirlumir authored Nov 22, 2024
1 parent 0b57cda commit 1743291
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
8 changes: 8 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
'*': [
'npx prettier --check',
'npx editorconfig-checker -config .editorconfig-checker.json',
],
'*.js': 'npx eslint',
'*.md': 'npx markdownlint',
};
13 changes: 0 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,5 @@
"axios": "^1.7.4",
"cheerio": "^1.0.0",
"mime-types": "^2.1.35"
},
"lint-staged": {
"*": [
"npx prettier --check",
"npx editorconfig-checker -config .editorconfig-checker.json"
],
"*.js": "npx eslint",
"*.md": "npx markdownlint",
"{src,tests}/**": [
"npm run test-tests",
"npm run test-classes",
"npm run test-utils"
]
}
}

0 comments on commit 1743291

Please sign in to comment.