build: fix broken ESLint setup and missing prettier plugin
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- eslint, typescript
- Domain
- build-system, tooling
Research direction
Start with package.json and .eslintrc, then run yarn lint to reproduce the missing-plugin and Prettier compatibility errors. Check the listed devDependencies and configuration entries against the requested versions and cleanup; done means yarn lint completes successfully across the codebase.
Written by the indexing model from the issue text.
Description
Bug Description
Running yarn lint crashes completely with the error ESLint couldn't find the plugin "eslint-plugin-prettier".
This happens because .eslintrc configures the prettier plugin ("plugins": ["prettier"] and "prettier/prettier": ["error"]), but eslint-plugin-prettier was never added to devDependencies in package.json. Additionally, .eslintrc contains leftover boilerplate ignorePatterns referencing packages/preload/... from an unrelated project template.
Proposed Solution
- Add
"eslint-plugin-prettier": "^4.2.1"todevDependenciesinpackage.json. - Keep
prettierat2.8.8but downgradeprettier-plugin-tailwindcssto^0.2.8to maintain compatibility with Prettier 2.x and resolve theprettier/plugins/angularmodule missing error. - Remove invalid
ignorePatternsfrom.eslintrc. - Verified that
yarn lintnow successfully runs across the codebase. I will submit a PR for this!
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 188
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 11
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from containers/podman.io
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
containers/podman.io#727 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
containers/podman.io#725 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
containers/podman.io#696 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
containers/podman.io#692 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
containers/podman.io#686 · 1 comment ·
All issues in containers/podman.io
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100