Socket
Socket
Sign inDemoInstall

eslint-config-nrk

Package Overview
Dependencies
152
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-RC1 to 4.0.0

2

package.json
{
"name": "eslint-config-nrk",
"version": "4.0.0-RC1",
"version": "4.0.0",
"description": "A shared ESLint configuration for and by JavaScript developers at NRK.",

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

@@ -7,5 +7,5 @@ module.exports = {

'class-methods-use-this': 0, // http://eslint.org/docs/rules/class-methods-use-this
complexity: [2, 9], // http://eslint.org/docs/rules/complexity
complexity: [2, 9], // http://eslint.org/docs/rules/complexity
'consistent-return': 2, // http://eslint.org/docs/rules/consistent-return
curly: 2, // http://eslint.org/docs/rules/curly
curly: 2, // http://eslint.org/docs/rules/curly
'default-case': 2, // http://eslint.org/docs/rules/default-case

@@ -18,3 +18,3 @@ 'dot-notation': [ // http://eslint.org/docs/rules/dot-notation

'dot-location': 0, // http://eslint.org/docs/rules/dot-location
eqeqeq: 2, // http://eslint.org/docs/rules/eqeqeq
eqeqeq: 2, // http://eslint.org/docs/rules/eqeqeq
'guard-for-in': 2, // http://eslint.org/docs/rules/guard-for-in

@@ -21,0 +21,0 @@ 'no-alert': 2, // http://eslint.org/docs/rules/no-alert

@@ -6,3 +6,3 @@ module.exports = {

'brace-style': 2, // http://eslint.org/docs/rules/brace-style
camelcase: [ // http://eslint.org/docs/rules/camelcase
camelcase: [ // http://eslint.org/docs/rules/camelcase
2, {

@@ -29,3 +29,3 @@ properties: 'always'

'id-match': 0, // http://eslint.org/docs/rules/id-match
indent: [ // http://eslint.org/docs/rules/indent
indent: [ // http://eslint.org/docs/rules/indent
2,

@@ -105,6 +105,6 @@ 2,

'quote-props': [2, 'as-needed'], // http://eslint.org/docs/rules/quote-props
quotes: [2, 'single'], // http://eslint.org/docs/rules/quotes
quotes: [2, 'single'], // http://eslint.org/docs/rules/quotes
'require-jsdoc': 0, // http://eslint.org/docs/rules/require-jsdoc
'semi-spacing': 2, // http://eslint.org/docs/rules/semi-spacing
semi: [2, 'always'], // http://eslint.org/docs/rules/semi.html
semi: [2, 'always'], // http://eslint.org/docs/rules/semi.html
'sort-keys': 0, // http://eslint.org/docs/rules/sort-keys

@@ -111,0 +111,0 @@ 'sort-vars': 0, // http://eslint.org/docs/rules/sort-vars

module.exports = {
rules: {
'init-declarations': 0, // http://eslint.org/docs/rules/init-declarations
'no-catch-shadow': 2, // http://eslint.org/docs/rules/no-catch-shadow
'no-delete-var': 2, // http://eslint.org/docs/rules/no-delete-var
'no-label-var': 2, // http://eslint.org/docs/rules/no-label-var
'no-restricted-globals': [ // http://eslint.org/docs/rules/no-restricted-globals
'init-declarations': 0, // http://eslint.org/docs/rules/init-declarations
'no-catch-shadow': 2, // http://eslint.org/docs/rules/no-catch-shadow
'no-delete-var': 2, // http://eslint.org/docs/rules/no-delete-var
'no-label-var': 2, // http://eslint.org/docs/rules/no-label-var
'no-restricted-globals': [ // http://eslint.org/docs/rules/no-restricted-globals
'error', 'event'
],
'no-shadow-restricted-names': 2, // http://eslint.org/docs/rules/no-shadow-restricted-names
'no-shadow': 0, // http://eslint.org/docs/rules/no-shadow
'no-undef-init': 2, // http://eslint.org/docs/rules/no-undef-init
'no-undef': 2, // http://eslint.org/docs/rules/no-undef
'no-undefined': 2, // http://eslint.org/docs/rules/no-undefined
'no-unused-vars': [2, { // http://eslint.org/docs/rules/no-unused-vars
vars: 'all', // ... checks all variables including those in global scope
args: 'after-used' // ... only the last argument must be used
'no-shadow-restricted-names': 2, // http://eslint.org/docs/rules/no-shadow-restricted-names
'no-shadow': 0, // http://eslint.org/docs/rules/no-shadow
'no-undef-init': 2, // http://eslint.org/docs/rules/no-undef-init
'no-undef': 2, // http://eslint.org/docs/rules/no-undef
'no-undefined': 2, // http://eslint.org/docs/rules/no-undefined
'no-unused-vars': [2, { // http://eslint.org/docs/rules/no-unused-vars
vars: 'all', // ... checks all variables including those in global scope
args: 'after-used' // ... only the last argument must be used
}],

@@ -19,0 +19,0 @@ 'no-use-before-define': [2, 'nofunc'], // http://eslint.org/docs/rules/no-use-before-define

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc