@meteorlxy/eslint-config 2.0.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +42 -1
- package/package.json +4 -7
- package/CHANGELOG.md +0 -32
package/lib/index.js
CHANGED
|
@@ -38,7 +38,7 @@ module.exports = {
|
|
|
38
38
|
],
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Override airbnb-base rules to allow reassign params props
|
|
42
42
|
*
|
|
43
43
|
* @see https://eslint.org/docs/rules/no-param-reassign
|
|
44
44
|
* @see https://github.com/airbnb/javascript/issues/1217
|
|
@@ -50,5 +50,46 @@ module.exports = {
|
|
|
50
50
|
props: false,
|
|
51
51
|
},
|
|
52
52
|
],
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Override airbnb-base rules to ensure import order
|
|
56
|
+
*
|
|
57
|
+
* @see https://eslint.org/docs/rules/sort-imports
|
|
58
|
+
* @see https://github.com/airbnb/javascript/blob/4ee732639396362c6981b1aa4730934c3baa7919/packages/eslint-config-airbnb-base/rules/es6.js#L165-L172
|
|
59
|
+
*/
|
|
60
|
+
'sort-imports': [
|
|
61
|
+
'error',
|
|
62
|
+
{
|
|
63
|
+
ignoreCase: true,
|
|
64
|
+
ignoreDeclarationSort: true,
|
|
65
|
+
ignoreMemberSort: false,
|
|
66
|
+
allowSeparatedGroups: false,
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Override airbnb-base rules to ensure import order
|
|
72
|
+
*
|
|
73
|
+
* @see https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
|
|
74
|
+
* @see https://github.com/airbnb/javascript/blob/1ca21aba799699ba556bed058e3900514a9fbee3/packages/eslint-config-airbnb-base/rules/imports.js#L144-L147
|
|
75
|
+
*/
|
|
76
|
+
'import/order': [
|
|
77
|
+
'error',
|
|
78
|
+
{
|
|
79
|
+
'groups': [
|
|
80
|
+
'builtin',
|
|
81
|
+
'external',
|
|
82
|
+
'internal',
|
|
83
|
+
'parent',
|
|
84
|
+
'sibling',
|
|
85
|
+
'index',
|
|
86
|
+
],
|
|
87
|
+
'newlines-between': 'ignore',
|
|
88
|
+
'alphabetize': {
|
|
89
|
+
order: 'asc',
|
|
90
|
+
caseInsensitive: true,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
],
|
|
53
94
|
},
|
|
54
95
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meteorlxy/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "meteorlxy eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -15,18 +15,15 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"author": "meteorlxy <meteor.lxy@foxmail.com>",
|
|
17
17
|
"main": "lib/index.js",
|
|
18
|
-
"directories": {
|
|
19
|
-
"lib": "lib"
|
|
20
|
-
},
|
|
21
18
|
"files": [
|
|
22
19
|
"lib"
|
|
23
20
|
],
|
|
24
21
|
"dependencies": {
|
|
25
|
-
"eslint-config-airbnb-base": "^
|
|
26
|
-
"eslint-plugin-import": "^2.
|
|
22
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
23
|
+
"eslint-plugin-import": "^2.25.3"
|
|
27
24
|
},
|
|
28
25
|
"publishConfig": {
|
|
29
26
|
"access": "public"
|
|
30
27
|
},
|
|
31
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "774588f3d8beaf51afc0aeb121a18a06d82f5490"
|
|
32
29
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# 2.0.0 (2021-03-02)
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
- update rules and dependencies ([dc8def5](https://github.com/meteorlxy/configs/commit/dc8def5c54a71eb968029c37f6589e5668f04d52))
|
|
11
|
-
|
|
12
|
-
## [1.1.1](https://github.com/meteorlxy/configs/compare/@meteorlxy/eslint-config@1.1.0...@meteorlxy/eslint-config@1.1.1) (2020-12-16)
|
|
13
|
-
|
|
14
|
-
**Note:** Version bump only for package @meteorlxy/eslint-config
|
|
15
|
-
|
|
16
|
-
# [1.1.0](https://github.com/meteorlxy/configs/compare/@meteorlxy/eslint-config@1.0.1...@meteorlxy/eslint-config@1.1.0) (2020-06-15)
|
|
17
|
-
|
|
18
|
-
### Features
|
|
19
|
-
|
|
20
|
-
- update rules and dependencies ([dc8def5](https://github.com/meteorlxy/configs/commits/dc8def5c54a71eb968029c37f6589e5668f04d52))
|
|
21
|
-
|
|
22
|
-
## [1.0.1](https://github.com/meteorlxy/configs/compare/@meteorlxy/eslint-config@1.0.0...@meteorlxy/eslint-config@1.0.1) (2020-05-28)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @meteorlxy/eslint-config
|
|
25
|
-
|
|
26
|
-
# 1.0.0 (2020-05-28)
|
|
27
|
-
|
|
28
|
-
**Note:** Version bump only for package @meteorlxy/eslint-config
|
|
29
|
-
|
|
30
|
-
# 1.0.0 (2020-05-28)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @meteorlxy/eslint-config
|