mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 21:48:05 -05:00
[eslint config] [base] v5.0.0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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 }],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user