@tb-dev/eslint-config 2.0.3 → 2.1.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/dist/index.cjs CHANGED
@@ -339,6 +339,8 @@ async function typescript(options) {
339
339
  ],
340
340
  "@typescript-eslint/consistent-generic-constructors": ["error", "constructor"],
341
341
  "@typescript-eslint/consistent-indexed-object-style": ["error", "record"],
342
+ "consistent-return": "off",
343
+ "@typescript-eslint/consistent-return": "error",
342
344
  "@typescript-eslint/consistent-type-assertions": [
343
345
  "error",
344
346
  { assertionStyle: "as", objectLiteralTypeAssertions: "allow-as-parameter" }
@@ -362,6 +364,30 @@ async function typescript(options) {
362
364
  ],
363
365
  "@typescript-eslint/explicit-module-boundary-types": "off",
364
366
  "@typescript-eslint/method-signature-style": ["error", "property"],
367
+ camelcase: "off",
368
+ "@typescript-eslint/naming-convention": [
369
+ "error",
370
+ {
371
+ selector: [
372
+ "classicAccessor",
373
+ "classMethod",
374
+ "classProperty",
375
+ "function",
376
+ "objectLiteralMethod",
377
+ "parameter",
378
+ "parameterProperty",
379
+ "typeMethod",
380
+ "typeParameter",
381
+ "typeProperty",
382
+ "variable"
383
+ ],
384
+ format: ["camelCase"]
385
+ },
386
+ {
387
+ selector: ["class", "enum", "enumMember", "interface", "typeAlias"],
388
+ format: ["PascalCase"]
389
+ }
390
+ ],
365
391
  "@typescript-eslint/no-array-delete": "error",
366
392
  "@typescript-eslint/no-base-to-string": "error",
367
393
  "@typescript-eslint/no-confusing-non-null-assertion": "error",
package/dist/index.d.ts CHANGED
@@ -45,9 +45,7 @@ declare interface Ignores {
45
45
  ignores: string[];
46
46
  }
47
47
 
48
- declare type RuleOption = [Severity, string | Record<string, unknown>] | [Severity, string, Record<string, unknown>];
49
-
50
- declare type Rules = Record<string, Severity | RuleOption>;
48
+ declare type Rules = Record<string, Severity | any[]>;
51
49
 
52
50
  declare type Severity = 'error' | 'warn' | 'off' | 0 | 1;
53
51
 
package/dist/index.js CHANGED
@@ -316,6 +316,8 @@ async function typescript(options) {
316
316
  ],
317
317
  "@typescript-eslint/consistent-generic-constructors": ["error", "constructor"],
318
318
  "@typescript-eslint/consistent-indexed-object-style": ["error", "record"],
319
+ "consistent-return": "off",
320
+ "@typescript-eslint/consistent-return": "error",
319
321
  "@typescript-eslint/consistent-type-assertions": [
320
322
  "error",
321
323
  { assertionStyle: "as", objectLiteralTypeAssertions: "allow-as-parameter" }
@@ -339,6 +341,30 @@ async function typescript(options) {
339
341
  ],
340
342
  "@typescript-eslint/explicit-module-boundary-types": "off",
341
343
  "@typescript-eslint/method-signature-style": ["error", "property"],
344
+ camelcase: "off",
345
+ "@typescript-eslint/naming-convention": [
346
+ "error",
347
+ {
348
+ selector: [
349
+ "classicAccessor",
350
+ "classMethod",
351
+ "classProperty",
352
+ "function",
353
+ "objectLiteralMethod",
354
+ "parameter",
355
+ "parameterProperty",
356
+ "typeMethod",
357
+ "typeParameter",
358
+ "typeProperty",
359
+ "variable"
360
+ ],
361
+ format: ["camelCase"]
362
+ },
363
+ {
364
+ selector: ["class", "enum", "enumMember", "interface", "typeAlias"],
365
+ format: ["PascalCase"]
366
+ }
367
+ ],
342
368
  "@typescript-eslint/no-array-delete": "error",
343
369
  "@typescript-eslint/no-base-to-string": "error",
344
370
  "@typescript-eslint/no-confusing-non-null-assertion": "error",
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "private": false,
8
- "packageManager": "pnpm@8.15.2",
8
+ "packageManager": "pnpm@8.15.4",
9
9
  "homepage": "https://github.com/ferreira-tb/eslint-config",
10
10
  "repository": {
11
11
  "type": "git",
@@ -18,20 +18,20 @@
18
18
  "*.{?(c|m)@(j|t)s,css,vue,md,json}": "prettier --write"
19
19
  },
20
20
  "dependencies": {
21
- "@typescript-eslint/eslint-plugin": "^7.0.2",
22
- "@typescript-eslint/parser": "^7.0.2",
21
+ "@typescript-eslint/eslint-plugin": "^7.1.0",
22
+ "@typescript-eslint/parser": "^7.1.0",
23
23
  "eslint-config-prettier": "^9.1.0",
24
24
  "eslint-plugin-perfectionist": "^2.5.0",
25
25
  "eslint-plugin-unicorn": "^51.0.1",
26
26
  "eslint-plugin-vitest": "^0.3.22",
27
- "eslint-plugin-vue": "^9.21.1",
27
+ "eslint-plugin-vue": "^9.22.0",
28
28
  "globals": "^14.0.0",
29
29
  "vue-eslint-parser": "^9.4.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/eslint-config-prettier": "^6.11.3",
33
- "@types/node": "^20.11.19",
34
- "eslint": "^8.56.0",
33
+ "@types/node": "^20.11.20",
34
+ "eslint": "^8.57.0",
35
35
  "husky": "^9.0.11",
36
36
  "lint-staged": "^15.2.2",
37
37
  "prettier": "^3.2.5",
@@ -41,7 +41,7 @@
41
41
  "vite-plugin-dts": "^3.7.3"
42
42
  },
43
43
  "peerDependencies": {
44
- "eslint": "^8.56.0",
44
+ "eslint": "^8.57.0",
45
45
  "typescript": "^5.3.0"
46
46
  },
47
47
  "engines": {