-
You can tweak ESLint configuration using module.exports = {
// base ESLint rules
overrides: [
{
files: "*.ts",
rules: {
// some TypeScript-specific rules
},
},
],
} Is there a recommended way of doing this in remark configuration? I realized that one way of doing this could be to add another remark configuration in the path which I want to alter, then require the base configuration, and add overrides, but I was wondering if there was a nicer way. 😃 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Indeed, adding a different config file closer to the differing files would do the trick. And if the config files are in JSON, you could require the “higher” config and add exceptions based on that data. Overrides is a nice feature, and something like it becomes more important as unified is growing towards more file formats. But something like it doesn’t exist yet! |
Beta Was this translation helpful? Give feedback.
Indeed, adding a different config file closer to the differing files would do the trick. And if the config files are in JSON, you could require the “higher” config and add exceptions based on that data.
Overrides is a nice feature, and something like it becomes more important as unified is growing towards more file formats. But something like it doesn’t exist yet!