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

@hellomouse/eslint-config

Package Overview
Dependencies
Maintainers
6
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hellomouse/eslint-config - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

35

index.js
module.exports = {
extends: [
'eslint:recommended',
'eslint-config-google',
'eslint-config-google'
],
rules: {
// highly subjective: dangling commas feel weird,
'comma-dangle': ['error', 'never'],
// so you can do n => +n instead of (n) => +n
'arrow-parens': ['error', 'as-needed'],
'indent': ['error', 2, { SwitchCase: 2 }],
// 2 spaces for indent
'indent': ['error', 2, { SwitchCase: 1 }],
// console.log() is often used in node.js
'no-console': 'off',
// spaces after curly brackets look cleaner ({a: 4} vs { a: 4 })
// also done by util.inspect
'object-curly-spacing': ['error', 'always'],
// a + b rather than a+b, but allow integer hints to not have spaces (eg. b|0)
'space-infix-ops': ['error', { int32Hint: true }],
'max-len': ['error', 120],
'eqeqeq': ['error', 'always']
// lines should generally be kept short but definitely shouldn't be over 120 characters
// allow long strings and regexes though
'max-len': ['error', {
code: 120,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true
}],
// == has weird behavior with types, always use === instead
'eqeqeq': ['error', 'always'],
// errors due to unintentional reassigning generally are quite rare, in addition,
// changing from const to let is a bit annoying
'prefer-const': 'off'
}
};

2

package.json
{
"name": "@hellomouse/eslint-config",
"version": "1.0.1",
"version": "1.0.2",
"description": "Official ESLint config for Hellomouse, based off of Google's config",

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

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