Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Latest commit cf0397c Aug 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci 💚 add CircleCI May 16, 2019
.github 🔧 Set auto-assign setting May 16, 2019
configs feat: support ESLint v6 Jul 8, 2019
test feat: support ESLint v6 Jul 8, 2019
.eslintrc.js 🎉 initial commit Apr 25, 2019
.gitignore 🎉 initial commit Apr 25, 2019
.node-version ⬆️ upgrade node version Jul 3, 2019
.prettierrc 🎉 initial commit Apr 25, 2019
CHANGELOG.md chore(release): 2.0.0 Aug 23, 2019
CONTRIBUTING.md docs: Updata CONTRIBUTING.md Jul 3, 2019
LICENSE 🎉 initial commit Apr 25, 2019
README.md 📝 fix a URL for npm badge May 16, 2019
index.js
package.json chore(release): 2.0.0 Aug 23, 2019
tsconfig.json 🎉 initial commit Apr 25, 2019
yarn.lock fix: recreate yarn.lock file to fix yarn audit (#57) Aug 23, 2019

README.md

eslint-config-smarthr

npm version CircleCI

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

Install

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

How to use

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
You can’t perform that action at this time.