Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-nicestyle

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-nicestyle

Eslint config for ES6 projects

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NiceStyle - Eslint config

A proposal of style and rules for javascript. This config is midly strict and you can overwrite or add rule if you want.

Install

npm install eslint-config-nicestyle

Usage

In your eslintrc.js:

{
    extends: "nicestyle",
    rules: {
        // you can overwrite rules here
    }
}

The package contains a .eslintrc.json file with all the rules so you can also modify it to create your own eslint configuration.

Config

Possible Errors

RuleErrorOptions
no-cond-assignerroralways
no-consoleerror
no-constant-conditionerror
no-control-regexerror
no-debuggerwarn
no-dupe-argserror
no-dupe-keyserror
no-duplicate-caseerror
no-emptyerror
no-empty-character-classerror
no-ex-assignerror
no-extra-boolean-casterror
no-extra-parenserror
no-extra-semierror
no-func-assignerror
no-inner-declarationserror
no-invalid-regexperror
no-irregular-whitespaceerror
no-negated-in-lhserror
no-obj-callserror
no-prototype-builtinserror
no-regex-spaceserror
no-sparse-arrayserror
no-unexpected-multilineerror
no-unreachableerror
no-unsafe-finallyerror
use-isnanerror
valid-jsdocoff
valid-typeoferror

Best Practices

RuleErrorOptions
accessor-pairserror
array-callback-returnerror
block-scoped-varerror
complexityerror30
consistent-returnerror
curlyerrorall
default-caseerror
dot-locationoff
dot-notationerror
eqeqeqerroralways
guard-for-inwarn
no-alerterror
no-callererror
no-case-declarationserror
no-div-regexerror
no-else-returnerror
no-empty-functionerror
no-empty-patternerror
no-eq-nullerror
no-evalerror
no-extend-nativeerror
no-extra-binderror
no-extra-labelerror
no-fallthrougherror
no-floating-decimalerror
no-implicit-coercionerror
no-implicit-globalserror
no-implied-evalerror
no-invalid-thiserror
no-iteratorerror
no-labelserror
no-lone-blockserror
no-loop-funcerror
no-magic-numbersoff
no-multi-spaceserror
no-multi-strerror
no-native-reassignerror
no-newerror
no-new-funcerror
no-new-wrapperserror
no-octalerror
no-octal-escapeerror
no-param-reassignerror
no-protoerror
no-redeclareerror
no-return-assignerror
no-script-urlerror
no-self-assignerror
no-self-compareerror
no-sequenceserror
no-throw-literalerror
no-unmodified-loop-conditionerror
no-unused-expressionserror
no-unused-labelserror
no-useless-callerror
no-useless-concaterror
no-useless-escapeerror
no-voiderror
no-warning-commentswarn
no-witherror
radixerror
vars-on-toperror
wrap-iifeerror
yodaerrornever

Strict

RuleErrorOptions
strictoffsafe

Variables

RuleErrorOptions
init-declarationsoffnever
no-catch-shadowerror
no-delete-varerror
no-label-varerror
no-restricted-globalserror
no-shadowerror
no-shadow-restricted-nameserror
no-undeferror
no-undef-initerror
no-undefinederror
no-unused-varserror
no-use-before-defineerror

Node.js and CommonJS

RuleErrorOptions
callback-returnerror
global-requireerror
handle-callback-errerror
no-mixed-requireserror
no-new-requireerror
no-path-concaterror
no-process-enverror
no-process-exiterror
no-restricted-moduleserror
no-syncerror

Stylistic Issues

RuleErrorOptions
array-bracket-spacingerrornever
block-spacingerrornever
brace-styleerror1tbs
camelcaseerror
comma-dangleerrornever
comma-spacingerror{ "before": false, "after": true }
comma-styleerrorlast
computed-property-spacingerrornever
consistent-thiserror
eol-lasterror
func-nameserroralways
func-styleerrorexpression
id-blacklisterrorerr
id-lengtherror{"min": 1, "max": 30}
id-matcherror
indenterror
jsx-quoteserror
key-spacingerror
keyword-spacingerror
linebreak-styleerror
lines-around-commenterror
max-deptherror
max-lenerror
max-lineserror
max-nested-callbackserror
max-paramserror
max-statementserror
max-statements-per-lineerror
new-caperror
new-parenserror
newline-after-varerror
newline-before-returnerror
newline-per-chained-callerror
no-array-constructorerror
no-bitwiseerror
no-continueerror
no-inline-commentserror
no-lonely-iferror
no-mixed-operatorserror
no-mixed-spaces-and-tabserror
no-multiple-empty-lineserror
no-negated-conditionerror
no-nested-ternaryerror
no-new-objecterror
no-pluspluserror
no-restricted-syntaxerror
no-spaced-funcerror
no-ternaryerror
no-trailing-spaceserror
no-underscore-dangleerror
no-unneeded-ternaryerror
no-whitespace-before-propertyerror
object-curly-newlineerror
object-curly-spacingerror
object-property-newlineerror
one-varerror
one-var-declaration-per-lineerror
operator-assignmenterror
operator-linebreakerror
padded-blockserror
quote-propserror
quoteserror
require-jsdocerror
semierror
semi-spacingerror
sort-varserror
space-before-blockserror
space-before-function-parenerror
space-in-parenserror
space-infix-opserror
space-unary-opserror
spaced-commenterror
unicode-bomerror
wrap-regexerror

ECMAScript 6

RuleErrorOptions
arrow-body-stylewarn"as-needed", { "requireReturnForObjectLiteral": true }
arrow-parenserroras-needed
arrow-spacingerror{ "before": true, "after": true }
constructor-supererror
generator-star-spacingerror{"before": true, "after": true}
no-class-assignerror
no-confusing-arrowerror
no-const-assignerror
no-dupe-class-memberserror
no-duplicate-importserror
no-new-symbolerror
no-restricted-importserror
no-this-before-supererror
no-useless-computed-keyerror
no-useless-constructorerror
no-useless-renameerror
no-varerror
object-shorthanderror
prefer-arrow-callbackerror
prefer-constoff
prefer-reflecterror
prefer-rest-paramserror
prefer-spreaderror
prefer-templateerror
require-yielderror
rest-spread-spacingerrornever
sort-importserror{"ignoreCase": false,"ignoreMemberSort": false,"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]}
template-curly-spacingerror
yield-star-spacingerror{"before": true, "after": false}

Keywords

FAQs

Package last updated on 17 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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