@rebeccastevens/eslint-config 1.6.9 → 1.7.1
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/README.md +2 -2
- package/dist/modern.cjs +39 -36
- package/dist/modern.mjs +39 -36
- package/dist/script.cjs +3 -3
- package/dist/script.mjs +3 -3
- package/dist/test.cjs +1 -1
- package/dist/test.mjs +1 -1
- package/package.json +25 -25
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ pnpm add -D \
|
|
|
48
48
|
eslint-import-resolver-typescript \
|
|
49
49
|
eslint-plugin-jsdoc \
|
|
50
50
|
eslint-plugin-markdown \
|
|
51
|
-
eslint-plugin-
|
|
51
|
+
eslint-plugin-n \
|
|
52
52
|
eslint-plugin-optimize-regex \
|
|
53
53
|
eslint-plugin-promise \
|
|
54
54
|
eslint-plugin-sonarjs \
|
|
@@ -90,7 +90,7 @@ pnpm add -D \
|
|
|
90
90
|
eslint-import-resolver-typescript \
|
|
91
91
|
eslint-plugin-jsdoc \
|
|
92
92
|
eslint-plugin-markdown \
|
|
93
|
-
eslint-plugin-
|
|
93
|
+
eslint-plugin-n \
|
|
94
94
|
eslint-plugin-optimize-regex \
|
|
95
95
|
eslint-plugin-promise \
|
|
96
96
|
eslint-plugin-sonarjs \
|
package/dist/modern.cjs
CHANGED
|
@@ -1051,71 +1051,74 @@ const settings$5 = {
|
|
|
1051
1051
|
"import/no-unresolved": "off",
|
|
1052
1052
|
"init-declarations": "off",
|
|
1053
1053
|
"jsdoc/require-jsdoc": "off",
|
|
1054
|
-
"
|
|
1055
|
-
"no-empty": "off",
|
|
1056
|
-
"no-invalid-this": "off",
|
|
1057
|
-
"no-undef": "off",
|
|
1058
|
-
"no-useless-return": "off",
|
|
1059
|
-
"node/handle-callback-err": "off",
|
|
1054
|
+
"n/handle-callback-err": "off",
|
|
1060
1055
|
"prefer-const": "off",
|
|
1061
1056
|
"prettier/prettier": "off",
|
|
1062
1057
|
"sonarjs/no-extra-arguments": "off",
|
|
1063
1058
|
"sonarjs/no-unused-collection": "off",
|
|
1064
1059
|
"unicorn/prefer-optional-catch-binding": "off",
|
|
1065
1060
|
"unicorn/prefer-top-level-await": "off",
|
|
1066
|
-
"
|
|
1067
|
-
"no-
|
|
1068
|
-
"
|
|
1061
|
+
"unicorn/switch-case-braces": "off",
|
|
1062
|
+
"no-console": "off",
|
|
1063
|
+
"no-empty": "off",
|
|
1064
|
+
"no-invalid-this": "off",
|
|
1065
|
+
"no-undef": "off",
|
|
1066
|
+
"no-useless-return": "off",
|
|
1067
|
+
"dot-notation": "off",
|
|
1068
|
+
"no-empty-function": "off",
|
|
1069
|
+
"no-throw-literal": "off",
|
|
1070
|
+
"no-unused-vars": "off",
|
|
1069
1071
|
},
|
|
1070
1072
|
},
|
|
1071
1073
|
],
|
|
1072
1074
|
};
|
|
1073
1075
|
|
|
1076
|
+
// eslint eslint-plugin-n (instead of eslint-plugin-node)
|
|
1074
1077
|
const settings$4 = {
|
|
1075
|
-
plugins: ["
|
|
1076
|
-
extends: ["plugin:
|
|
1078
|
+
plugins: ["n"],
|
|
1079
|
+
extends: ["plugin:n/recommended"],
|
|
1077
1080
|
rules: {
|
|
1078
|
-
"
|
|
1079
|
-
"
|
|
1081
|
+
"n/callback-return": "error",
|
|
1082
|
+
"n/exports-style": ["error", "module.exports"],
|
|
1080
1083
|
// Allow dynamic imports.
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1083
|
-
"
|
|
1084
|
-
"
|
|
1085
|
-
"
|
|
1084
|
+
"n/global-require": "off",
|
|
1085
|
+
"n/handle-callback-err": ["error", "^(err|error)$"],
|
|
1086
|
+
"n/no-callback-literal": "error",
|
|
1087
|
+
"n/no-missing-import": "off",
|
|
1088
|
+
"n/no-mixed-requires": [
|
|
1086
1089
|
"error",
|
|
1087
1090
|
{
|
|
1088
1091
|
allowCall: true,
|
|
1089
1092
|
grouping: true,
|
|
1090
1093
|
},
|
|
1091
1094
|
],
|
|
1092
|
-
"
|
|
1093
|
-
"
|
|
1094
|
-
"
|
|
1095
|
-
"
|
|
1096
|
-
"
|
|
1097
|
-
"
|
|
1098
|
-
"
|
|
1099
|
-
"
|
|
1100
|
-
"
|
|
1101
|
-
"
|
|
1102
|
-
"
|
|
1103
|
-
"
|
|
1104
|
-
"
|
|
1105
|
-
"
|
|
1106
|
-
"
|
|
1095
|
+
"n/no-new-require": "error",
|
|
1096
|
+
"n/no-path-concat": "error",
|
|
1097
|
+
"n/no-process-exit": "error",
|
|
1098
|
+
"n/no-sync": "error",
|
|
1099
|
+
"n/no-unpublished-import": "warn",
|
|
1100
|
+
"n/no-unsupported-features/es-syntax": "off",
|
|
1101
|
+
"n/prefer-global/buffer": ["error", "always"],
|
|
1102
|
+
"n/prefer-global/console": ["error", "always"],
|
|
1103
|
+
"n/prefer-global/process": ["error", "always"],
|
|
1104
|
+
"n/prefer-global/text-decoder": ["error", "always"],
|
|
1105
|
+
"n/prefer-global/text-encoder": ["error", "always"],
|
|
1106
|
+
"n/prefer-global/url": ["error", "always"],
|
|
1107
|
+
"n/prefer-global/url-search-params": ["error", "always"],
|
|
1108
|
+
"n/prefer-promises/dns": "error",
|
|
1109
|
+
"n/prefer-promises/fs": "error",
|
|
1107
1110
|
},
|
|
1108
1111
|
overrides: [
|
|
1109
1112
|
{
|
|
1110
1113
|
files: commonJsFiles,
|
|
1111
1114
|
rules: {
|
|
1112
|
-
"
|
|
1115
|
+
"n/no-missing-require": "off",
|
|
1113
1116
|
},
|
|
1114
1117
|
},
|
|
1115
1118
|
{
|
|
1116
1119
|
files: typescriptFiles,
|
|
1117
1120
|
rules: {
|
|
1118
|
-
"
|
|
1121
|
+
"n/no-unsupported-features/es-syntax": "off",
|
|
1119
1122
|
},
|
|
1120
1123
|
},
|
|
1121
1124
|
],
|
|
@@ -1187,7 +1190,7 @@ const settings = {
|
|
|
1187
1190
|
"unicorn/no-array-reduce": "off",
|
|
1188
1191
|
"unicorn/no-nested-ternary": "off",
|
|
1189
1192
|
"unicorn/no-null": "off",
|
|
1190
|
-
// "
|
|
1193
|
+
// "n/no-process-exit" covers this.
|
|
1191
1194
|
"unicorn/no-process-exit": "off",
|
|
1192
1195
|
"unicorn/no-useless-undefined": "off",
|
|
1193
1196
|
"unicorn/prefer-at": [
|
package/dist/modern.mjs
CHANGED
|
@@ -1049,71 +1049,74 @@ const settings$5 = {
|
|
|
1049
1049
|
"import/no-unresolved": "off",
|
|
1050
1050
|
"init-declarations": "off",
|
|
1051
1051
|
"jsdoc/require-jsdoc": "off",
|
|
1052
|
-
"
|
|
1053
|
-
"no-empty": "off",
|
|
1054
|
-
"no-invalid-this": "off",
|
|
1055
|
-
"no-undef": "off",
|
|
1056
|
-
"no-useless-return": "off",
|
|
1057
|
-
"node/handle-callback-err": "off",
|
|
1052
|
+
"n/handle-callback-err": "off",
|
|
1058
1053
|
"prefer-const": "off",
|
|
1059
1054
|
"prettier/prettier": "off",
|
|
1060
1055
|
"sonarjs/no-extra-arguments": "off",
|
|
1061
1056
|
"sonarjs/no-unused-collection": "off",
|
|
1062
1057
|
"unicorn/prefer-optional-catch-binding": "off",
|
|
1063
1058
|
"unicorn/prefer-top-level-await": "off",
|
|
1064
|
-
"
|
|
1065
|
-
"no-
|
|
1066
|
-
"
|
|
1059
|
+
"unicorn/switch-case-braces": "off",
|
|
1060
|
+
"no-console": "off",
|
|
1061
|
+
"no-empty": "off",
|
|
1062
|
+
"no-invalid-this": "off",
|
|
1063
|
+
"no-undef": "off",
|
|
1064
|
+
"no-useless-return": "off",
|
|
1065
|
+
"dot-notation": "off",
|
|
1066
|
+
"no-empty-function": "off",
|
|
1067
|
+
"no-throw-literal": "off",
|
|
1068
|
+
"no-unused-vars": "off",
|
|
1067
1069
|
},
|
|
1068
1070
|
},
|
|
1069
1071
|
],
|
|
1070
1072
|
};
|
|
1071
1073
|
|
|
1074
|
+
// eslint eslint-plugin-n (instead of eslint-plugin-node)
|
|
1072
1075
|
const settings$4 = {
|
|
1073
|
-
plugins: ["
|
|
1074
|
-
extends: ["plugin:
|
|
1076
|
+
plugins: ["n"],
|
|
1077
|
+
extends: ["plugin:n/recommended"],
|
|
1075
1078
|
rules: {
|
|
1076
|
-
"
|
|
1077
|
-
"
|
|
1079
|
+
"n/callback-return": "error",
|
|
1080
|
+
"n/exports-style": ["error", "module.exports"],
|
|
1078
1081
|
// Allow dynamic imports.
|
|
1079
|
-
"
|
|
1080
|
-
"
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1083
|
-
"
|
|
1082
|
+
"n/global-require": "off",
|
|
1083
|
+
"n/handle-callback-err": ["error", "^(err|error)$"],
|
|
1084
|
+
"n/no-callback-literal": "error",
|
|
1085
|
+
"n/no-missing-import": "off",
|
|
1086
|
+
"n/no-mixed-requires": [
|
|
1084
1087
|
"error",
|
|
1085
1088
|
{
|
|
1086
1089
|
allowCall: true,
|
|
1087
1090
|
grouping: true,
|
|
1088
1091
|
},
|
|
1089
1092
|
],
|
|
1090
|
-
"
|
|
1091
|
-
"
|
|
1092
|
-
"
|
|
1093
|
-
"
|
|
1094
|
-
"
|
|
1095
|
-
"
|
|
1096
|
-
"
|
|
1097
|
-
"
|
|
1098
|
-
"
|
|
1099
|
-
"
|
|
1100
|
-
"
|
|
1101
|
-
"
|
|
1102
|
-
"
|
|
1103
|
-
"
|
|
1104
|
-
"
|
|
1093
|
+
"n/no-new-require": "error",
|
|
1094
|
+
"n/no-path-concat": "error",
|
|
1095
|
+
"n/no-process-exit": "error",
|
|
1096
|
+
"n/no-sync": "error",
|
|
1097
|
+
"n/no-unpublished-import": "warn",
|
|
1098
|
+
"n/no-unsupported-features/es-syntax": "off",
|
|
1099
|
+
"n/prefer-global/buffer": ["error", "always"],
|
|
1100
|
+
"n/prefer-global/console": ["error", "always"],
|
|
1101
|
+
"n/prefer-global/process": ["error", "always"],
|
|
1102
|
+
"n/prefer-global/text-decoder": ["error", "always"],
|
|
1103
|
+
"n/prefer-global/text-encoder": ["error", "always"],
|
|
1104
|
+
"n/prefer-global/url": ["error", "always"],
|
|
1105
|
+
"n/prefer-global/url-search-params": ["error", "always"],
|
|
1106
|
+
"n/prefer-promises/dns": "error",
|
|
1107
|
+
"n/prefer-promises/fs": "error",
|
|
1105
1108
|
},
|
|
1106
1109
|
overrides: [
|
|
1107
1110
|
{
|
|
1108
1111
|
files: commonJsFiles,
|
|
1109
1112
|
rules: {
|
|
1110
|
-
"
|
|
1113
|
+
"n/no-missing-require": "off",
|
|
1111
1114
|
},
|
|
1112
1115
|
},
|
|
1113
1116
|
{
|
|
1114
1117
|
files: typescriptFiles,
|
|
1115
1118
|
rules: {
|
|
1116
|
-
"
|
|
1119
|
+
"n/no-unsupported-features/es-syntax": "off",
|
|
1117
1120
|
},
|
|
1118
1121
|
},
|
|
1119
1122
|
],
|
|
@@ -1185,7 +1188,7 @@ const settings = {
|
|
|
1185
1188
|
"unicorn/no-array-reduce": "off",
|
|
1186
1189
|
"unicorn/no-nested-ternary": "off",
|
|
1187
1190
|
"unicorn/no-null": "off",
|
|
1188
|
-
// "
|
|
1191
|
+
// "n/no-process-exit" covers this.
|
|
1189
1192
|
"unicorn/no-process-exit": "off",
|
|
1190
1193
|
"unicorn/no-useless-undefined": "off",
|
|
1191
1194
|
"unicorn/prefer-at": [
|
package/dist/script.cjs
CHANGED
|
@@ -13,9 +13,9 @@ const baseConfig = {
|
|
|
13
13
|
"functional/no-loop-statements": "off",
|
|
14
14
|
"functional/no-return-void": "off",
|
|
15
15
|
"functional/no-throw-statements": "off",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
16
|
+
"n/no-process-exit": "off",
|
|
17
|
+
"n/no-sync": "off",
|
|
18
|
+
"n/no-unpublished-import": "off",
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
|
package/dist/script.mjs
CHANGED
|
@@ -11,9 +11,9 @@ const baseConfig = {
|
|
|
11
11
|
"functional/no-loop-statements": "off",
|
|
12
12
|
"functional/no-return-void": "off",
|
|
13
13
|
"functional/no-throw-statements": "off",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
14
|
+
"n/no-process-exit": "off",
|
|
15
|
+
"n/no-sync": "off",
|
|
16
|
+
"n/no-unpublished-import": "off",
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
19
|
|
package/dist/test.cjs
CHANGED
|
@@ -21,7 +21,7 @@ const baseConfig = {
|
|
|
21
21
|
"jsdoc/require-jsdoc": "off",
|
|
22
22
|
"lines-between-class-members": "off",
|
|
23
23
|
"max-classes-per-file": "off",
|
|
24
|
-
"
|
|
24
|
+
"n/no-sync": "off",
|
|
25
25
|
"sonarjs/no-duplicate-string": "off",
|
|
26
26
|
"sonarjs/no-identical-functions": "off",
|
|
27
27
|
"unicorn/consistent-function-scoping": "off",
|
package/dist/test.mjs
CHANGED
|
@@ -19,7 +19,7 @@ const baseConfig = {
|
|
|
19
19
|
"jsdoc/require-jsdoc": "off",
|
|
20
20
|
"lines-between-class-members": "off",
|
|
21
21
|
"max-classes-per-file": "off",
|
|
22
|
-
"
|
|
22
|
+
"n/no-sync": "off",
|
|
23
23
|
"sonarjs/no-duplicate-string": "off",
|
|
24
24
|
"sonarjs/no-identical-functions": "off",
|
|
25
25
|
"unicorn/consistent-function-scoping": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebeccastevens/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "My ESLint shareable config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint config"
|
|
@@ -67,56 +67,56 @@
|
|
|
67
67
|
"deepmerge-ts": "^5.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@commitlint/cli": "17.
|
|
70
|
+
"@commitlint/cli": "17.5.1",
|
|
71
71
|
"@commitlint/config-conventional": "17.4.4",
|
|
72
72
|
"@cspell/dict-cryptocurrencies": "3.0.1",
|
|
73
73
|
"@rollup/plugin-commonjs": "24.0.1",
|
|
74
74
|
"@rollup/plugin-node-resolve": "15.0.1",
|
|
75
75
|
"@rollup/plugin-typescript": "11.0.0",
|
|
76
|
-
"@semantic-release/changelog": "6.0.
|
|
76
|
+
"@semantic-release/changelog": "6.0.3",
|
|
77
77
|
"@semantic-release/commit-analyzer": "9.0.2",
|
|
78
78
|
"@semantic-release/git": "10.0.1",
|
|
79
79
|
"@semantic-release/github": "8.0.7",
|
|
80
|
-
"@semantic-release/npm": "
|
|
80
|
+
"@semantic-release/npm": "10.0.2",
|
|
81
81
|
"@semantic-release/release-notes-generator": "10.0.3",
|
|
82
|
-
"@types/eslint": "8.
|
|
82
|
+
"@types/eslint": "8.37.0",
|
|
83
83
|
"@types/eslint-config-prettier": "^6.11.0",
|
|
84
84
|
"@types/eslint-plugin-prettier": "^3.1.0",
|
|
85
|
-
"@types/node": "18.15.
|
|
85
|
+
"@types/node": "18.15.11",
|
|
86
86
|
"@types/rollup-plugin-auto-external": "2.0.2",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
88
|
-
"@typescript-eslint/parser": "5.
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "5.57.0",
|
|
88
|
+
"@typescript-eslint/parser": "5.57.0",
|
|
89
89
|
"commitizen": "4.3.0",
|
|
90
|
-
"cspell": "6.
|
|
90
|
+
"cspell": "6.31.1",
|
|
91
91
|
"cz-conventional-changelog": "3.3.0",
|
|
92
|
-
"eslint": "8.
|
|
93
|
-
"eslint-config-prettier": "8.
|
|
94
|
-
"eslint-import-resolver-typescript": "3.5.
|
|
92
|
+
"eslint": "8.37.0",
|
|
93
|
+
"eslint-config-prettier": "8.8.0",
|
|
94
|
+
"eslint-import-resolver-typescript": "3.5.4",
|
|
95
95
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
96
|
-
"eslint-plugin-functional": "5.0.
|
|
96
|
+
"eslint-plugin-functional": "5.0.7",
|
|
97
97
|
"eslint-plugin-import": "2.27.5",
|
|
98
|
-
"eslint-plugin-jsdoc": "40.
|
|
98
|
+
"eslint-plugin-jsdoc": "40.1.1",
|
|
99
99
|
"eslint-plugin-markdown": "3.0.0",
|
|
100
|
-
"eslint-plugin-
|
|
100
|
+
"eslint-plugin-n": "15.7.0",
|
|
101
101
|
"eslint-plugin-optimize-regex": "1.2.1",
|
|
102
102
|
"eslint-plugin-prettier": "4.2.1",
|
|
103
103
|
"eslint-plugin-promise": "6.1.1",
|
|
104
|
-
"eslint-plugin-sonarjs": "0.
|
|
104
|
+
"eslint-plugin-sonarjs": "0.19.0",
|
|
105
105
|
"eslint-plugin-unicorn": "46.0.0",
|
|
106
106
|
"husky": "8.0.3",
|
|
107
|
-
"knip": "2.
|
|
107
|
+
"knip": "2.4.0",
|
|
108
108
|
"lint-staged": "13.2.0",
|
|
109
109
|
"markdownlint-cli": "0.33.0",
|
|
110
|
-
"prettier": "2.8.
|
|
110
|
+
"prettier": "2.8.7",
|
|
111
111
|
"prettier-plugin-packagejson": "2.4.3",
|
|
112
|
-
"rimraf": "4.4.
|
|
113
|
-
"rollup": "3.
|
|
112
|
+
"rimraf": "4.4.1",
|
|
113
|
+
"rollup": "3.20.2",
|
|
114
114
|
"rollup-plugin-auto-external": "2.0.0",
|
|
115
|
-
"semantic-release": "
|
|
115
|
+
"semantic-release": "21.0.0",
|
|
116
116
|
"ts-node": "10.9.1",
|
|
117
|
-
"tsconfig-paths": "4.
|
|
117
|
+
"tsconfig-paths": "4.2.0",
|
|
118
118
|
"tslib": "2.5.0",
|
|
119
|
-
"typescript": "5.0.
|
|
119
|
+
"typescript": "5.0.3"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
122
|
"@typescript-eslint/eslint-plugin": "*",
|
|
@@ -128,13 +128,13 @@
|
|
|
128
128
|
"eslint-plugin-import": "*",
|
|
129
129
|
"eslint-plugin-jsdoc": "*",
|
|
130
130
|
"eslint-plugin-markdown": "*",
|
|
131
|
-
"eslint-plugin-
|
|
131
|
+
"eslint-plugin-n": "*",
|
|
132
132
|
"eslint-plugin-optimize-regex": "*",
|
|
133
133
|
"eslint-plugin-promise": "*",
|
|
134
134
|
"eslint-plugin-sonarjs": "*",
|
|
135
135
|
"eslint-plugin-unicorn": "*"
|
|
136
136
|
},
|
|
137
|
-
"packageManager": "pnpm@
|
|
137
|
+
"packageManager": "pnpm@8.0.0",
|
|
138
138
|
"engines": {
|
|
139
139
|
"node": ">=18.12.1"
|
|
140
140
|
}
|