@elementx-ai/eslint-config 8.2.2 → 8.3.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,13 @@
2
2
 
3
3
  This repository adheres to semantic versioning and follows the conventions of [keepachangelog.com](http://keepachangelog.com)
4
4
 
5
+ ## [8.3.0](https://github.com/elementx-ai/eslint-config/compare/v8.2.2...v8.3.0) (2026-03-14)
6
+
7
+
8
+ ### Features
9
+
10
+ * Revert eslint-stylistic changes ([#48](https://github.com/elementx-ai/eslint-config/issues/48)) ([91f76b3](https://github.com/elementx-ai/eslint-config/commit/91f76b31505650a1f2119a0460152772a5606bb5))
11
+
5
12
  ## [8.2.2](https://github.com/elementx-ai/eslint-config/compare/v8.2.1...v8.2.2) (2026-03-14)
6
13
 
7
14
 
package/configs/js.js CHANGED
@@ -1,5 +1,5 @@
1
- import eslintConfigPrettier from "eslint-config-prettier/flat";
2
-
3
1
  import common from "../lib/common.js";
4
2
 
5
- export default [...common, eslintConfigPrettier];
3
+ export default [
4
+ ...common,
5
+ ];
package/configs/jsx.js CHANGED
@@ -1,6 +1,4 @@
1
- import eslintConfigPrettier from "eslint-config-prettier/flat";
2
-
3
- import common from "../lib/common.js";
1
+ import common from "../lib/common";
4
2
  import react from "../lib/react.js";
5
3
 
6
- export default [...common, ...react, eslintConfigPrettier];
4
+ export default [...common, ...react];
package/configs/ts.js CHANGED
@@ -1,6 +1,7 @@
1
- import eslintConfigPrettier from "eslint-config-prettier/flat";
2
-
3
1
  import common from "../lib/common.js";
4
2
  import typescript from "../lib/typescript.js";
5
3
 
6
- export default [...common, ...typescript, eslintConfigPrettier];
4
+ export default [
5
+ ...common,
6
+ ...typescript,
7
+ ];
package/configs/tsx.js CHANGED
@@ -1,7 +1,5 @@
1
- import eslintConfigPrettier from "eslint-config-prettier/flat";
2
-
3
1
  import common from "../lib/common.js";
4
2
  import react from "../lib/react.js";
5
3
  import typescript from "../lib/typescript.js";
6
4
 
7
- export default [...common, ...typescript, ...react, eslintConfigPrettier];
5
+ export default [...common, ...typescript, ...react];
package/lib/common.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import eslint from "@eslint/js";
2
+ import stylistic from "@stylistic/eslint-plugin";
2
3
  import _import from "eslint-plugin-import";
3
4
  import preferArrow from "eslint-plugin-prefer-arrow";
4
5
  import globals from "globals";
@@ -27,16 +28,31 @@ export default [
27
28
  plugins: {
28
29
  "prefer-arrow": preferArrow,
29
30
  import: _import,
31
+ "@stylistic": stylistic,
30
32
  },
31
33
  rules: {
32
34
  complexity: ["error", 10],
33
35
  eqeqeq: ["error", "smart"],
36
+ quotes: ["error", "double", { allowTemplateLiterals: true }],
34
37
  curly: ["error", "all"],
38
+ "brace-style": ["error", "1tbs"],
39
+ "eol-last": ["error", "always"],
40
+ "space-in-parens": ["error", "never"],
41
+ "no-multi-spaces": ["error"],
42
+ "no-trailing-spaces": ["error"],
43
+ "object-curly-spacing": ["error", "always"],
44
+ "array-bracket-spacing": ["error", "never"],
45
+ "space-before-blocks": ["error"],
35
46
  "import/no-default-export": "error",
36
47
  "arrow-body-style": ["error", "as-needed"],
37
48
  "no-return-await": ["error"],
38
49
  "default-case-last": ["error"],
39
50
  "no-console": "off",
51
+ "no-multiple-empty-lines": ["error", { max: 1, maxBOF: 0, maxEOF: 0 }],
52
+ "comma-spacing": ["error", { before: false, after: true }],
53
+ "generator-star-spacing": ["error", { before: false, after: true }],
54
+ "arrow-spacing": ["error", { before: true, after: true }],
55
+ "keyword-spacing": ["error", { before: true, after: true }],
40
56
  "no-unused-vars": [
41
57
  "error",
42
58
  {
@@ -45,6 +61,14 @@ export default [
45
61
  caughtErrorsIgnorePattern: "^_",
46
62
  },
47
63
  ],
64
+ indent: [
65
+ "error",
66
+ 2,
67
+ {
68
+ SwitchCase: 1,
69
+ },
70
+ ],
71
+ "@stylistic/semi": ["error", "always"],
48
72
  "prefer-const": [
49
73
  "error",
50
74
  {
@@ -59,6 +83,36 @@ export default [
59
83
  skipComments: true,
60
84
  },
61
85
  ],
86
+ "max-len": [
87
+ "error",
88
+ {
89
+ code: 120,
90
+ ignoreComments: true,
91
+ ignoreTrailingComments: true,
92
+ ignoreUrls: true,
93
+ ignoreStrings: true,
94
+ ignoreTemplateLiterals: true,
95
+ ignoreRegExpLiterals: true,
96
+ },
97
+ ],
98
+ "space-before-function-paren": [
99
+ "error",
100
+ {
101
+ anonymous: "never",
102
+ named: "never",
103
+ asyncArrow: "always",
104
+ },
105
+ ],
106
+ "comma-dangle": [
107
+ "error",
108
+ {
109
+ arrays: "always-multiline",
110
+ objects: "always-multiline",
111
+ imports: "always-multiline",
112
+ exports: "always-multiline",
113
+ functions: "never",
114
+ },
115
+ ],
62
116
  "prefer-arrow/prefer-arrow-functions": [
63
117
  "error",
64
118
  {
@@ -94,6 +148,7 @@ export default [
94
148
  ],
95
149
  },
96
150
  ],
151
+ "padded-blocks": ["error", "never"],
97
152
  },
98
153
  },
99
154
  {
package/lib/typescript.js CHANGED
@@ -1,3 +1,4 @@
1
+ import stylistic from "@stylistic/eslint-plugin";
1
2
  import typescript from "@typescript-eslint/eslint-plugin";
2
3
  import parser from "@typescript-eslint/parser";
3
4
 
@@ -13,10 +14,32 @@ export default [
13
14
  },
14
15
  },
15
16
  plugins: {
17
+ "@stylistic": stylistic,
16
18
  "@typescript-eslint": typescript,
17
19
  },
18
20
  rules: {
19
21
  "no-undef": "off",
22
+ "@stylistic/type-annotation-spacing": ["error"],
23
+ "@stylistic/indent": [
24
+ "error",
25
+ 2,
26
+ {
27
+ SwitchCase: 1,
28
+ },
29
+ ],
30
+ "@stylistic/member-delimiter-style": [
31
+ "error",
32
+ {
33
+ multiline: {
34
+ delimiter: "semi",
35
+ requireLast: true,
36
+ },
37
+ singleline: {
38
+ delimiter: "semi",
39
+ requireLast: false,
40
+ },
41
+ },
42
+ ],
20
43
  "@typescript-eslint/prefer-namespace-keyword": ["error"],
21
44
  "@typescript-eslint/no-unused-vars": [
22
45
  "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementx-ai/eslint-config",
3
- "version": "8.2.2",
3
+ "version": "8.3.0",
4
4
  "description": "ElementX's ESLint Config",
5
5
  "license": "Unlicense",
6
6
  "repository": {
@@ -18,9 +18,9 @@
18
18
  "main": "index.js",
19
19
  "type": "module",
20
20
  "dependencies": {
21
+ "@stylistic/eslint-plugin": "^2.12.1",
21
22
  "@typescript-eslint/eslint-plugin": "^8.19.1",
22
23
  "@typescript-eslint/parser": "^8.19.1",
23
- "eslint-config-prettier": "^10.1.3",
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",