ls-lint
ls-lint copied to clipboard
ls-lint with lint-staged, the global code is executed
// .lintsatgedrc.json
{
"*" : ["ls-lint"]
}
{
ls:
.ts: camelCase | snake_case
ignore:
- .git
- node_modules
}
There is currently no support for lint-staged
This feature is now available in the v2.3.0-beta.1
release.
Please test it and let me know if there are any issues ❤️
The upcoming v2.3.0 blog post: https://ls-lint.org/blog/announcements/v2.3.0.html The docs: https://ls-lint.org/2.3/getting-started/introduction.html The release notes: https://github.com/loeffel-io/ls-lint/releases/tag/v2.3.0-beta.1
@loeffel-io, I use [email protected]
as a command in lint-staged
, and it works, but it lints all the files. After upgrading to v2.3.0-beta.1
, it no longer throws errors from lint-staged
, but it works fine if I run it as npm run lint:ls
lint-staged.config.js
:
export default {
'*': 'ls-lint',
};
package.json
:
"scripts": {
"prepare": "husky",
"lint:ls": "ls-lint"
},