Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/standart
Linting rules that make your code look like art that stands on it's own
https://github.com/thlorenz/standart
Last synced: 2 months ago
JSON representation
Linting rules that make your code look like art that stands on it's own
- Host: GitHub
- URL: https://github.com/thlorenz/standart
- Owner: thlorenz
- License: mit
- Created: 2016-04-07T04:41:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-27T05:41:57.000Z (about 8 years ago)
- Last Synced: 2024-10-18T01:38:38.561Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# standart
A linter that helps make your code look like _art_ that _stand_ s on it's own
[standard](https://github.com/feross/standard) with a few exceptions, most importantly:
- **comma-first** allowed
- any rules conflicting with formatting code in a tabular manner were removed## Installation
npm install standart
## Usage
```
standart
```### [Vim](http://www.vim.org/)
Install **[Syntastic][vim-1]** and add these lines to `.vimrc`:
```vim
let g:syntastic_javascript_checkers=['standard']
let g:syntastic_javascript_standard_exec = 'standart'
```For automatic formatting on save, add these two lines to `.vimrc`:
[vim-1]: https://github.com/scrooloose/syntastic
### Ignoring files
Just like in `standard`, The paths `node_modules/**`, `*.min.js`, `bundle.js`, `coverage/**`, hidden files/folders
(beginning with `.`), and all patterns in a project's root `.gitignore` file are
automatically excluded when looking for `.js` files to check.Sometimes you need to ignore additional folders or specific minfied files. To do that, add
a `standart.ignore` property to `package.json`:```json
"standart": {
"ignore": [
"**/out/",
"/lib/select2/",
"/lib/ckeditor/",
"tmp.js"
]
}
```## License
MIT