@elementx-ai/eslint-config 6.2.0 → 7.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  This repository adheres to semantic versioning and follows the conventions of [keepachangelog.com](http://keepachangelog.com)
4
4
 
5
+ ## [7.0.0](https://github.com/elementx-ai/eslint-config/compare/v6.3.0...v7.0.0) (2022-11-13)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * Remove require-await rule, update ts-eslint deps for better decorator support (#11)
11
+
12
+ ### Features
13
+
14
+ * Remove require-await rule, update ts-eslint deps for better decorator support ([#11](https://github.com/elementx-ai/eslint-config/issues/11)) ([4c98fed](https://github.com/elementx-ai/eslint-config/commit/4c98fedfd694fa7072e1eea03d145be94e291354))
15
+
16
+ ## [6.3.0](https://github.com/elementx-ai/eslint-config/compare/v6.2.0...v6.3.0) (2022-11-11)
17
+
18
+
19
+ ### Features
20
+
21
+ * Reduce aggressiveness of typescript naming-convention ([#9](https://github.com/elementx-ai/eslint-config/issues/9)) ([62ee964](https://github.com/elementx-ai/eslint-config/commit/62ee964113e7b0b318e2725b4831e2cb4dc4a17f))
22
+
5
23
  ## [6.2.0](https://github.com/spark-64/eslint-config/compare/v6.1.0...v6.2.0) (2022-08-23)
6
24
 
7
25
 
package/lib/common.js CHANGED
@@ -23,7 +23,6 @@ module.exports = {
23
23
  "import/no-default-export": "error",
24
24
  "arrow-body-style": ["error", "as-needed"],
25
25
  "no-return-await": ["error"],
26
- "require-await": ["error"],
27
26
  "default-case-last": ["error"],
28
27
  "no-console": "off",
29
28
  "linebreak-style": "off",
package/lib/typescript.js CHANGED
@@ -38,19 +38,49 @@ module.exports = {
38
38
  leadingUnderscore: "allow",
39
39
  },
40
40
  {
41
- selector: ["typeLike"],
41
+ selector: ["typeLike", "enumMember"],
42
42
  format: ["PascalCase"],
43
43
  },
44
+ {
45
+ selector: ["parameter"],
46
+ modifiers: ["destructured"],
47
+ format: null,
48
+ },
49
+ {
50
+ selector: ["property", "objectLiteralProperty"],
51
+ format: null,
52
+ },
53
+ {
54
+ selector: [
55
+ "classProperty",
56
+ "objectLiteralProperty",
57
+ "typeProperty",
58
+ "classMethod",
59
+ "objectLiteralMethod",
60
+ "typeMethod",
61
+ "accessor",
62
+ "enumMember"
63
+ ],
64
+ modifiers: ["requiresQuotes"],
65
+ format: null,
66
+ },
44
67
  {
45
68
  selector: ["variable"],
46
69
  modifiers: ["const"],
47
- format: ["camelCase", "UPPER_CASE", "snake_case"],
70
+ types: ["function"],
71
+ format: ["camelCase", "PascalCase"],
48
72
  leadingUnderscore: "allow",
49
73
  },
50
74
  {
51
75
  selector: ["variable"],
52
76
  modifiers: ["destructured"],
53
- format: ["camelCase", "UPPER_CASE", "snake_case"],
77
+ format: null,
78
+ },
79
+ {
80
+ selector: ["variable"],
81
+ modifiers: ["const"],
82
+ types: ["boolean", "string", "number", "array"],
83
+ format: ["camelCase", "UPPER_CASE"],
54
84
  leadingUnderscore: "allow",
55
85
  },
56
86
  {
@@ -59,10 +89,6 @@ module.exports = {
59
89
  format: ["camelCase"],
60
90
  leadingUnderscore: "require",
61
91
  },
62
- {
63
- selector: ["interface"],
64
- format: ["PascalCase"],
65
- },
66
92
  ],
67
93
  },
68
94
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementx-ai/eslint-config",
3
- "version": "6.2.0",
3
+ "version": "7.0.0",
4
4
  "description": "Spark 64's eslint config",
5
5
  "license": "Unlicense",
6
6
  "repository": {
@@ -16,8 +16,8 @@
16
16
  ],
17
17
  "main": "index.js",
18
18
  "dependencies": {
19
- "@typescript-eslint/parser": "^5.0.0",
20
- "@typescript-eslint/eslint-plugin": "^5.0.0",
19
+ "@typescript-eslint/parser": "^5.42.1",
20
+ "@typescript-eslint/eslint-plugin": "^5.42.1",
21
21
  "eslint-plugin-import": "^2.26.0",
22
22
  "eslint-plugin-prefer-arrow": "^1.2.3"
23
23
  },