ls-lint icon indicating copy to clipboard operation
ls-lint copied to clipboard

ls-lint with lint-staged, the global code is executed

Open mochalhui opened this issue 1 year ago • 1 comments

// .lintsatgedrc.json

{
  "*" : ["ls-lint"]
}

{
ls: 

  .ts: camelCase | snake_case



ignore:
  - .git
  - node_modules
 }

mochalhui avatar Jul 27 '23 05:07 mochalhui

There is currently no support for lint-staged

loeffel-io avatar Aug 14 '23 08:08 loeffel-io

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 avatar Jul 16 '24 10:07 loeffel-io

@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"
},

romanstetsyk avatar Jul 31 '24 20:07 romanstetsyk