resolve icon indicating copy to clipboard operation
resolve copied to clipboard

Templates should integrate eslint

Open oliversturm opened this issue 4 years ago • 3 comments

Subject says it - currently I need to integrate eslint myself, which is a hassle. It should be part of templates we deliver.

What I do to integrate it is this. Install modules:

npm install --save-dev eslint eslint-plugin-react

Initialize for the backend projects in main project folder - run node_modules/.bin/eslint --init and answer questions for server-side JS.

Enter client folder and initialize for the frontend project - run ../node_modules/.bin/eslint --init and answer questions for client-side JS using React.

oliversturm avatar Oct 02 '20 09:10 oliversturm

And the hooks plugin should also be included - it's a standard create-react-app thing these days.

oliversturm avatar Oct 06 '20 12:10 oliversturm

Good proposal. We'll take it into account when perform cleaning up templates #1579

max-vasin avatar Oct 09 '20 11:10 max-vasin

One comment to add: I found recently that another separate eslint config is required for the test folder.

oliversturm avatar Oct 09 '20 11:10 oliversturm