yarn add --D eslint
"lint": "node_modules/.bin/eslint ./${SOURCES} --ext .js,.jsx",
"lintfix": "node_modules/.bin/eslint ./${SOURCES} --ext .js,.jsx --fix"
where ${SOURCES}
is root of linted code
{
"extends": "vvdev"
}
Be default used react-native eslint config. To use another config you can specify environment:
"extends": "vvdev/react-native", // react-native
"extends": "vvdev/react", // react js
"extends": "vvdev/node", // node-js
Use one of the next commands
yarn run lint
See husky
- [] sonarjs plugin
- [] Include React JS config