Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreineculau/eslint-plugin-max-len-2
https://github.com/andreineculau/eslint-plugin-max-len-2
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/andreineculau/eslint-plugin-max-len-2
- Owner: andreineculau
- Created: 2016-09-19T15:53:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-19T17:30:17.000Z (about 8 years ago)
- Last Synced: 2024-08-09T21:23:01.314Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# max-len-2 (eslint plugin)
Ref: https://github.com/eslint/eslint/issues/6910
Usually I have a soft-limit of 80 characters per line,
and a hard-limit of 120 characters per line.Since eslint rules cannot set the error level (warn/error) themselves,
this copy of the built-in "max-len" rule (that comes with **your own eslint installation**),
allows you to define soft and hard limits in your `.eslintrc.yaml` like this:```yaml
max-len:
- error
- code: 120
ignoreComments: true
ignoreUrls: true
max-len-2/max-len-2:
- warn
- code: 80
ignoreComments: true
ignoreUrls: true
```## License
MIT