@lenne.tech/eslint-config-angular 0.0.9 → 0.0.12

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.
Files changed (2) hide show
  1. package/index.js +19 -13
  2. package/package.json +12 -10
package/index.js CHANGED
@@ -10,6 +10,7 @@ module.exports = {
10
10
  "plugin:@angular-eslint/recommended",
11
11
  // This is required if you use inline templates in Components
12
12
  "plugin:@angular-eslint/template/process-inline-templates",
13
+ "plugin:perfectionist/recommended-natural"
13
14
  ],
14
15
  rules: {
15
16
  /**
@@ -25,6 +26,7 @@ module.exports = {
25
26
  { type: "element", prefix: "app", style: "kebab-case" },
26
27
  ], // Enforces a consistent naming convention for Angular components
27
28
  "no-async-promise-executor": "warn", // Warns when using an async function as a Promise executor
29
+ "@typescript-eslint/no-explicit-any": "warn",
28
30
  "@typescript-eslint/no-unused-vars": "error", // Reports unused variables in TypeScript code
29
31
  },
30
32
  },
@@ -53,7 +55,17 @@ module.exports = {
53
55
  ], // Bans specific TypeScript comment syntax
54
56
  "@typescript-eslint/member-delimiter-style": [
55
57
  "error",
56
- { multiline: { delimiter: "semi" } },
58
+ {
59
+ multiline: {
60
+ delimiter: "semi",
61
+ requireLast: true,
62
+ },
63
+ singleline: {
64
+ delimiter: "semi",
65
+ requireLast: false,
66
+ },
67
+ multilineDetection: "brackets",
68
+ },
57
69
  ], // Enforces member delimiter style in TypeScript interfaces and type literals
58
70
  "@typescript-eslint/type-annotation-spacing": ["error", {}], // Enforces consistent spacing around type annotations in TypeScript
59
71
  "@typescript-eslint/consistent-type-definitions": ["error", "interface"], // Enforces consistent usage of type definitions in TypeScript (interface vs type)
@@ -98,29 +110,23 @@ module.exports = {
98
110
  "always",
99
111
  { exceptAfterSingleLine: true },
100
112
  ], // Requires an empty line between class members in TypeScript code, except after a single-line member
113
+ "@typescript-eslint/brace-style": [
114
+ "error",
115
+ "1tbs",
116
+ { allowSingleLine: false },
117
+ ],
101
118
 
102
119
  // normal
103
120
  "no-console": ["error", { allow: ["info", "debug", "warn", "error"] }], // Disallows or restricts the use of certain console methods
104
121
  "prefer-template": "error",
105
- curly: ["error"],
122
+ curly: ["error", "all"],
106
123
  "max-statements-per-line": ["error", { max: 1 }],
107
- "sort-imports": [
108
- "error",
109
- {
110
- ignoreCase: false,
111
- ignoreDeclarationSort: true,
112
- ignoreMemberSort: false,
113
- memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
114
- allowSeparatedGroups: false,
115
- },
116
- ],
117
124
 
118
125
  // off
119
126
  // TS
120
127
  "@typescript-eslint/consistent-indexed-object-style": "off", // Enforces consistent usage of index signatures or record types in TypeScript code
121
128
  "@typescript-eslint/naming-convention": "off", // Enforces naming conventions for variables, functions, classes, etc. in TypeScript code
122
129
  "@typescript-eslint/explicit-member-accessibility": "off", // Requires explicit accessibility modifiers on class members in TypeScript code
123
- "@typescript-eslint/no-explicit-any": "off", // Disallows the use of the 'any' type in TypeScript code
124
130
  "@typescript-eslint/parameter-properties": "off", // Requires parameter properties to be declared on the constructor in TypeScript code
125
131
  "@typescript-eslint/interface-name-prefix": "off", // Requires or disallows a prefix for interface names in TypeScript code
126
132
  "@typescript-eslint/no-empty-interface": "off", // Disallows empty interfaces in TypeScript code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/eslint-config-angular",
3
- "version": "0.0.9",
3
+ "version": "0.0.12",
4
4
  "description": "ESLint config of lenne.Tech for Angular",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -17,17 +17,19 @@
17
17
  "eslint": ">=7.4.0"
18
18
  },
19
19
  "dependencies": {
20
- "@angular-eslint/builder": "16.0.3",
21
- "@angular-eslint/eslint-plugin": "16.0.3",
22
- "@angular-eslint/eslint-plugin-template": "16.0.3",
23
- "@angular-eslint/schematics": "16.0.3",
24
- "@angular-eslint/template-parser": "16.0.3",
25
- "@typescript-eslint/eslint-plugin": "5.60.1",
26
- "@typescript-eslint/parser": "5.60.1",
27
- "eslint-config-prettier": "8.8.0"
20
+ "@angular-eslint/builder": "16.1.2",
21
+ "@angular-eslint/eslint-plugin": "16.1.2",
22
+ "@angular-eslint/eslint-plugin-template": "16.1.2",
23
+ "@angular-eslint/schematics": "16.1.2",
24
+ "@angular-eslint/template-parser": "16.1.2",
25
+ "@typescript-eslint/eslint-plugin": "6.7.0",
26
+ "@typescript-eslint/parser": "6.7.0",
27
+ "eslint-config-prettier": "9.0.0",
28
+ "eslint-plugin-perfectionist": "2.4.2",
29
+ "functions-have-names": "1.2.3"
28
30
  },
29
31
  "devDependencies": {
30
- "eslint": "8.43.0",
32
+ "eslint": "8.49.0",
31
33
  "watch": "1.0.2"
32
34
  }
33
35
  }