@kununu/eslint-config 3.0.0-beta.0 → 3.0.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/.github/workflows/release.yml +1 -1
- package/index.js +7 -2
- package/package.json +14 -8
package/index.js
CHANGED
|
@@ -86,9 +86,9 @@ const baseRules = {
|
|
|
86
86
|
// require newline at the end of files
|
|
87
87
|
'eol-last': ['error', 'always'],
|
|
88
88
|
|
|
89
|
-
// https://github.com/
|
|
89
|
+
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-default-props.md
|
|
90
90
|
// enforce defaultProps declarations alphabetical sorting
|
|
91
|
-
'react/
|
|
91
|
+
'react/sort-default-props': ['error', {
|
|
92
92
|
'ignoreCase': true
|
|
93
93
|
}],
|
|
94
94
|
|
|
@@ -180,6 +180,7 @@ module.exports = {
|
|
|
180
180
|
plugins: [
|
|
181
181
|
'@babel',
|
|
182
182
|
'react-hooks',
|
|
183
|
+
'sort-destructure-keys'
|
|
183
184
|
],
|
|
184
185
|
|
|
185
186
|
env: {
|
|
@@ -208,6 +209,7 @@ module.exports = {
|
|
|
208
209
|
plugins: [
|
|
209
210
|
'react-hooks',
|
|
210
211
|
'@typescript-eslint',
|
|
212
|
+
'typescript-sort-keys'
|
|
211
213
|
],
|
|
212
214
|
rules: {
|
|
213
215
|
...baseRules,
|
|
@@ -216,6 +218,9 @@ module.exports = {
|
|
|
216
218
|
'@typescript-eslint/object-curly-spacing': ['error', 'never'],
|
|
217
219
|
'@typescript-eslint/no-var-requires': 'off',
|
|
218
220
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
221
|
+
"typescript-sort-keys/interface": ['error', 'asc', {'caseSensitive': false, 'natural': false, requiredFirst: true}],
|
|
222
|
+
"typescript-sort-keys/string-enum": ['error', 'asc', {'caseSensitive': false, 'natural': false}],
|
|
223
|
+
"sort-destructure-keys/sort-destructure-keys": [2, { "caseSensitive": false }],
|
|
219
224
|
'no-use-before-define': 'off',
|
|
220
225
|
'@typescript-eslint/no-use-before-define': ['error'],
|
|
221
226
|
'react/require-default-props': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kununu/eslint-config",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "kununu's ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "kununu/eslint-config",
|
|
@@ -17,14 +17,18 @@
|
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/kununu/eslint-config/issues"
|
|
19
19
|
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": "18.x.x",
|
|
22
|
+
"npm": ">= 9.3.x"
|
|
23
|
+
},
|
|
20
24
|
"homepage": "https://github.com/kununu/eslint-config#readme",
|
|
21
25
|
"dependencies": {
|
|
22
|
-
"@babel/core": "7.21.
|
|
23
|
-
"@babel/eslint-parser": "7.21.
|
|
26
|
+
"@babel/core": "7.21.8",
|
|
27
|
+
"@babel/eslint-parser": "7.21.8",
|
|
24
28
|
"@babel/eslint-plugin": "7.19.1",
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "5.59.
|
|
26
|
-
"@typescript-eslint/parser": "5.59.
|
|
27
|
-
"eslint": "8.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "5.59.5",
|
|
30
|
+
"@typescript-eslint/parser": "5.59.5",
|
|
31
|
+
"eslint": "8.40.0",
|
|
28
32
|
"eslint-config-airbnb": "19.0.4",
|
|
29
33
|
"eslint-config-airbnb-typescript": "17.0.0",
|
|
30
34
|
"eslint-config-prettier": "8.8.0",
|
|
@@ -35,8 +39,10 @@
|
|
|
35
39
|
"eslint-plugin-prettier": "4.2.1",
|
|
36
40
|
"eslint-plugin-react": "7.32.2",
|
|
37
41
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
38
|
-
"eslint-plugin-
|
|
39
|
-
"
|
|
42
|
+
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
|
43
|
+
"eslint-plugin-testing-library": "5.11.0",
|
|
44
|
+
"eslint-plugin-typescript-sort-keys": "2.3.0",
|
|
45
|
+
"prettier": "2.8.8",
|
|
40
46
|
"typescript": "5.0.4"
|
|
41
47
|
}
|
|
42
48
|
}
|