eslint-config-laggage
v0.0.7
Published
laggage's personal eslint configuration
Downloads
2
Readme
Usage
Install peer dependencies
npm i -D typescript eslint prettier-
Create .prettierrc.js
and .eslintrc.js
files to the root of the project
touch .prettierrc.js && touch .eslintrc.js
module.exports = {
extends: ['./node_modules/eslint-config-laggage/index.js'],
};
module.exports = {
...require('eslint-config-laggage/prettier'),
};
Use .*.js
as the configuration file so that it's possible and easy to override th configuration in these two files.
For example, to override tabWith
option to 2 of prettier, just modify .prettierrc.js like below
module.exports = {
...require('eslint-config-laggage/prettier'),
+ tabWith: 2
};