@elementx-ai/eslint-config 8.0.4 → 8.1.1
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 +14 -0
- package/lib/common.js +23 -8
- package/lib/typescript.js +10 -8
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This repository adheres to semantic versioning and follows the conventions of [keepachangelog.com](http://keepachangelog.com)
|
|
4
4
|
|
|
5
|
+
## [8.1.1](https://github.com/elementx-ai/eslint-config/compare/v8.1.0...v8.1.1) (2025-01-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Turn off undef in TS, catch statement exceptions ([#39](https://github.com/elementx-ai/eslint-config/issues/39)) ([35b7ee4](https://github.com/elementx-ai/eslint-config/commit/35b7ee47c25219156e0ca9ada0a10caff31930fd))
|
|
11
|
+
|
|
12
|
+
## [8.1.0](https://github.com/elementx-ai/eslint-config/compare/v8.0.4...v8.1.0) (2025-01-24)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Add globals as dependency ([#37](https://github.com/elementx-ai/eslint-config/issues/37)) ([ab751d0](https://github.com/elementx-ai/eslint-config/commit/ab751d0dfe5db96144d0e5801c53719250a618f3))
|
|
18
|
+
|
|
5
19
|
## [8.0.4](https://github.com/elementx-ai/eslint-config/compare/v8.0.3...v8.0.4) (2025-01-09)
|
|
6
20
|
|
|
7
21
|
|
package/lib/common.js
CHANGED
|
@@ -27,14 +27,14 @@ export default [
|
|
|
27
27
|
},
|
|
28
28
|
plugins: {
|
|
29
29
|
"prefer-arrow": preferArrow,
|
|
30
|
-
|
|
30
|
+
import: _import,
|
|
31
31
|
"@stylistic": stylistic,
|
|
32
32
|
},
|
|
33
33
|
rules: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
complexity: ["error", 10],
|
|
35
|
+
eqeqeq: ["error", "smart"],
|
|
36
|
+
quotes: ["error", "double", { allowTemplateLiterals: true }],
|
|
37
|
+
curly: ["error", "all"],
|
|
38
38
|
"brace-style": ["error", "1tbs"],
|
|
39
39
|
"eol-last": ["error", "always"],
|
|
40
40
|
"space-in-parens": ["error", "never"],
|
|
@@ -53,7 +53,15 @@ export default [
|
|
|
53
53
|
"generator-star-spacing": ["error", { before: false, after: true }],
|
|
54
54
|
"arrow-spacing": ["error", { before: true, after: true }],
|
|
55
55
|
"keyword-spacing": ["error", { before: true, after: true }],
|
|
56
|
-
"
|
|
56
|
+
"no-unused-vars": [
|
|
57
|
+
"error",
|
|
58
|
+
{
|
|
59
|
+
destructuredArrayIgnorePattern: "^_",
|
|
60
|
+
argsIgnorePattern: "^_",
|
|
61
|
+
caughtErrorsIgnorePattern: "^_",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
indent: [
|
|
57
65
|
"error",
|
|
58
66
|
2,
|
|
59
67
|
{
|
|
@@ -130,7 +138,14 @@ export default [
|
|
|
130
138
|
"error",
|
|
131
139
|
{
|
|
132
140
|
"newlines-between": "always",
|
|
133
|
-
groups: [
|
|
141
|
+
groups: [
|
|
142
|
+
"external",
|
|
143
|
+
"builtin",
|
|
144
|
+
"internal",
|
|
145
|
+
"sibling",
|
|
146
|
+
"parent",
|
|
147
|
+
"index",
|
|
148
|
+
],
|
|
134
149
|
},
|
|
135
150
|
],
|
|
136
151
|
"padded-blocks": ["error", "never"],
|
|
@@ -144,7 +159,7 @@ export default [
|
|
|
144
159
|
"**/*eslint.config.js",
|
|
145
160
|
],
|
|
146
161
|
plugins: {
|
|
147
|
-
|
|
162
|
+
import: _import,
|
|
148
163
|
},
|
|
149
164
|
rules: {
|
|
150
165
|
"import/no-default-export": "off",
|
package/lib/typescript.js
CHANGED
|
@@ -4,12 +4,7 @@ import parser from "@typescript-eslint/parser";
|
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
{
|
|
7
|
-
files: [
|
|
8
|
-
"*.ts",
|
|
9
|
-
"*.tsx",
|
|
10
|
-
"**/*.ts",
|
|
11
|
-
"**/*.tsx",
|
|
12
|
-
],
|
|
7
|
+
files: ["*.ts", "*.tsx", "**/*.ts", "**/*.tsx"],
|
|
13
8
|
languageOptions: {
|
|
14
9
|
parser: parser,
|
|
15
10
|
parserOptions: {
|
|
@@ -23,6 +18,7 @@ export default [
|
|
|
23
18
|
"@typescript-eslint": typescript,
|
|
24
19
|
},
|
|
25
20
|
rules: {
|
|
21
|
+
"no-undef": "off",
|
|
26
22
|
"@stylistic/type-annotation-spacing": ["error"],
|
|
27
23
|
"@stylistic/indent": [
|
|
28
24
|
"error",
|
|
@@ -45,8 +41,14 @@ export default [
|
|
|
45
41
|
},
|
|
46
42
|
],
|
|
47
43
|
"@typescript-eslint/prefer-namespace-keyword": ["error"],
|
|
48
|
-
"@typescript-eslint/no-unused-vars": [
|
|
49
|
-
|
|
44
|
+
"@typescript-eslint/no-unused-vars": [
|
|
45
|
+
"error",
|
|
46
|
+
{
|
|
47
|
+
destructuredArrayIgnorePattern: "^_",
|
|
48
|
+
argsIgnorePattern: "^_",
|
|
49
|
+
caughtErrorsIgnorePattern: "^_",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
50
52
|
"@typescript-eslint/naming-convention": [
|
|
51
53
|
"error",
|
|
52
54
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementx-ai/eslint-config",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "ElementX's ESLint Config",
|
|
5
5
|
"license": "Unlicense",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"eslint-plugin-import": "^2.31.0",
|
|
25
25
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
26
26
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
27
|
-
"eslint-plugin-react-refresh": "^0.4.16"
|
|
27
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
28
|
+
"globals": "^15.14.0"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
31
|
"eslint": "^9.17.0"
|