@hellomouse/eslint-config
Advanced tools
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' | ||
} | ||
}; |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3203
35
0