mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 00:28:25 -05:00
[eslint config] [base] [deps] update eslint
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
"babel-preset-airbnb": "^2.2.3",
|
||||
"babel-tape-runner": "^2.0.1",
|
||||
"editorconfig-tools": "^0.1.1",
|
||||
"eslint": "^3.16.1",
|
||||
"eslint": "^3.17.0",
|
||||
"eslint-find-rules": "^1.14.3",
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"in-publish": "^2.0.0",
|
||||
@@ -57,7 +57,7 @@
|
||||
"tape": "^4.6.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^3.16.1",
|
||||
"eslint": "^3.17.0",
|
||||
"eslint-plugin-import": "^2.2.0"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -13,6 +13,11 @@ module.exports = {
|
||||
// http://eslint.org/docs/rules/no-await-in-loop
|
||||
'no-await-in-loop': 'error',
|
||||
|
||||
// Disallow comparisons to negative zero
|
||||
// http://eslint.org/docs/rules/no-compare-neg-zero
|
||||
// TODO: enable (semver-major)
|
||||
'no-compare-neg-zero': 'off',
|
||||
|
||||
// disallow assignment in conditional expressions
|
||||
'no-cond-assign': ['error', 'always'],
|
||||
|
||||
|
||||
@@ -286,6 +286,10 @@ module.exports = {
|
||||
// http://eslint.org/docs/rules/no-whitespace-before-property
|
||||
'no-whitespace-before-property': 'error',
|
||||
|
||||
// enforce the location of single-line statements
|
||||
// http://eslint.org/docs/rules/nonblock-statement-body-position
|
||||
'nonblock-statement-body-position': 'off',
|
||||
|
||||
// require padding inside curly braces
|
||||
'object-curly-spacing': ['error', 'always'],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user