Custom set of eslint rules for Minswap Labs
npm install @minswap/eslint-pluginContains rules used by our TypeScript repositories.
Use script scripts/initRule.sh. It automates the process of creating the necessary directory structure, files, and import statement in the index file. Follow the steps below to run the script:
Give script executable permissions
```
chmod +x scripts/initRule.sh
Run the script with the following command:
``
./scripts/initRule.sh -r
Replace
Example
``
./scripts/initRule.sh -r my-custom-rule -d "Enforce a specific coding style" -m "Avoid using unnecessary variables"
Use script scripts/pack.sh. It automates the process of bumping npm package version to a random version, build, pack and revert version update.
1. Give script executable permissions
``
chmod +x scripts/pack.sh
2. Run the script with the following command:
``
./scripts/pack.sh
3. Find *.tgz file in the root folder and copy its full path.
4. Install this package:
```
npm i -D
The scripts always randomizes the patch version with 4 digit random number. Copy the 4 digit number and paste in package.json to path where this plugin was installed for testing for easy updates.