How to use eslint?
#3119
-
{
"name": "foobar",
"private": true,
"version": "1.0.0",
"workspaces": [
"code/**"
],
"scripts": {
"release": "standard-version",
"release:minor": "standard-version --release-as minor",
"release:patch": "standard-version --release-as patch",
"release:major": "standard-version --release-as major",
"lint": "eslint"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"husky": "^7.0.1",
"prettier": "^2.3.2",
"standard-version": "^9.3.0",
"eslint": "^7.30.0"
}
} Theoretical I want to run eslint separate in every sub package.
my .yarnrc.yml nodeLinker: node-modules
npmScopes:
trustedshops:
npmRegistryServer: "https://npm.pkg.github.com"
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-constraints.cjs
spec: "@yarnpkg/plugin-constraints"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
yarnPath: .yarn/releases/yarn-berry.cjs How do I run |
Beta Was this translation helpful? Give feedback.
Answered by
benkeil
Jul 14, 2021
Replies: 2 comments 6 replies
-
@benjie works for me your setup, unique differences are
Furthermore, you package.json does not match with the plugin usage, anyway does not have any effect anyway. Check this example.
|
Beta Was this translation helpful? Give feedback.
3 replies
-
I just needed to add in every submodule |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
merceyz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just needed to add in every submodule
eslint
also as a dependency and runyarn install