0.5.0 • Published 5 years ago
@typescord/eslint-config v0.5.0
Typescord ESLint config
ESLint config for Typescord projects
This repository contains the ESLint configuration used by the core packages of Typescord.
Installation
You need to install ESLint with @typescord/eslint-config and others peer dependencies:
npm i eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-sonarjs eslint-plugin-unicorn @typescord/eslint-config --save-dev
# or with Yarn :
yarn add eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-sonarjs eslint-plugin-unicorn @typescord/eslint-config -DIf you have the error Resolve error: unable to load resolver "node" when you lint:
yarn add eslint-import-resolver-node -DNote: If you installed ESLint globally (using the -g flag) then you must also install @typescord/prettier-config and others peer dependencies globally.
Usage
@typescord must be extended when creating packages for Typescord.
JSON format:
{
"root": true,
"extends": ["@typescord"]
// ...
}YAML format:
root: true
extends: ['@typescord']
# ...