You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

eslint-config-kswedberg

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-kswedberg - npm Package Compare versions

Comparing version

to
1.2.0

2

package.json
{
"name": "eslint-config-kswedberg",
"version": "1.1.6",
"version": "1.2.0",
"description": "A shareable eslint config",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -35,1 +35,13 @@ # eslint config

\* Note: eslint supports a few different formats for the `...rc` file, including JavaScript, JSON, and YAML. You may use any format that eslint supports.
## Disabling rules per file or line
I always forget how to do this, so I'm writing it down as a reminder to me. See more at [Configuring ESLint](http://eslint.org/docs/user-guide/configuring)
* Start disabling all rules for a file: `/* eslint-disable */`
* Enable rules later in same file: `/* eslint-enable */`
* Disable specific rules: `/* eslint-disable no-alert, no-console */`
* Disable all rules for current line (comment to the right): `// eslint-disable-line`
* Disable specific rules for current line: `// eslint-disable-line no-alert, quotes, semi`
* Disable all rules for next line: `// eslint-disable-next-line`
* Disable specific rules for next line: `// eslint-disable-next-line no-alert, quotes, semi`

@@ -21,9 +21,23 @@

'arrow-body-style': [
'error',
'always'
'warn',
'as-needed',
{
requireReturnForObjectLiteral: true
}
],
'arrow-spacing': 'warn',
'no-class-assign': 'warn',
'no-const-assign': 'warn',
'no-duplicate-imports': 'warn',
'no-this-before-super': 'warn',
'no-useless-concat': 'warn',
'prefer-template': 'warn',
'rest-spread-spacing': [
'warn',
'never'
],
'template-curly-spacing': [
'warn',
'never'
],
'no-const-assign': 'error',
'no-confusing-arrow': 'error',

@@ -30,0 +44,0 @@ };