New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-kswedberg

Package Overview
Dependencies
Maintainers
1
Versions
61
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 2.1.0 to 2.2.0

3

index.js

@@ -17,2 +17,4 @@ var rulesets = require('./rulesets');

impliedStrict: true,
experimentalObjectRestSpread: true,
generators: false,
}

@@ -27,3 +29,2 @@ },

globals: {
FM: true,
Modernizr: false

@@ -30,0 +31,0 @@ },

{
"name": "eslint-config-kswedberg",
"version": "2.1.0",
"version": "2.2.0",
"description": "A shareable eslint config",

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

@@ -18,2 +18,3 @@ var rulesets = require('./rulesets');

impliedStrict: true,
experimentalObjectRestSpread: true
}

@@ -20,0 +21,0 @@ },

@@ -23,8 +23,16 @@

'no-class-assign': 'warn',
'no-confusing-arrow': 'error',
'no-const-assign': 'error',
'no-duplicate-imports': 'warn',
'no-return-await': 'warn',
'no-this-before-super': 'warn',
'no-useless-computed-key': 'warn',
'no-useless-concat': 'warn',
'no-useless-rename': 'warn',
'no-var': 'error',
'prefer-arrow-callback': 'warn',
'prefer-rest-params': 'warn',
'prefer-spread': 'warn',
'prefer-template': 'warn',
'require-await': 'warn',
'require-await': 'off',
'rest-spread-spacing': [

@@ -38,4 +46,2 @@ 'warn',

],
'no-const-assign': 'error',
'no-confusing-arrow': 'error',
};

@@ -57,5 +63,13 @@

'no-caller': 'warn',
'no-else-return': ['error', { allowElseIf: true}],
'no-empty-function': 'warn',
'no-empty-pattern': 'warn',
'no-eq-null': 'off',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-invalid-this': 'off',
'no-iterator': 'error',
'no-lone-blocks': 'warn',
'no-loop-func': 'warn',
'no-multi-spaces': [

@@ -70,5 +84,49 @@ 'warn',

'no-multi-str': 'warn',
'no-new-wrappers': 'error',
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'acc', // for reduce accumulators
'prev', // for reduce accumulators
'previous', // for reduce accumulators
'event', // for e.returnvalue
'req', // for Express requests
'request', // for Express requests
'res', // for Express responses
'response', // for Express responses
]
}],
'no-proto': 'error',
'no-redeclare': 'error',
'no-restricted-properties': ['error', {
object: 'arguments',
property: 'callee',
message: 'arguments.callee is deprecated',
}, {
object: 'window',
property: 'isFinite',
message: 'Please use Number.isFinite instead',
}, {
object: 'window',
property: 'isNaN',
message: 'Please use Number.isNaN instead',
}, {
object: 'Math',
property: 'pow',
message: 'Use the exponentiation operator (**) instead.',
}],
'no-return-assign': ['error', 'always'],
'no-script-url': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-sequences': 'error',
'no-throw-literal': 'error',
'no-unreachable': 'error',
'no-unused-expressions': ['error', {
allowShortCircuit: false,
allowTernary: false,
}],
'no-useless-escape': 'warn',
'no-useless-return': 'warn',
'no-void': 'error',
'no-with': 'warn',

@@ -92,2 +150,4 @@ 'prefer-promise-reject-errors': [

module.exports.stylistic = {
'array-bracket-newline': ['warn', {multiline: true}],
'array-element-newline': ['warn', {multiline: true}],
'array-bracket-spacing': [

@@ -98,4 +158,6 @@ 'warn',

'brace-style': 'warn',
camelcase: 'warn',
camelcase: ['warn', {properties: never}],
'comma-spacing': ['error', { before: false, after: true }],
'eol-last': 'warn',
'func-call-spacing': ['warn', 'never'],
'func-style': [

@@ -105,2 +167,4 @@ 'warn',

],
'id-blacklist': ['e'],
'implicit-arrow-linebreak': ['error', 'beside'],
indent: [

@@ -120,2 +184,3 @@ 'warn',

{
beforeColon: false,
afterColon: true

@@ -168,2 +233,5 @@ }

],
'around-directive': ['warn', {
after: 'always',
}],
'max-params': [

@@ -173,3 +241,9 @@ 'error',

],
'new-cap': 'warn',
'new-cap': [
'warn',
{
newIsCap: true
}
],
'new-parens': 'warn',
'no-array-constructor': 'warn',

@@ -182,2 +256,3 @@ 'no-lonely-if': 'error',

'no-multiple-empty-lines': 'warn',
'no-new-object': 'warn',
'no-nested-ternary': 'warn',

@@ -189,3 +264,4 @@ 'no-trailing-spaces': 'warn',

allow: ['_this'],
allowAfterThis: true
allowAfterThis: true,
enforceInMethodNames: false,
}

@@ -201,3 +277,2 @@ ],

],
'quote-props': [

@@ -204,0 +279,0 @@ 'warn',

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