Socket
Socket
Sign inDemoInstall

eslint-config-egg

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-egg - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

5

History.md
3.0.2 / 2016-07-12
==================
* fix: change rules that should not use (#15)
3.0.1 / 2016-07-08

@@ -3,0 +8,0 @@ ==================

2

index.js

@@ -12,3 +12,3 @@ 'use strict';

},
'extends': [
extends: [
'./lib/rules/es6',

@@ -15,0 +15,0 @@ './lib/legacy',

@@ -12,3 +12,3 @@ 'use strict';

},
'extends': [
extends: [
'./rules/best-practices',

@@ -15,0 +15,0 @@ './rules/strict',

@@ -133,3 +133,3 @@ 'use strict';

*/
'dot-notation': [ 'error', { allowKeywords: false }],
'dot-notation': [ 'error', { allowKeywords: true }],

@@ -457,32 +457,6 @@ /**

/**
* Disallow magic numbers
* ‘Magic numbers’ are numbers that occur multiple time in
* code without an explicit meaning. They should preferably
* be replaced by named constants.
*
* Specially, these following patterns are permitted:
*
* 1. Array indexes
* 2. Number declarations that use `const` keyword
* 3. Setting object properties
*
* @see http://eslint.org/docs/rules/no-magic-numbers
* @since 3.0.0
* @example
*
* ```js
* // incorrect
* const foo = bar + 60 * 60 * 1000
*
* // correct
* const hourInMs = 60 * 60 * 1000;
* const foo = bar + hourInMs;
* ```
*/
'no-magic-numbers': [ 'error', {
ignore: [],
ignoreArrayIndexes: true,
enforceConst: true,
detectObjects: false,
}],
'no-magic-numbers': 'off',

@@ -615,6 +589,3 @@ /**

*/
'no-unused-expressions': [ 'error', {
allowShortCircuit: true,
allowTernary: true,
}],
'no-unused-expressions': 'off',

@@ -621,0 +592,0 @@ /**

@@ -231,3 +231,3 @@ /**

*/
'prefer-template': 'error',
'prefer-template': 'off',

@@ -234,0 +234,0 @@ /**

@@ -154,5 +154,5 @@ 'use strict';

overrides: {
'return': { after: true },
'throw': { after: true },
'case': { after: true },
return: { after: true },
throw: { after: true },
case: { after: true },
},

@@ -184,6 +184,3 @@ }],

*/
'max-len': [ 'error', 100, 2, {
ignoreUrls: true,
ignoreComments: false,
}],
'max-len': 'off',

@@ -422,3 +419,3 @@ /**

*/
'quote-props': [ 'error', 'as-needed', { keywords: true }],
'quote-props': [ 'error', 'as-needed', { keywords: false }],

@@ -425,0 +422,0 @@ /**

{
"name": "eslint-config-egg",
"version": "3.0.1",
"version": "3.0.2",
"description": "Node Style Guide for Egg.",

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

Sorry, the diff of this file is not supported yet

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