Skip to content

akhilome/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages