During my eslint configuration process, I came across a situation where some preconfigured plugins recommended including the "plugins" : []
value in my config (typescript), while others did not suggest it (stencil).
In the aforementioned Typescript plugin documentation, it is explained that
plugins: ['@typescript-eslint'] tells ESLint to load the @typescript-eslint/eslint-plugin package as a plugin.
- This enables you to use typescript-eslint's rules within your codebase.
But why would I need to do this if the --print-config
flag generates the same config regardless of whether I include the plugins or not? The linting still works perfectly without them. So what purpose does setting this additional value serve?