Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

InkoHX/parrot-style

Repository files navigation

parrot-style

My code style.

Install

npm install -D @inkohx/eslint-config-codestyle

JavaScript

Edit .eslintrc.json

{
  "extends": "@inkohx/eslint-config-codestyle"
}

TypeScript

Install plugins

npm install -D @typescript-eslint/eslint-plugin @typescript-eslint/parser

Edit .eslintrc.json

{
  "extends": "@inkohx/eslint-config-codestyle/typescript",
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

React

Install plugins

npm install -D eslint-plugin-react-hooks eslint-plugin-react eslint-plugin-jsx-a11y

Edit .eslintrc.json

{
  "extends": "@inkohx/eslint-config-codestyle/react"
}

for TSX

Install plugins

npm install -D eslint-plugin-react-hooks eslint-plugin-react eslint-plugin-jsx-a11y @typescript-eslint/eslint-plugin @typescript-eslint/parser

Edit .eslintrc.json

{
  "extends": "@inkohx/eslint-config-codestyle/react",
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

About

My coding style.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages