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.
Bot releases are hidden (Show)
Published by nishkohli96 2 months ago
Released - 8 August, 2024
@nish1896/eslint-config-test-v9
.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-flat-config
package compatible with eslint 9 and above__tests__
folderPublished 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.
Published by nishkohli96 6 months ago
js
config
Published by nishkohli96 6 months ago
Released - 10 Apr, 2024
js
and react-jsx
rules@stylistic/eslint-plugin
, @typescript-eslint/eslint-plugin
, @typescript-eslint/parser
and eslint-plugin-react
dependencies.Published by nishkohli96 8 months ago
@stylistic/eslint-plugin
, @typescript-eslint/eslint-plugin
and @typescript-eslint/parser
dependencies.es2024
key from env
.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!
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 |