eslint-config

A set of developer friendly eslint rules extending typescript and eslint.style, published as an npm package. This eslint configs are compatible with both eslint 8 and 9.

Downloads
246
Stars
0
Committers
1

Bot releases are hidden (Show)

eslint-config - v2.0.5 - Update dependencies & docs.

Published by nishkohli96 2 months ago

Released - 8 August, 2024

Upgrade Dependencies

Dependency Version
@stylistic/eslint-plugin 2.1.0 to 2.6.1
@typescript-eslint/eslint-plugin 7.11.0 to 8.1.0
@typescript-eslint/parser 7.11.0 to 8.1.0
eslint 9.3.0 to 9.8.0
eslint-plugin-jsx-a11y 6.8.0 to 6.9.0
eslint-plugin-react 7.34.2 to 7.35.0
globals 15.2.0 to 15.9.0
typescript-eslint 7.11.0 to 8.1.0
eslint-config - Latest Release

Published by nishkohli96 5 months ago

Major upgrade

  1. Migrate this project to a monorepo
  2. Official Docs 📖 for the config 🎉
  3. eslint-flat-config package compatible with eslint 9 and above
  4. Modify 3 , disable 1 and remove 7 rules
  5. Add more test codes in __tests__ folder
eslint-config - v2.0.2 - Fix keyword-spacing and comma-dangle

Published by nishkohli96 6 months ago

Released - 12 Apr, 2024

Modify space-before-blocks and comma-dangle config.

Set keyword-spacing in space-before-blocks rule to keywords: 'always'. Previous config was resulting in no spacing something like,

if(){}
catch{ 

Remove comma dangle from arrays and objects, as traling commas were creating readability issues, in sequelize queries.

eslint-config - Bug fixes

Published by nishkohli96 6 months ago

eslint-config - Split JS and JSX Rules

Published by nishkohli96 6 months ago

Released - 10 Apr, 2024

  • Split js and react-jsx rules
  • Turn off @typescript-eslint/ban-ts-comment
  • Upgraded @stylistic/eslint-plugin, @typescript-eslint/eslint-plugin, @typescript-eslint/parser and eslint-plugin-react dependencies.
eslint-config - Upgrade Dependencies, remove es2024 & no-mixed-spaces-and-tabs rule

Published by nishkohli96 8 months ago

  • Upgraded @stylistic/eslint-plugin, @typescript-eslint/eslint-plugin and @typescript-eslint/parser dependencies.
  • Removed es2024 key from env.
  • Turn off no-mixed-spaces-and-tabs rule.
eslint-config - Less code-style errors, More productivity!

Published by nishkohli96 9 months ago

"More developer friendly, Yay! 😃"

Approx 90% of the rules used now warn instead of throwing an error, so you can focus more on writing the logic, and not on formatting the code! Only the rules that throw an error and some exceptional warn rules like 'no-debugger' must be fixed by the developer.

Also, added some cool new badges in README.md thanks to Shields.io!

eslint-config - v1.0.2

Published by nishkohli96 9 months ago

While using this package during my development, I felt that the status of the rules listed below needed to be changed from error to warn as they would cause my app to crash, prompting me to alter my code to keep eslint happy (and make me irritated instead 😡). These rules would automatically fix the code on running the yarn lint script.

These rules are listed below -

Rule Name
comma-dangle
ban-ts-comment
eol-last
jsx-one-expression-per-line

The below rule is removed from the config file.

Rule Name Reason
multiline-comment-style the default setting starred-block read commented code as a comment itself, which made it difficult to uncomment the code