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

Commit

Permalink
Ignore new lines between import groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Sova committed Oct 13, 2017
1 parent e01b9b4 commit 36c4c32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ module.exports = {
'no-unused-vars': ['warn', { ignoreRestSiblings: false }],
'semi': ['error', 'never'],
'no-confusing-arrow': 'off',

'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
functions: 'ignore',
}],

'operator-linebreak': ['error', 'after', {
overrides: {
'?': 'before',
Expand All @@ -43,14 +45,16 @@ module.exports = {
'jpeg', 'jpg', 'png', 'svg', 'bmp', 'gif',
].reduce((obj, ext) => Object.assign(obj, { [ext]: 'always' }), {}),
],

'import/order': ['warn', {
groups: [
['builtin', 'external'],
['internal', 'parent'],
['sibling', 'index']
],
'newlines-between': 'always',
'newlines-between': 'ignore',
}],

'import/newline-after-import': ['warn', { count: 2 }],
'import/prefer-default-export': 'off',
'import/no-named-as-default': 'off',
Expand Down
1 change: 0 additions & 1 deletion example/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { resolve } from 'fs'

import reinstall from '../index'

import four from './four'
import five from './five.json'

Expand Down

0 comments on commit 36c4c32

Please sign in to comment.