Closed 0918nobita closed 3 years ago
Fixes: #14
eslint
@typescript-eslint/parser
@typescript-eslint/eslint-plugin
prettier
eslint-config-prettier
eslint-plugin-prettier
/.eslintrc.js
/.prettierrc.js
lint
format
Result of executing npm run lint command:
npm run lint
VS Code + ESLint extension:
Do we really need ESLint+Prettier? Seems a bit too heavy to me. 😅
Indeed, it might be better to introduce only Prettier now. I'll close this PR and create PR again to try out only Prettier.
Fixes: #14
Summary
eslint
(Linter for ECMAScript)@typescript-eslint/parser
(Alternative ESLint parser for TypeScript)@typescript-eslint/eslint-plugin
(ESLint plugin for adding TypeScript-related rules)prettier
(Code formatter for various languages, including JavaScript)eslint-config-prettier
(Turns off all rules that are unnecessary or might conflict with Prettier)eslint-plugin-prettier
(Runs Prettier as an ESLint rule and reports differences as individual ESLint issues)/.eslintrc.js
/.prettierrc.js
lint
(Runs ESLint without changing code)format
(Runs ESLint and fixes issues automatically with overwriting code)format
script, then fix code manually for reducing ESLint issuesScreenshots
Result of executing
npm run lint
command:VS Code + ESLint extension: