ESLint config.
Based on:
Monorepo setup inspired by Anthony Fu.
npm install eslint @tysian/eslint-config --save-dev
Note Base config included
npm install eslint @tysian/eslint-config-typescript --save-dev
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',
};
[!NOTE] Base & typescript configs included
npm install eslint @tysian/eslint-config-react --save-dev
Recommended to use along with prettier:
npm install prettier eslint-config-prettier --save-dev
Note
.eslintignore
already provided in config
{
"extends": [
"@tysian",
// your other configs
"prettier"
]
}
{
"extends": ["@tysian"]
}
Cheese 🧀