@andrewt03/eslint-typescript-rules 0.0.51 → 0.0.52
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/index.js +15 -2
- package/dist/index.mjs +15 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -244,8 +244,21 @@ var TYPESCRIPT_ESLINT_CONFIG_RULES = {
|
|
|
244
244
|
"@typescript-eslint/require-array-sort-compare": "error",
|
|
245
245
|
"require-await": "off",
|
|
246
246
|
"@typescript-eslint/require-await": "error",
|
|
247
|
-
"@typescript-eslint/no-invalid-void-type": "error"
|
|
248
|
-
// "@typescript-eslint/sort-type-constituents": "error"
|
|
247
|
+
"@typescript-eslint/no-invalid-void-type": "error",
|
|
248
|
+
// "@typescript-eslint/sort-type-constituents": "error",
|
|
249
|
+
/**
|
|
250
|
+
* @tutorial [Naming-Convention-Reference](https://typescript-eslint.io/rules/naming-convention/)
|
|
251
|
+
* New Rule: Intended for developers to use camelCase for boolean variables with only the allowed prefix-terms.
|
|
252
|
+
*/
|
|
253
|
+
"@typescript-eslint/naming-convention": [
|
|
254
|
+
"error",
|
|
255
|
+
{
|
|
256
|
+
selector: "variable",
|
|
257
|
+
types: ["boolean"],
|
|
258
|
+
format: ["camelCase"],
|
|
259
|
+
prefix: ["is", "should", "has", "can", "will"]
|
|
260
|
+
}
|
|
261
|
+
]
|
|
249
262
|
};
|
|
250
263
|
var UNICORN_ESLINT_CONFIG_RULES = {
|
|
251
264
|
"unicorn/no-console-spaces": "error",
|
package/dist/index.mjs
CHANGED
|
@@ -210,8 +210,21 @@ var TYPESCRIPT_ESLINT_CONFIG_RULES = {
|
|
|
210
210
|
"@typescript-eslint/require-array-sort-compare": "error",
|
|
211
211
|
"require-await": "off",
|
|
212
212
|
"@typescript-eslint/require-await": "error",
|
|
213
|
-
"@typescript-eslint/no-invalid-void-type": "error"
|
|
214
|
-
// "@typescript-eslint/sort-type-constituents": "error"
|
|
213
|
+
"@typescript-eslint/no-invalid-void-type": "error",
|
|
214
|
+
// "@typescript-eslint/sort-type-constituents": "error",
|
|
215
|
+
/**
|
|
216
|
+
* @tutorial [Naming-Convention-Reference](https://typescript-eslint.io/rules/naming-convention/)
|
|
217
|
+
* New Rule: Intended for developers to use camelCase for boolean variables with only the allowed prefix-terms.
|
|
218
|
+
*/
|
|
219
|
+
"@typescript-eslint/naming-convention": [
|
|
220
|
+
"error",
|
|
221
|
+
{
|
|
222
|
+
selector: "variable",
|
|
223
|
+
types: ["boolean"],
|
|
224
|
+
format: ["camelCase"],
|
|
225
|
+
prefix: ["is", "should", "has", "can", "will"]
|
|
226
|
+
}
|
|
227
|
+
]
|
|
215
228
|
};
|
|
216
229
|
var UNICORN_ESLINT_CONFIG_RULES = {
|
|
217
230
|
"unicorn/no-console-spaces": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andrewt03/eslint-typescript-rules",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"description": "Recommended ESLint Rules for general TypeScript, Node.js/Express.js, Angular, and React.js Projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|