Skip to content

Commit

Permalink
[eslint config] [base] v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 24, 2016
1 parent 616233c commit 1fb300c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/eslint-config-airbnb-base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
5.0.0 / 2016-07-24
==================
- [breaking] enable `import/newline-after-import`
- [breaking] enable overlooked rules: `linebreak-style`, `new-parens`, `no-continue`, `no-lonely-if`, `operator-assignment`, `space-unary-ops`, `dot-location`, `no-extra-boolean-cast`, `no-this-before-super`, `require-yield`, `no-path-concat`, `no-label-var`, `no-void`, `constructor-super`, `prefer-spread`, `no-new-require`, `no-undef-init`, `no-unexpected-multiline`
- [deps] update `eslint`, `eslint-find-rules`, `eslint-plugin-import`, `babel-tape-runner`; add `babel-preset-airbnb`
- [patch] flesh out defaults: `jsx-quotes`
- [docs] update the peer dep install command to dynamically look up the right version numbers when installing peer deps
- [tests] fix prepublish scripts

4.0.2 / 2016-07-14
==================
- [fix] repair accidental comma-dangle change
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-airbnb-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-airbnb-base",
"version": "4.0.2",
"version": "5.0.0",
"description": "Airbnb's base JS ESLint config, following our styleguide",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions packages/eslint-config-airbnb-base/rules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ module.exports = {
// http://eslint.org/docs/rules/max-statements-per-line
'max-statements-per-line': [0, { max: 1 }],

// require multiline ternary
// http://eslint.org/docs/rules/multiline-ternary
'multiline-ternary': 0,

// require a capital letter for constructors
'new-cap': [2, { newIsCap: true }],

Expand Down

0 comments on commit 1fb300c

Please sign in to comment.