eslint v8.57.0 (.eslintrc.cjs). Are objects in overrides
isolated? i.e. rules in extends
for files: [*.js]
and for files: [*test.js]
are not concatenating or they do?
#18302
Unanswered
Dmitriy-Frostoff
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current devDependecies in
package.json
package.json
is with"type": "module"
;node: v21.7.1;
npm: v10.5.1;
VSCode: v1.88.0;
ESLint extension for VSCode: v2.4.4;
Prettier extension for VSCode: v10.4.0;
Format Code Action extension for VSCode: v0.1.0;
Whatsap!) 👋
I couldn't find an answer all day long so decided to ask here...
overrides
objects interact with each other? Or they are fully isolated?E.g. i wanna to create a config file for usage with
*.js
,*.ts
,*.test.js
and*.test.ts
files via specifyingextends
only for the current extension type in theoverrides
and to have a few common things(env
andparserOptions
) in main space. Yeah, it's a DRY violation but i wanna to have clear dependencies and ability to easily delete unnecessary ones...eslint config
that way?files: ['**/*.test.ts', '**/*.test.tsx'],
extendplugins
andparserOptions
from the object withfiles: ['*.ts'],
?'plugin:jest/recommended'
after'airbnb-base'
, or leave at current position?Of course, as only all the eslint packages mentioned above will move to
flat config
i'll useeslint flat
config too)))P.S. Thanks for all the goodness that you do to make the
Programming World
Better!!! 🙏🙌current
.eslintrc.cjs
config (it's placed on the relative path:configs/eslint/.eslintrc.cjs
)Beta Was this translation helpful? Give feedback.
All reactions