@lenne.tech/eslint-config-angular 0.0.10 → 0.0.13

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 +20 -12
  2. package/package.json +2 -1
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
  /**
@@ -47,6 +48,8 @@ module.exports = {
47
48
  ],
48
49
  ignorePatterns: ["**/*.js"],
49
50
  rules: {
51
+ "perfectionist/sort-classes": "off",
52
+
50
53
  // TS
51
54
  "@typescript-eslint/ban-ts-comment": [
52
55
  "error",
@@ -54,7 +57,17 @@ module.exports = {
54
57
  ], // Bans specific TypeScript comment syntax
55
58
  "@typescript-eslint/member-delimiter-style": [
56
59
  "error",
57
- { multiline: { delimiter: "semi" } },
60
+ {
61
+ multiline: {
62
+ delimiter: "semi",
63
+ requireLast: true,
64
+ },
65
+ singleline: {
66
+ delimiter: "semi",
67
+ requireLast: false,
68
+ },
69
+ multilineDetection: "brackets",
70
+ },
58
71
  ], // Enforces member delimiter style in TypeScript interfaces and type literals
59
72
  "@typescript-eslint/type-annotation-spacing": ["error", {}], // Enforces consistent spacing around type annotations in TypeScript
60
73
  "@typescript-eslint/consistent-type-definitions": ["error", "interface"], // Enforces consistent usage of type definitions in TypeScript (interface vs type)
@@ -99,22 +112,17 @@ module.exports = {
99
112
  "always",
100
113
  { exceptAfterSingleLine: true },
101
114
  ], // Requires an empty line between class members in TypeScript code, except after a single-line member
115
+ "@typescript-eslint/brace-style": [
116
+ "error",
117
+ "1tbs",
118
+ { allowSingleLine: false },
119
+ ],
102
120
 
103
121
  // normal
104
122
  "no-console": ["error", { allow: ["info", "debug", "warn", "error"] }], // Disallows or restricts the use of certain console methods
105
123
  "prefer-template": "error",
106
- curly: ["error"],
124
+ curly: ["error", "all"],
107
125
  "max-statements-per-line": ["error", { max: 1 }],
108
- "sort-imports": [
109
- "error",
110
- {
111
- ignoreCase: false,
112
- ignoreDeclarationSort: true,
113
- ignoreMemberSort: false,
114
- memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
115
- allowSeparatedGroups: false,
116
- },
117
- ],
118
126
 
119
127
  // off
120
128
  // TS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/eslint-config-angular",
3
- "version": "0.0.10",
3
+ "version": "0.0.13",
4
4
  "description": "ESLint config of lenne.Tech for Angular",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -25,6 +25,7 @@
25
25
  "@typescript-eslint/eslint-plugin": "6.7.0",
26
26
  "@typescript-eslint/parser": "6.7.0",
27
27
  "eslint-config-prettier": "9.0.0",
28
+ "eslint-plugin-perfectionist": "2.4.2",
28
29
  "functions-have-names": "1.2.3"
29
30
  },
30
31
  "devDependencies": {