untile / js-configs

Untile configs and conventions
https://untile.pt
MIT License
1 stars 0 forks source link

Bump eslint #76

Open PedroBailaAndrade opened 1 month ago

PedroBailaAndrade commented 1 month ago

This PR:

Is now using Vitest as a testing framework (previously Jest was being used).


Updated Rules:

Most of the stylistic rules from ESlint were deprecated in previous versions and is now using the rules from this package @stylistic/eslint-plugin as recommended by ESlint.

Most of node rules from ESlint were deprecated in previous versions and is now using the rules from this package eslint-plugin-n as recommended by ESlint

Some plugins are not compatible with Eslint v9 so they need to be wrapped by fixupPluginRules from eslint/compat to be compatible.

To create tests:

it only tests for the specified rule, don't need to worry about unused vars and indents (only for the tests of those specific rules) (if a rule is not testable like no-console the example can be empty or not registered) rules that don't have test because of failure: @stylistic/jsx-quotes, no-multi-str, nodePlugin/no-path-concat