@taktikal/eslint-config
Eslint config for Taktikal TypeScript and React projects.
Last updated 2 months ago by bjark .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @taktikal/eslint-config 
SYNC missed versions from official npm registry.

@taktikal/eslint-config

Eslint + Prettier config for TypeScript and React projects.

Install

npm i -D @taktikal/eslint-config

Add eslint config

Eslint will automatically interpret @taktikal as @taktikal/eslint-config.

{
  "extends": "@taktikal"
}

Add Prettier config

Add this line to your package.json:

{
  "prettier": "@taktikal/eslint-config/prettier"
}

Format on save (VSCode)

Install VSCode Prettier plugin

First you need to install the Prettier plugin for VSCode.

https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

Modify VSCode settings

In your .vscode/settings.json file, add the following:

{
  "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode"
}

Current Tags

  • 1.0.2                                ...           latest (2 months ago)

2 Versions

  • 1.0.2                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 2
Last Day 2
Last Week 2
Last Month 31
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |