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

eslint-config-hapi

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-hapi - npm Package Compare versions

Comparing version 9.1.0 to 10.0.0

135

lib/index.js

@@ -9,69 +9,72 @@ 'use strict';

rules: {
'camelcase': 0,
'consistent-return': 0,
'vars-on-top': 0,
'new-cap': 0,
'no-console': 0,
'no-constant-condition': 2,
'no-empty': 0,
'no-native-reassign': 0,
'no-underscore-dangle': 0,
'no-undef': 0,
'no-process-exit': 0,
'no-unused-expressions': 0,
'no-regex-spaces': 0,
'no-catch-shadow': 0,
'no-lonely-if': 0,
'brace-style': [1, 'stroustrup'],
'no-shadow': [1, { 'allow': ['err', 'done'] }],
'no-unused-vars': [1, { vars: 'all', varsIgnorePattern: '^internals$', 'args': 'none' }],
'one-var': [2, 'never'],
'handle-callback-err': [2, '^(e|err|error)$'],
'hapi/hapi-capitalize-modules': [1, 'global-scope-only'],
'hapi/hapi-for-you': [1, { maxDepth: 3, startIterator: 'i' }],
'hapi/hapi-scope-start': 1,
'array-bracket-spacing': 1,
'dot-notation': 1,
'eol-last': 1,
'no-trailing-spaces': 1,
'no-eq-null': 1,
'no-extend-native': 1,
'no-redeclare': 1,
'no-loop-func': 1,
'yoda': [1, 'never'],
'sort-vars': 1,
'arrow-parens': [2, 'always'],
'arrow-spacing': [2, { 'before': true, 'after': true }],
'hapi/no-arrowception': 2,
'quotes': [2, 'single'],
'consistent-this': [2, 'self'],
'new-parens': 2,
'no-array-constructor': 2,
'no-confusing-arrow': 2,
'no-new-object': 2,
'no-spaced-func': 2,
'no-mixed-spaces-and-tabs': 2,
'keyword-spacing': [2, { 'before': true, 'after': true }],
'semi': [2, 'always'],
'semi-spacing': [2, { 'before': false, 'after': true }],
'space-infix-ops': 2,
'space-unary-ops': [1, { 'words': true, 'nonwords': false }],
'strict': [2, 'global'],
'eqeqeq': 2,
'curly': [2, 'all'],
'no-eval': 2,
'no-else-return': 2,
'no-return-assign': 2,
'no-new-wrappers': 2,
'comma-dangle': [2, 'never'],
'no-sparse-arrays': 2,
'no-ex-assign': 2,
'no-var': 2,
'prefer-arrow-callback': 2,
'prefer-const': 2,
'indent': [2, 4, { 'SwitchCase': 1 }],
'space-before-function-paren': [2, { 'anonymous': 'always', 'named': 'never' }],
'func-style': [2, 'expression'],
'object-curly-spacing': [2, 'always']
'camelcase': 'off',
'consistent-return': 'off',
'vars-on-top': 'off',
'new-cap': 'off',
'no-console': 'off',
'no-constant-condition': 'error',
'no-empty': 'off',
'no-native-reassign': 'off',
'no-underscore-dangle': 'off',
'no-undef': 'off',
'no-process-exit': 'off',
'no-unused-expressions': 'off',
'no-regex-spaces': 'off',
'no-catch-shadow': 'off',
'no-lonely-if': 'off',
'brace-style': ['warn', 'stroustrup'],
'no-shadow': ['warn', { 'allow': ['err', 'done'] }],
'no-unused-vars': ['warn', { vars: 'all', varsIgnorePattern: '^internals$', 'args': 'none' }],
'one-var': ['error', 'never'],
'handle-callback-err': ['error', '^(e|err|error)$'],
'hapi/hapi-capitalize-modules': ['warn', 'global-scope-only'],
'hapi/hapi-for-you': ['warn', { maxDepth: 3, startIterator: 'i' }],
'hapi/hapi-scope-start': 'warn',
'array-bracket-spacing': 'warn',
'dot-notation': 'warn',
'eol-last': 'warn',
'no-trailing-spaces': 'warn',
'no-eq-null': 'warn',
'no-extend-native': 'warn',
'no-redeclare': 'warn',
'no-loop-func': 'warn',
'yoda': ['warn', 'never'],
'sort-vars': 'warn',
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', { 'before': true, 'after': true }],
'hapi/no-arrowception': 'error',
'quotes': ['error', 'single'],
'consistent-this': ['error', 'self'],
'new-parens': 'error',
'no-array-constructor': 'error',
'no-confusing-arrow': 'error',
'no-new-object': 'error',
'no-spaced-func': 'error',
'no-mixed-spaces-and-tabs': 'error',
'keyword-spacing': ['error', { 'before': true, 'after': true }],
'semi': ['error', 'always'],
'semi-spacing': ['error', { 'before': false, 'after': true }],
'space-infix-ops': 'error',
'space-unary-ops': ['warn', { 'words': true, 'nonwords': false }],
'strict': ['error', 'global'],
'eqeqeq': 'error',
'curly': ['error', 'all'],
'no-eval': 'error',
'no-else-return': 'error',
'no-return-assign': 'error',
'no-new-wrappers': 'error',
'comma-dangle': ['error', 'never'],
'no-sparse-arrays': 'error',
'no-ex-assign': 'error',
'no-var': 'error',
'prefer-arrow-callback': 'error',
'prefer-const': 'error',
'indent': ['error', 4, { 'SwitchCase': 1 }],
'space-before-function-paren': ['error', { 'anonymous': 'always', 'named': 'never' }],
'func-style': ['error', 'expression'],
'object-curly-spacing': ['error', 'always'],
'object-shorthand': ['error', 'properties'],
'no-unsafe-finally': 'error',
'no-useless-computed-key': 'error'
}
};
{
"name": "eslint-config-hapi",
"version": "9.1.0",
"version": "10.0.0",
"description": "Shareable ESLint config for the hapi ecosystem",

@@ -18,4 +18,7 @@ "author": "Continuation Labs <contact@continuation.io> (http://continuation.io/)",

"lint": "belly-button -I 'node_modules/**' -I 'test/fixtures/**'",
"test": "npm run lint && lab -T test/transformer.js -v -t 100 -a code"
"test": "npm run lint && lab -v -t 100 -a code"
},
"engines": {
"node": ">=4.0.0"
},
"peerDependencies": {

@@ -25,7 +28,7 @@ "eslint-plugin-hapi": "4.x.x"

"devDependencies": {
"belly-button": "1.x.x",
"code": "1.x.x",
"eslint": "2.x.x",
"belly-button": "3.x.x",
"code": "3.x.x",
"eslint": "3.x.x",
"eslint-plugin-hapi": "4.x.x",
"lab": "6.x.x"
"lab": "10.x.x"
},

@@ -32,0 +35,0 @@ "keywords": [

@@ -18,11 +18,1 @@ # eslint-config-hapi

**Note:** `eslint-plugin-hapi` is a plugin containing custom hapi linting rules. It is a peer dependency because of the way ESLint handles shareable configs that include plugins and custom rules (see [eslint/eslint#3458](https://github.com/eslint/eslint/issues/3458) and [eslint/eslint#2518](https://github.com/eslint/eslint/issues/2518) for more background).
## Working with ES5
By default, `eslint-config-hapi` enforces several rules that require ES6 features. If you would like to use `eslint-config-hapi`, but are unable to abandon ES5, you can use ES5 config. To use this config, add `eslint-config-hapi` and `eslint-plugin-hapi` to your `package.json`. Then, in your ESLint configuration add:
```
{
"extends": "eslint-config-hapi/lib/es5"
}
```

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