0.0.7 • Published 2 years ago

eslint-config-laggage v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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
};