Skip to content

Commit

Permalink
Add rules for eslint-plugin-import
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed May 5, 2016
1 parent 6cb4bc0 commit 5f6387a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions rules/es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ module.exports = {
'rules': {
// require parens in arrow function arguments
'arrow-parens': [2, 'as-needed'],
// ensure default import coupled with default export
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
'import/default': 2,
// disallow non-import statements appearing before import statements
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/imports-first.md
'import/imports-first': 2,
// ensure named imports coupled with named exports
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
'import/named': 2,
// ensure new line after last import/require in group
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
'import/newline-after-import': 2,
// disallow duplicate imports
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
'import/no-duplicates': 2,
// disallow arrow functions where they could be confused with comparisons
// http://eslint.org/docs/rules/no-confusing-arrow
'no-confusing-arrow': 0,
Expand Down

0 comments on commit 5f6387a

Please sign in to comment.