A sharable ESLint config for SmartHR. This is intended to use at a project for React + TypeScript.
yarn add --dev eslint typescript react // install peerDependencies
yarn add --dev eslint-config-smarthr
Add a following .eslintrc.js
in your project.
module.exports = {
extends: 'smarthr'
}
Run eslint
!
yarn eslint src
If you want to lint TypeScript files including .tsx
, you can use --ext
option ESLint has.
yarn eslint --ext .ts,.tsx src