You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[babel] Remove @elastic/eslint-config-kibana and babel-eslint-plugin (#6808)
* Remove deprecated babel eslint packages
- `eslint-plugin-babel` is not used by anything in our repo except for:
- `@elastic/eslint-config-kibana` is no longer supported/maintained, and exists in Kibana now. It doesn't make sense for us to import from Kibana, so we should likely just maintain our own eslint config settings
* Replace rules from in `eslint-config-kibana`
@seehttps://github.com/elastic/eslint-config-kibana/blob/master/.eslintrc.js
- excluding rules that overlap w/ Prettier (spacing, quotes, indentation, etc)
- excluded `no-undef`, `no-redeclare` - `@typescript/eslint` already handles these without throwing errors on globals and type exports (see https://stackoverflow.com/a/64197516/4294462) - also allows removing `env` config
+ update eqeqeq rule and no-empty rule to allow empty catches
[opinionated]
- removed `no-nested-ternary`, as we use those plenty and Prettier styles them to be very readable
- also removed several rules which just don't come up for us often, e.g. `__proto__` and `__iterator__` checks
* Restore `mocha` rules set by Kibana eslint config
+ upgrade `mocha` eslint plugin to latest
* Restore `import` rules set by Kibana eslint config
+ remove unused import disable rules
+ remove `import/named` - it doesn't know how to handle types and `@typescript/eslint` already does it better
* Restore `react` rules set by Kibana eslint config
+ upgrade react eslint packages to latest
+ remove unused disable rules
* Remove `react` rule causing unused fragments to not be linted
+ remove unnecessary `jsx` import in Jest test
0 commit comments