@newsteam/eslint-config 0.0.233 → 0.0.235
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/dist/cjs/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
plugins: string[];
|
|
3
|
+
rules: {
|
|
4
|
+
"typescript-sort-keys/interface": (string | {
|
|
5
|
+
caseSensitive: boolean;
|
|
6
|
+
})[];
|
|
7
|
+
"typescript-sort-keys/string-enum": (string | {
|
|
8
|
+
caseSensitive: boolean;
|
|
9
|
+
})[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Sort interface and string enum keys
|
|
4
|
+
*
|
|
5
|
+
* https://www.npmjs.com/package/eslint-plugin-typescript-sort-keys
|
|
6
|
+
*/
|
|
7
|
+
module.exports = {
|
|
8
|
+
plugins: ["typescript-sort-keys"],
|
|
9
|
+
rules: {
|
|
10
|
+
/*
|
|
11
|
+
* Require interface keys to be sorted
|
|
12
|
+
*
|
|
13
|
+
* https://github.com/infctr/eslint-plugin-typescript-sort-keys/blob/HEAD/docs/rules/interface.md
|
|
14
|
+
*/
|
|
15
|
+
"typescript-sort-keys/interface": [
|
|
16
|
+
"error",
|
|
17
|
+
"asc",
|
|
18
|
+
{
|
|
19
|
+
caseSensitive: false,
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
/*
|
|
23
|
+
* require string enum members to be sorted
|
|
24
|
+
*
|
|
25
|
+
* https://github.com/infctr/eslint-plugin-typescript-sort-keys/blob/HEAD/docs/rules/string-enum.md
|
|
26
|
+
*/
|
|
27
|
+
"typescript-sort-keys/string-enum": [
|
|
28
|
+
"error",
|
|
29
|
+
"asc",
|
|
30
|
+
{
|
|
31
|
+
caseSensitive: false,
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.235",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"types": "./dist/cjs/index.d.ts",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@stylistic/eslint-plugin": "1.7.2",
|
|
58
58
|
"@types/eslint": "8.56.9",
|
|
59
|
-
"@types/jasmine": "
|
|
59
|
+
"@types/jasmine": "5.1.4",
|
|
60
60
|
"@types/node": "20.12.7",
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "7.7.0",
|
|
62
62
|
"@typescript-eslint/parser": "7.7.0",
|
|
63
63
|
"eslint": "8.57.0",
|
|
64
64
|
"eslint-find-rules": "4.1.0",
|
|
65
|
-
"eslint-plugin-array-func": "
|
|
65
|
+
"eslint-plugin-array-func": "4.0.0",
|
|
66
66
|
"eslint-plugin-css-modules": "2.12.0",
|
|
67
67
|
"eslint-plugin-es": "4.1.0",
|
|
68
68
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
@@ -83,11 +83,12 @@
|
|
|
83
83
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
84
84
|
"eslint-plugin-react-native": "4.1.0",
|
|
85
85
|
"eslint-plugin-react-perf": "3.3.2",
|
|
86
|
-
"eslint-plugin-react-refresh": "
|
|
86
|
+
"eslint-plugin-react-refresh": "0.4.6",
|
|
87
87
|
"eslint-plugin-security": "3.0.0",
|
|
88
88
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
89
|
+
"eslint-plugin-typescript-sort-keys": "3.2.0",
|
|
89
90
|
"eslint-plugin-unicorn": "52.0.0",
|
|
90
|
-
"jasmine": "
|
|
91
|
+
"jasmine": "5.1.0",
|
|
91
92
|
"json-schema": "0.4.0",
|
|
92
93
|
"typescript": "5.4.5"
|
|
93
94
|
},
|
|
@@ -96,7 +97,7 @@
|
|
|
96
97
|
"@typescript-eslint/eslint-plugin": "7.7.0",
|
|
97
98
|
"@typescript-eslint/parser": "7.7.0",
|
|
98
99
|
"eslint": "8.57.0",
|
|
99
|
-
"eslint-plugin-array-func": "
|
|
100
|
+
"eslint-plugin-array-func": "4.0.0",
|
|
100
101
|
"eslint-plugin-css-modules": "2.12.0",
|
|
101
102
|
"eslint-plugin-es": "4.1.0",
|
|
102
103
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
@@ -116,9 +117,10 @@
|
|
|
116
117
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
117
118
|
"eslint-plugin-react-native": "4.1.0",
|
|
118
119
|
"eslint-plugin-react-perf": "3.3.2",
|
|
119
|
-
"eslint-plugin-react-refresh": "
|
|
120
|
+
"eslint-plugin-react-refresh": "0.4.6",
|
|
120
121
|
"eslint-plugin-security": "3.0.0",
|
|
121
122
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
123
|
+
"eslint-plugin-typescript-sort-keys": "3.2.0",
|
|
122
124
|
"eslint-plugin-unicorn": "52.0.0",
|
|
123
125
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.14.0",
|
|
124
126
|
"json-schema": "0.4.0",
|