You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2019/05/23 18:26:06 UTC

[incubator-annotator] 04/05: Lint blank lines after imports and between groups

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit f5d8b6318f5243453d982a8591d068c04b78cab8
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu May 23 14:22:42 2019 -0400

    Lint blank lines after imports and between groups
---
 .eslintrc.js  | 3 ++-
 demo/index.js | 1 +
 demo/mark.js  | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 1df57d4..bc7bd7d 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -15,9 +15,10 @@ module.exports = {
   plugins: ['import', 'prettier'],
   rules: {
     'import/extensions': ['error', 'always', { ignorePackages: true }],
+    'import/newline-after-import': 'error',
     'import/no-default-export': 'error',
     'import/no-internal-modules': 'error',
-    'import/order': 'error',
+    'import/order': ['error', { 'newlines-between': 'always' }],
     'import/unambiguous': 'error',
     'no-restricted-syntax': [
       'error',
diff --git a/demo/index.js b/demo/index.js
index e672d96..63d2b1d 100644
--- a/demo/index.js
+++ b/demo/index.js
@@ -17,6 +17,7 @@
 
 import * as fragment from '@annotator/fragment-identifier';
 import { describeTextQuoteByRange as describeRange } from '@annotator/dom';
+
 import { mark } from './mark.js';
 import { search } from './search.js';
 
diff --git a/demo/mark.js b/demo/mark.js
index 330e5c0..5ffbc2d 100644
--- a/demo/mark.js
+++ b/demo/mark.js
@@ -19,6 +19,7 @@
  */
 
 import highlightRange from 'dom-highlight-range';
+
 export function mark(range) {
   highlightRange(range, 'highlighted');
 }