Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1010 Bytes

README.md

File metadata and controls

46 lines (30 loc) · 1010 Bytes

@esolidar/eslint-config-esolidar

ESLint shareable config for eSolidar projects

Usage

In order to use this shareable config you have to install the package "eslint-config-esolidar" into your project:

yarn add --dev @esolidar/eslint-config-esolidar

Then create ESLint config file named ".eslintrc.js" (or edit if it exists). The content is short as below:

.eslintrc.js

module.exports = {
  extends: ['@esolidar/eslint-config-esolidar'],
};

That's all. It will work.

Sometimes the rules we shared may be not enough. Just add more or overwrite them with your own rules by modifying ".eslintrc.js". For example:

.eslintrc.js

module.exports = {
  extends: ['@esolidar/eslint-config-esolidar'],
  rules: {
    "max-lines": 400,
    "semi": [2, "always"]
  }
};

References

License

The MIT License (MIT)