1.0.5 • Published 3 years ago

@akhilome/eslint-config v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ESLint Config

Very minimal eslint config for JavaScript and TypeScript Node projects.

Usage

Just install and use as thus:

JavaScript

Intall the package as a dev dependency:

yarn add --dev @akhilome/eslint-config

Create an ESLint config file in the root of your project:

echo 'extends: "@akhilome/eslint-config"' > .eslintrc.yml

Ensure the package's required peer dependencies - eslint >= 8.0.0, prettier >= 2.0.0 are installed.

TypeScript

Intall the package as a dev dependency:

yarn add --dev @akhilome/eslint-config

Create an ESLint config file in the root of your project:

echo 'extends: "@akhilome/eslint-config/ts"' > .eslintrc.yml

Create if not exists a tsconfig.eslint.json file with the following content:

{
  "extends": "./tsconfig.json",
  "include": ["./*.ts", "src", "test", "tests"],
  "exclude": [""]
}

Ensure the package's required peer dependencies - eslint >= 8.0.0, prettier >= 2.0.0, typescript >= 4.0.0 are installed.