Design Overview of eslint-config-moneyforward 3 #182
Closed
wakamsha
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are developing a new version of eslint-config-moneyforward. Our aim is to reduce the cost of configuring ESLint while maintaining a certain baseline of code quality for front-end development, so that you can focus on developing more valuable software.
Below is a design overview of the new version. It will be updated with any changes before release:
Directory Tree
The ruleset files, divided by context, are placed in the
rules
directory and grouped by domain to form presets (configs). The users of the package can load any preset from their.eslintrc
.package.json
Rulesets and Dependency packages
essentials
best-practices
errors
es6
imports
promise
variables
confusing-browser-globals
eslint
eslint-plugin-promise
eslint-plugin-imports
jsdoc
jsdoc
eslint-plugin-jsdoc
next
next
@next/eslint-plugin-next
node
node
eslint-plugin-n
react
jsx-a11y
react-hooks
react
eslint-plugin-jsx-a11y
eslint-plugin-react-hooks
eslint-plugin-react
storybook
storybook
eslint-plugin-storybook
test
jest
jest-dom
testing-library
eslint-plugin-jest
eslint-plugin-jest-dom
eslint-plugin-testing-library
typescript
typescript
@eslint-typescript/eslint-plugin
@eslint-typescript/parser
The ruleset will be built using the settings recommended by each plug-in, the eslint-config-airbnb ruleset and eslint-config-react-app ruleset as a reference.
Usage
Install
npm install --save-dev eslint eslint-config-moneyforward typescript # If you format code with Prettier, install eslint-config-prettier as well. npm install --save-dev eslint-config-prettier
Projects formatting code with Prettier must also install eslint-config-prettier. By loading this additionally, you can disable ESLint rulesets that conflict with Prettier.
Setting
Put the module into your
.eslintrc
.To load TypeScript presets (configs), write like this:
References
Beta Was this translation helpful? Give feedback.
All reactions