eslint-config-airbnb
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "eslint-config-airbnb", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Airbnb's ESLint config, following our styleguide", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -35,3 +35,3 @@ module.exports = { | ||
// disallow modifying variables that are declared using const | ||
'no-const-assign': 0, | ||
'no-const-assign': 2, | ||
// disallow to use this/super before super() calling in constructors. | ||
@@ -38,0 +38,0 @@ 'no-this-before-super': 0, |
module.exports = { | ||
'rules': { | ||
// require that all functions are run in strict mode | ||
// babel inserts `'use strict';` for us | ||
'strict': [2, 'never'] | ||
} | ||
}; |
@@ -24,3 +24,3 @@ module.exports = { | ||
// this option enforces minimum and maximum identifier lengths (variable names, property names etc.) | ||
'id-length': [2, {'min': 2, 'properties': 'never'}], | ||
'id-length': 0, | ||
// this option sets a specific tab width for your code | ||
@@ -53,3 +53,3 @@ 'indent': [2, 2], | ||
// disallow mixed spaces and tabs for indentation | ||
'no-mixed-spaces-and-tabs': 0, | ||
'no-mixed-spaces-and-tabs': 2, | ||
// disallow multiple empty lines | ||
@@ -93,4 +93,6 @@ 'no-multiple-empty-lines': [2, {'max': 2}], | ||
'sort-vars': 0, | ||
// require a space before certain keywords | ||
'space-before-keywords': [2, 'always'], | ||
// require a space after certain keywords | ||
'space-after-keywords': 2, | ||
'space-after-keywords': [2, 'always'], | ||
// require or disallow space before blocks | ||
@@ -97,0 +99,0 @@ 'space-before-blocks': 2, |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25286
608
18