Skip to content

Commit

Permalink
Update ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Aug 2, 2016
1 parent e6ccdf1 commit ecd27c4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 19 deletions.
31 changes: 20 additions & 11 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"import"
],
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:import/errors"
],
"settings": {
"import/ignore": [
"node_modules",
"modules/index.js"
]
},
"rules": {
"array-bracket-spacing": [2, "always"],
"comma-dangle": [2, "never"],
"curly": 0,
"eqeqeq": [1, "smart"],
"no-param-reassign": 0,
"no-restricted-syntax": 0,
"one-var": 0,
"one-var-declaration-per-line": 0,
"semi": [2, "never"],
"spaced-comment": 0
"array-bracket-spacing": [ 2, "always" ],
"semi": [ 2, "never" ]
}
}
2 changes: 1 addition & 1 deletion modules/Expectation.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ const deprecate = (fn, message) => {
return function (...args) {
if (!alreadyWarned) {
alreadyWarned = true
console.warn(message)
console.warn(message) // eslint-disable-line no-console
}

return fn.apply(this, args)
Expand Down
2 changes: 1 addition & 1 deletion modules/TestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import objectKeys from 'object-keys'
* equal, if any; the empty string otherwise.
*/
export const whyNotEqual = (a, b) =>
(a == b ? '' : whyNotStrictlyEqual(a, b))
(a == b ? '' : whyNotStrictlyEqual(a, b)) // eslint-disable-line eqeqeq

/**
* Returns true if the given arguments are *conceptually* equal.
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@
},
"devDependencies": {
"babel-cli": "^6.6.5",
"babel-eslint": "^6.0.0",
"babel-eslint": "^6.1.2",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"eslint": "^3.1.1",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.7.0",
"eslint-plugin-jsx-a11y": "^1.2.0",
"eslint-plugin-react": "^5.1.1",
"eslint": "^3.2.2",
"eslint-plugin-import": "^1.12.0",
"gzip-size": "^3.0.0",
"in-publish": "^2.0.0",
"karma": "^1.1.2",
Expand Down

0 comments on commit ecd27c4

Please sign in to comment.