Skip to content

tysian/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@tysian/eslint-config-monorepo

ESLint config.

Based on:

Monorepo setup inspired by Anthony Fu.

Install

npm install eslint @tysian/eslint-config --save-dev

Install with typescript

Note Base config included

npm install eslint @tysian/eslint-config-typescript --save-dev

TypeScript Aware Rules

Type aware rules are enabled when a tsconfig.eslint.json is found in the project root, which will introduce some stricter rules into your project.

If you want to enable it while have no tsconfig.eslint.json in the project root, you can change tsconfig name by modifying ESLINT_TSCONFIG env.

// .eslintrc.js
process.env.ESLINT_TSCONFIG = 'tsconfig.json';

module.exports = {
  extends: '@tysian/eslint-config-typescript',
};

Install with React

[!NOTE] Base & typescript configs included

npm install eslint @tysian/eslint-config-react --save-dev

Prettier

Recommended to use along with prettier:

npm install prettier eslint-config-prettier --save-dev

Config .eslintrc

Note .eslintignore already provided in config

{
  "extends": [
    "@tysian",
    // your other configs
    "prettier"
  ]
}

Without prettier

{
  "extends": ["@tysian"]
}

Cheese 🧀

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published