Why doesn't packages/ui have a .eslintrc.js file whereas apps/docs and apps/web do? And why do they need one?
#3381
-
|
In the default Turborepo configuration, three directories are set up to be linted:
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
extends: ["custom"],
settings: {
next: {
rootDir: ["apps/*/"],
},
},
};
module.exports = {
root: true,
extends: ["custom"],
};My question is: If the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
|
It's possible this is an oversight? cc @tknickman |
Beta Was this translation helpful? Give feedback.
-
|
Apologies for the confusion here @albertothedev. The way this is setup in the template is a little bit confusing and unnecessary. This is meant to demonstrate a situation when, to take one example, you have a monorepo comprised of all react apps / packages, and have added a single different application (Next.js, Vue etc). You may want that single eslint config at root that applies to everything, but then override an individual app or package with its own config that has more specific plugins etc. But in its current form, this is a bit confusing - PR's welcome! |
Beta Was this translation helpful? Give feedback.
-
|
I have opened the RFC #3621 to discuss solutions to this issue. |
Beta Was this translation helpful? Give feedback.
Apologies for the confusion here @albertothedev. The way this is setup in the template is a little bit confusing and unnecessary. This is meant to demonstrate a situation when, to take one example, you have a monorepo comprised of all react apps / packages, and have added a single different application (Next.js, Vue etc). You may want that single eslint config at root that applies to everything, but then override an individual app or package with its own config that has more specific plugins etc.
But in its current form, this is a bit confusing - PR's welcome!