resolve
resolve copied to clipboard
Templates should integrate eslint
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.
And the hooks plugin should also be included - it's a standard create-react-app
thing these days.
Good proposal. We'll take it into account when perform cleaning up templates #1579
One comment to add: I found recently that another separate eslint config is required for the test
folder.