npm

Need private packages and team management tools?Check out npm Orgs. »

@taktikal/eslint-config

1.0.2 • Public • Published

@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"
}

Keywords

none

install

npm i @taktikal/eslint-config

Downloadsweekly downloads

38

version

1.0.2

license

ISC

homepage

gitlab.com

repository

Gitgitlab

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability