@movidesk/eslint-config-base
ESLint Shareable Config for movidesk's Base JS projects
Last updated 3 days ago by movidesk-admin .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @movidesk/eslint-config-base 
SYNC missed versions from official npm registry.

Table of Contents

This package provides Movidesk's .eslintrc for JS libs as an shareable config. Inspired by QuintoAndar's ESLint shared config.

Getting start

Install

yarn add -D @movidesk/eslint-config-base

Usage

In your project, create a file .eslintrc.json and extends this project:

{
  "extends": "@movidesk/eslint-config-base"
}

After this, only if you are using Typescript, you have to generate your tsconfig.json with the following command:

tsc --init

On package.json, add the folowing script on scripts section:

"lint": "eslint --ignore-path .gitignore . --ext .js --ext .ts --ext .tsx"

If you are not using Typescript, remove the part when starts --ext.

Why --ext? Because when you run in the shell, eslint doesn't recognize .ts and .tsx extensions, even though VSCode does. To see more information, see the end of the README.md from standard-with-typescript and this discussion.

Running local lint

Just run:

yarn lint

Running local test

Just run:

yarn test

Current Tags

  • 1.0.0                                ...           latest (3 days ago)

10 Versions

  • 1.0.0                                ...           3 days ago
  • 0.0.10                                ...           3 days ago
  • 0.0.9                                ...           2 months ago
  • 0.0.8                                ...           2 months ago
  • 0.0.6                                ...           3 months ago
  • 0.0.5                                ...           3 months ago
  • 0.0.4                                ...           3 months ago
  • 0.0.3                                ...           3 months ago
  • 0.0.2                                ...           3 months ago
  • 0.0.1                                ...           3 months ago
Downloads
Today 0
This Week 17
This Month 17
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |