Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucastaliberti/eslint-plugin-bof-newline
ESLint plugin to ensure that files begin with new line
https://github.com/lucastaliberti/eslint-plugin-bof-newline
eslint eslint-plugin javascript
Last synced: about 1 month ago
JSON representation
ESLint plugin to ensure that files begin with new line
- Host: GitHub
- URL: https://github.com/lucastaliberti/eslint-plugin-bof-newline
- Owner: lucastaliberti
- License: mit
- Created: 2018-04-07T18:58:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-31T11:24:33.000Z (over 3 years ago)
- Last Synced: 2024-11-20T10:55:52.447Z (about 2 months ago)
- Topics: eslint, eslint-plugin, javascript
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
eslint-plugin-bof-newline
====================
ESLint plugin to ensure that files begin with new line## Usage
Add the config below to your `package.json` or `.eslintrc`
```json
{
"plugins": [
"bof-newline"
],
"rules": {
"bof-newline/bof-newline": [2, "always"]
}
}
```## Options
This rule has a string option:
* `"always"` (default) enforces that files begin with a newline (LF)
* `"never"` enforces that files do not begin with a newline**Important:** If you need to enforce a specific linebreak style, use this rule in conjunction with `linebreak-style`.
## License
MIT