Socket
Socket
Sign inDemoInstall

semistandard

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semistandard - npm Package Compare versions

Comparing version 4.0.3 to 4.1.0

badge.svg

29

eslintrc.json

@@ -123,3 +123,3 @@ {

"no-return-assign": 2,
"no-script-url": 2,
"no-script-url": 0,
"no-self-compare": 2,

@@ -154,12 +154,17 @@ "no-sequences": 2,

"radix": 2,
"react/display-name": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 1,
"react/display-name": 2,
"react/jsx-boolean-value": 2,
"react/jsx-quotes": [2, "single", "avoid-escape"],
"react/jsx-no-undef": 2,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/wrap-multilines": 2,
"semi": [2, "always"],

@@ -170,3 +175,3 @@ "semi-spacing": 0,

"space-before-blocks": [2, "always"],
"space-before-function-parentheses": [2, "always"],
"space-before-function-paren": [2, "always"],
"space-in-brackets": 0,

@@ -173,0 +178,0 @@ "space-in-parens": [2, "never"],

{
"name": "semistandard",
"description": "All the goodness of `feross/standard` with semicolons sprinkled on top.",
"version": "4.0.3",
"version": "4.1.0",
"author": {

@@ -17,3 +17,3 @@ "name": "Dan Flettre",

"dependencies": {
"standard-engine": "^1.2.0"
"standard-engine": "^1.3.0"
},

@@ -20,0 +20,0 @@ "devDependencies": {

@@ -13,10 +13,51 @@ # JavaScript Semi-Standard Style

```bash
npm install semistandard -g
npm install semistandard
```
## Rules
Importantly:
- **semicolons**
- Check [feross/standard] for the rest of the rules.
## Badge
Use this in one of your projects? Include one of these badges in your readme to
let people know that your code is using the standard style.
[![js-semistandard-style](https://cdn.rawgit.com/flet/semistandard/master/badge.svg)](https://github.com/Flet/semistandard)
```markdown
[![js-semistandard-style](https://cdn.rawgit.com/flet/semistandard/master/badge.svg)](https://github.com/Flet/semistandard)
```
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
```markdown
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
```
## Usage
The easiest way to use JavaScript Semi-Standard Style to check your code is to install it
globally as a Node command line program. To do so, simply run the following command in
your terminal (flag `-g` installs `semistandard` globally on your system, omit it if you want
to install in the current working directory):
```bash
npm install semistandard -g
```
After you've done that you should be able to use the `semistandard` program. The simplest use
case would be checking the style of all JavaScript files in the current working directory:
```
$ semistandard
Error: Use JavaScript Semi-Standard Style
lib/torrent.js:950:11: Expected '===' and instead saw '=='.
```
### Editor plugins
Sublime users: Try [SublimeLinter-contrib-semistandard](https://github.com/Flet/SublimeLinter-contrib-semistandard) for linting in your editor!

@@ -51,10 +92,10 @@

See [feross/standard] for more information. In fact, you should probably just use the `standard` module instead.
See [feross/standard] for more information.
[travis-image]: https://img.shields.io/travis/Flet/semistandard.svg?style=flat
[travis-image]: https://img.shields.io/travis/Flet/semistandard.svg?style=flat-square
[travis-url]: https://travis-ci.org/Flet/semistandard
[npm-image]: https://img.shields.io/npm/v/semistandard.svg?style=flat
[npm-image]: https://img.shields.io/npm/v/semistandard.svg?style=flat-square
[npm-url]: https://npmjs.org/package/semistandard
[downloads-image]: https://img.shields.io/npm/dm/semistandard.svg?style=flat
[downloads-image]: https://img.shields.io/npm/dm/semistandard.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/semistandard
[feross/standard]: https://github.com/feross/standard
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc