@elementx-ai/eslint-config 8.1.0 → 8.2.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,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.2.0](https://github.com/elementx-ai/eslint-config/compare/v8.1.1...v8.2.0) (2026-03-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * Add prettier eslint config ([#41](https://github.com/elementx-ai/eslint-config/issues/41)) ([4992f91](https://github.com/elementx-ai/eslint-config/commit/4992f91d47e7241d8abc4e8e1d84d68251500ea7))
11
+
12
+ ## [8.1.1](https://github.com/elementx-ai/eslint-config/compare/v8.1.0...v8.1.1) (2025-01-28)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 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))
18
+
5
19
  ## [8.1.0](https://github.com/elementx-ai/eslint-config/compare/v8.0.4...v8.1.0) (2025-01-24)
6
20
 
7
21
 
package/configs/js.js CHANGED
@@ -1,5 +1,5 @@
1
+ import eslintConfigPrettier from "eslint-config-prettier/flat";
2
+
1
3
  import common from "../lib/common.js";
2
4
 
3
- export default [
4
- ...common,
5
- ];
5
+ export default [...common, eslintConfigPrettier];
package/configs/jsx.js CHANGED
@@ -1,4 +1,6 @@
1
+ import eslintConfigPrettier from "eslint-config-prettier/flat";
2
+
1
3
  import common from "../lib/common";
2
4
  import react from "../lib/react.js";
3
5
 
4
- export default [...common, ...react];
6
+ export default [...common, ...react, eslintConfigPrettier];
package/configs/ts.js CHANGED
@@ -1,7 +1,6 @@
1
+ import eslintConfigPrettier from "eslint-config-prettier/flat";
2
+
1
3
  import common from "../lib/common.js";
2
4
  import typescript from "../lib/typescript.js";
3
5
 
4
- export default [
5
- ...common,
6
- ...typescript,
7
- ];
6
+ export default [...common, ...typescript, eslintConfigPrettier];
package/configs/tsx.js CHANGED
@@ -1,5 +1,7 @@
1
+ import eslintConfigPrettier from "eslint-config-prettier/flat";
2
+
1
3
  import common from "../lib/common.js";
2
4
  import react from "../lib/react.js";
3
5
  import typescript from "../lib/typescript.js";
4
6
 
5
- export default [...common, ...typescript, ...react];
7
+ export default [...common, ...typescript, ...react, eslintConfigPrettier];
package/lib/common.js CHANGED
@@ -27,14 +27,14 @@ export default [
27
27
  },
28
28
  plugins: {
29
29
  "prefer-arrow": preferArrow,
30
- "import": _import,
30
+ import: _import,
31
31
  "@stylistic": stylistic,
32
32
  },
33
33
  rules: {
34
- "complexity": ["error", 10],
35
- "eqeqeq": ["error", "smart"],
36
- "quotes": ["error", "double", { allowTemplateLiterals: true }],
37
- "curly": ["error", "all"],
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
- "indent": [
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
  {
@@ -95,16 +103,6 @@ export default [
95
103
  asyncArrow: "always",
96
104
  },
97
105
  ],
98
- "comma-dangle": [
99
- "error",
100
- {
101
- arrays: "always-multiline",
102
- objects: "always-multiline",
103
- imports: "always-multiline",
104
- exports: "always-multiline",
105
- functions: "never",
106
- },
107
- ],
108
106
  "prefer-arrow/prefer-arrow-functions": [
109
107
  "error",
110
108
  {
@@ -130,7 +128,14 @@ export default [
130
128
  "error",
131
129
  {
132
130
  "newlines-between": "always",
133
- groups: ["external", "builtin", "internal", "sibling", "parent", "index"],
131
+ groups: [
132
+ "external",
133
+ "builtin",
134
+ "internal",
135
+ "sibling",
136
+ "parent",
137
+ "index",
138
+ ],
134
139
  },
135
140
  ],
136
141
  "padded-blocks": ["error", "never"],
@@ -144,7 +149,7 @@ export default [
144
149
  "**/*eslint.config.js",
145
150
  ],
146
151
  plugins: {
147
- "import": _import,
152
+ import: _import,
148
153
  },
149
154
  rules: {
150
155
  "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": ["error"],
49
- "@typescript-eslint/no-undef": "off",
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.1.0",
3
+ "version": "8.2.0",
4
4
  "description": "ElementX's ESLint Config",
5
5
  "license": "Unlicense",
6
6
  "repository": {
@@ -21,6 +21,7 @@
21
21
  "@stylistic/eslint-plugin": "^2.12.1",
22
22
  "@typescript-eslint/eslint-plugin": "^8.19.1",
23
23
  "@typescript-eslint/parser": "^8.19.1",
24
+ "eslint-config-prettier": "^10.1.3",
24
25
  "eslint-plugin-import": "^2.31.0",
25
26
  "eslint-plugin-prefer-arrow": "^1.2.3",
26
27
  "eslint-plugin-react-hooks": "^5.1.0",