eslint-config-timetree
v1.13.0
Published
A sharable ESLint config for TimeTree
Readme
eslint-config-timetree
A sharable ESLint config for TimeTree. This is intended to use at a project for React + TypeScript + Prettier.
Install
npm i --save-dev eslint prettier typescript react // install peerDependencies
npm i --save-dev eslint-config-timetree
yarn add --dev eslint prettier typescript react // install peerDependencies
yarn add --dev eslint-config-timetreeHow to use
Add a following .eslintrc.js in your project.
module.exports = {
extends: ["timetree"]
}or
module.exports = {
extends: ["timetree/react"]
}If your project is not React based, you can use base config.
module.exports = {
extends: ["timetree/base"]
}Run eslint!
npx eslint srcIf you want to lint TypeScript files including .tsx, you can use --ext option ESLint has.
npx eslint --ext .ts,.tsx src