mns-lint-config
Contributing Guide
This repository contains the default linting configuration for any applications making use of JS and sass via eslint and sass-linting
It is very important to avoid cryptic runtime errors due to linting issues, followed by tedious, time consuming debugging.
Accommodating a common coding style using strict linting rules also helps us developers to understand others' code much quicker.
Usage
Install the package into your FESK project.
npm install --save-dev @mands/mns-lint-config
Update your lint commands to use the following:
--ESLint--
Append the following to your esw
command:
-c node_modules/@mands/mns-lint-config/eslint.js
--SASSLint--
Append the following to your SASSLint command:
--config node_modules/@mands/mns-lint-config/sass-lint.yml
Documents
Publish package to npm
After you have made your changes in the repo do the following:
- Create branch make your changes push them, then go to the package.json file change the version "major, minor, patch" based on your change bump up the number. ie from: "version": "4.13.3" = "version": "4.13.4".
- Delete the content of the package-lock.json
- Delete the node-modules folder
- Do npm install.
- Once u have approval merge your changes to master.
- Check the Actions NPM Publish will trigger automatically and publish your changes to NPM packages.