Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fibo/standa
JavaScript Standa•Rd Style minus R{eact} d{evelopment} stuff
https://github.com/fibo/standa
linter standardjs tiny
Last synced: about 1 month ago
JSON representation
JavaScript Standa•Rd Style minus R{eact} d{evelopment} stuff
- Host: GitHub
- URL: https://github.com/fibo/standa
- Owner: fibo
- License: mit
- Created: 2017-07-25T18:24:19.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2021-03-25T17:44:38.000Z (over 3 years ago)
- Last Synced: 2024-10-16T03:21:38.777Z (2 months ago)
- Topics: linter, standardjs, tiny
- Language: JavaScript
- Homepage: https://fibo.github.io/standa
- Size: 138 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# standa
> JavaScript Standa•Rd Style minus R(eact) d(evelopment) stuff
## Features
It has same features as [Standard JS](https://standardjs.com/) linter but
with a subset of rules: everything related to JSX and React is removed.## Installation
With [npm](https://npmjs.org/) do
```bash
npm i standa -D
```## Usage
It works the same as [Standard JS]!
For example you can declare globals in *package.json*, adding something like
```json
"standa": {
"globals": [
"localStorage"
]
}
```Note that the attribute name is **standa** instead of *standard*.
The same applies if you want to ignore files, for example
```json
"standa": {
"ignore": [
"dist/"
]
}
```Another use case, if you want to lint code with flow annotations, follow
[instructions from official StandardJS documentation](https://standardjs.com/#can-i-use-a-javascript-language-variant-like-flow-or-typescript)
then in your *package.json*```bash
npm install babel-eslint
``````json
"standa": {
"parser": "babel-eslint",
"plugins": [
"flowtype"
]
}
```## Credits
Credits go to [standard-engine collaborators](https://www.npmjs.com/package/standard-engine/access).
## Versioning
*Major* version is the same as [eslint-config-standard](https://github.com/standard/eslint-config-standard).
## License
Same as [Standard JS], i.e. [MIT](http://g14n.info/mit-license).
[Standard JS]: https://standardjs.com "StandardJS"