https://github.com/axa-ch/eslint-plugin-myaxa
Eslint plugin with custom rules for myaxa
https://github.com/axa-ch/eslint-plugin-myaxa
Last synced: 4 months ago
JSON representation
Eslint plugin with custom rules for myaxa
- Host: GitHub
- URL: https://github.com/axa-ch/eslint-plugin-myaxa
- Owner: axa-ch
- Archived: true
- Created: 2021-09-16T09:04:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-16T09:36:13.000Z (about 4 years ago)
- Last Synced: 2025-02-26T12:13:59.640Z (7 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# myaxa-eslint-plugin
ESlint plugin which contains custom rules, relevant for our project
Currently in contains these rules:
- className must use prefixClass function (myaxa-classnames)
### How to edit existing rules
- Don't forget to increase version and release when you update existing rule
### How to add new rules
- It's good to use `yo` generator to generate boilerplate
- `npm i -g yo generator-eslint`
- Some references, which I've used during development:
- https://flexport.engineering/writing-custom-lint-rules-for-your-picky-developers-67732afa1803
- https://blog.scottlogic.com/2021/09/06/how-to-write-an-es-lint-rule-for-beginners.html
- https://astexplorer.net/