Skip to content

jurajmatus/eslint-configs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

ESLint

Install the config of your choice, eslint and prettier:

yarn add -D eslint prettier
# one of
yarn add -D https://gitpkg.now.sh/jurajmatus/eslint-configs/packages/eslint-config-ts-node-strict

Add this to .eslintrc.json:

{
-  "extends": [],
+  "extends": ["ts-node-strict"],
}

which can be done with jq:

(cat .eslintrc.json || echo '{}') | jq '.extends += ["ts-node-strict"]'

Prettier

Create .prettierrc.js:

const prettierBase = require("prettier-config");
module.exports = prettierBase;

About

Various ESLint configs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published