@nos-futurs/eslint-config
v1.4.2
Published
Custom ESlint/Prettier config
Downloads
3
Maintainers
Readme
ESlint Configuration
This ESlint configuration should always be installed with its peer dependencies.
Prettier is used as a ESlint plugin to avoid the need to create a .prettierrc
file in each project.
Install
pnpm i -D @nos-futurs/eslint-config
Don't forget to have a .npmrc
file in your project, with the following content:
auto-install-peers=true
Usage
JS
Create a .eslintrc.js
file in your project with the following content:
module.exports = {
"extends": "@nos-futurs/eslint-config",
}
TS
Create a .eslintrc.js
file in your project with the following content:
module.exports = {
"extends": "@nos-futurs/eslint-config/ts",
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
}