Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit 96b540d

Browse files
committed
feat(base): add eslint-plugin-sort-imports-es6-autofix
1 parent 419463c commit 96b540d

File tree

3 files changed

+210
-47
lines changed

3 files changed

+210
-47
lines changed

packages/eslint-config/index.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
module.exports = {
22
extends: ['airbnb-base', 'prettier'],
3-
plugins: ['eslint-comments', 'no-use-extend-native', 'promise', 'unicorn'],
3+
plugins: [
4+
'eslint-comments',
5+
'no-use-extend-native',
6+
'promise',
7+
'sort-imports-es6-autofix',
8+
'unicorn',
9+
],
410
rules: {
511
// http://eslint.org/docs/rules
612
'no-warning-comments': [
@@ -86,6 +92,15 @@ module.exports = {
8692
'promise/prefer-await-to-callbacks': 'off',
8793
'promise/prefer-await-to-then': 'error',
8894
'promise/valid-params': 'error',
95+
// https://github.com/marudor/eslint-plugin-sort-imports-es6-autofix
96+
'sort-imports-es6-autofix/sort-imports-es6': [
97+
'error',
98+
{
99+
ignoreCase: false,
100+
ignoreMemberSort: true,
101+
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
102+
},
103+
],
89104
// https://github.com/sindresorhus/eslint-plugin-unicorn
90105
'unicorn/catch-error-name': 'off',
91106
'unicorn/custom-error-definition': 'off',

packages/eslint-config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"eslint-plugin-no-use-extend-native": "^0.3.12",
5050
"eslint-plugin-promise": "^4.0.1",
5151
"eslint-plugin-ramda": "^2.5.1",
52+
"eslint-plugin-sort-imports-es6-autofix": "^0.3.0",
5253
"eslint-plugin-unicorn": "^6.0.1"
5354
},
5455
"devDependencies": {}

0 commit comments

Comments
 (0)