Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Latest commit

 

History

History
49 lines (33 loc) · 1.12 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.12 KB

eslint-config-smarthr

npm version CircleCI

A sharable ESLint config for SmartHR. This is intended to use at a project for React + TypeScript.

Disclaimer

This repository has been archived.
The project has been moved to kufu/tamatebako/packages/eslint-config-smarthr and is being actively maintained there.


Install

yarn add --dev eslint typescript react // install peerDependencies
yarn add --dev eslint-config-smarthr

How to use

Add a following eslint.config.mjs 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