Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
♻️ update eslint-plugin-babel (fix #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistadikay authored and Kir Belevich committed Nov 27, 2016
1 parent 5fd6e49 commit e3b1609
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = {
'no-global-assign': 2,
'no-implicit-coercion': 2,
'no-implied-eval': 2,
'no-invalid-this': 2,
// 'no-invalid-this': 2,
'no-iterator': 2,
'no-labels': 2,
'no-lone-blocks': 2,
Expand Down
10 changes: 4 additions & 6 deletions config/esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ module.exports = {
rules: {
// http://eslint.org/docs/rules/#ecmascript-6
strict: [ 2, 'never' ],
// 'arrow-parens': [ 2, 'as-needed' ],
'arrow-parens': [ 2, 'always' ],
'arrow-spacing': [ 2, { before: true, after: true } ],
'constructor-super': 1,
// 'generator-star-spacing': [ 2, 'before' ],
'generator-star-spacing': [ 2, 'before' ],
'no-class-assign': 2,
'no-confusing-arrow': 1,
'no-const-assign': 2,
Expand All @@ -25,7 +25,7 @@ module.exports = {
'no-useless-constructor': 2,
'no-useless-rename': 2,
'no-var': 2,
// 'object-shorthand': [ 2, 'always' ],
'object-shorthand': [ 2, 'always' ],
'prefer-arrow-callback': 2,
'prefer-const': [ 2, { destructuring: 'all' } ],
//'prefer-reflect': 1,
Expand All @@ -38,9 +38,7 @@ module.exports = {
'yield-star-spacing': [ 2, 'after' ],

// https://github.com/babel/eslint-plugin-babel
'babel/generator-star-spacing': [ 2, 'before' ],
'babel/object-shorthand': [ 2, 'always' ],
'babel/arrow-parens': [ 2, 'always' ],
'babel/no-invalid-this': 2,

// https://github.com/benmosher/eslint-plugin-import
'import/no-unresolved': 2,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"babel-eslint": "~6.1.2",
"eslint-plugin-babel": "~3.3.0",
"eslint-plugin-babel": "~4.0.0",
"eslint-plugin-fp": "~2.2.0",
"eslint-plugin-immutable": "~1.0.0",
"eslint-plugin-import": "~1.16.0",
Expand Down

0 comments on commit e3b1609

Please sign in to comment.