There's answered question which in my opinion doesn't actually answers the question, on the difference between extends: []
vs plugins: []
in ESLint.
In my case, i just used extends section:
extends: [
'plugin:@typescript-eslint/recommended',
],
plugins: [],
rules: {
'@typescript-eslint/explicit-function-return-type': [
'error',
{
allowExpressions: true,
},
],
}
As you can see, i just used predefined config from plugin:@typescript-eslint/recommended
and also overwritten @typescript-eslint/explicit-function-return-type
rule in rules: {}
section. But why do we need this PLUGINS section then? If everything works without it? What do i miss?