eslint-config-smarthr
v8.0.0
Published
A sharable ESLint config for SmartHR
Downloads
45,173
Maintainers
Keywords
Readme
eslint-config-smarthr
A sharable ESLint config for SmartHR. This is intended to use at a project for React + TypeScript.
Install
yarn add --dev eslint typescript react // install peerDependencies
yarn add --dev eslint-config-smarthr
How to use
Add a following eslint.config.js
in your project.
import smarthr from 'eslint-config-smarthr'
export default [
...smarthr,
{
// your project's configuration
},
]
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