@elementx-ai/eslint-config 8.1.1 → 8.2.2
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/.github/workflows/release-please.yaml +16 -18
- package/.nvmrc +1 -0
- package/CHANGELOG.md +21 -0
- package/configs/js.js +3 -3
- package/configs/jsx.js +4 -2
- package/configs/ts.js +3 -4
- package/configs/tsx.js +3 -1
- package/lib/common.js +0 -55
- package/lib/typescript.js +0 -23
- package/package.json +2 -2
|
@@ -1,45 +1,43 @@
|
|
|
1
1
|
name: Release please
|
|
2
2
|
|
|
3
|
-
env:
|
|
4
|
-
RELEASE_TYPE: node
|
|
5
|
-
|
|
6
3
|
on:
|
|
7
4
|
push:
|
|
8
5
|
branches:
|
|
9
6
|
- master
|
|
10
7
|
- main
|
|
11
8
|
|
|
9
|
+
permissions:
|
|
10
|
+
id-token: write
|
|
11
|
+
contents: write
|
|
12
|
+
issues: write
|
|
13
|
+
pull-requests: write
|
|
14
|
+
|
|
12
15
|
jobs:
|
|
13
16
|
release-please:
|
|
14
17
|
runs-on: ubuntu-latest
|
|
15
18
|
outputs:
|
|
16
|
-
|
|
19
|
+
release_created: ${{ steps.release.outputs.release_created }}
|
|
17
20
|
major: ${{ steps.release.outputs.major }}
|
|
18
21
|
minor: ${{ steps.release.outputs.minor }}
|
|
19
22
|
patch: ${{ steps.release.outputs.patch }}
|
|
20
|
-
|
|
21
23
|
steps:
|
|
22
24
|
- name: Release please
|
|
23
|
-
uses: google-github-actions/release-please-action@
|
|
25
|
+
uses: google-github-actions/release-please-action@v4
|
|
24
26
|
id: release
|
|
25
27
|
with:
|
|
26
|
-
release-type:
|
|
27
|
-
package-name:
|
|
28
|
+
release-type: node
|
|
29
|
+
package-name: '@elementx-ai/eslint-config'
|
|
28
30
|
|
|
29
31
|
build-and-publish-npm:
|
|
30
32
|
runs-on: ubuntu-latest
|
|
31
33
|
needs: [release-please]
|
|
32
|
-
if: needs.release-please.outputs.
|
|
34
|
+
if: needs.release-please.outputs.release_created
|
|
33
35
|
steps:
|
|
34
|
-
- uses: actions/checkout@
|
|
35
|
-
|
|
36
|
-
- uses: actions/setup-node@v3
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
- uses: actions/setup-node@v4
|
|
37
38
|
with:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
node-version: 24
|
|
40
|
+
registry-url: 'https://registry.npmjs.org'
|
|
41
|
+
scope: '@elementx-ai'
|
|
41
42
|
- run: npm ci
|
|
42
|
-
|
|
43
43
|
- run: npm publish --access public
|
|
44
|
-
env:
|
|
45
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.2](https://github.com/elementx-ai/eslint-config/compare/v8.2.1...v8.2.2) (2026-03-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Explicit node version ([#46](https://github.com/elementx-ai/eslint-config/issues/46)) ([9054090](https://github.com/elementx-ai/eslint-config/commit/90540900ed95216d4f00c525f073863332305f80))
|
|
11
|
+
|
|
12
|
+
## [8.2.1](https://github.com/elementx-ai/eslint-config/compare/v8.2.0...v8.2.1) (2026-03-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* remove prettier-overridden style rules ([#44](https://github.com/elementx-ai/eslint-config/issues/44)) ([30f8421](https://github.com/elementx-ai/eslint-config/commit/30f8421670676d282747b0f6301ec9f82da34ae1))
|
|
18
|
+
|
|
19
|
+
## [8.2.0](https://github.com/elementx-ai/eslint-config/compare/v8.1.1...v8.2.0) (2026-03-11)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* Add prettier eslint config ([#41](https://github.com/elementx-ai/eslint-config/issues/41)) ([4992f91](https://github.com/elementx-ai/eslint-config/commit/4992f91d47e7241d8abc4e8e1d84d68251500ea7))
|
|
25
|
+
|
|
5
26
|
## [8.1.1](https://github.com/elementx-ai/eslint-config/compare/v8.1.0...v8.1.1) (2025-01-28)
|
|
6
27
|
|
|
7
28
|
|
package/configs/js.js
CHANGED
package/configs/jsx.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
2
|
+
|
|
3
|
+
import common from "../lib/common.js";
|
|
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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import eslint from "@eslint/js";
|
|
2
|
-
import stylistic from "@stylistic/eslint-plugin";
|
|
3
2
|
import _import from "eslint-plugin-import";
|
|
4
3
|
import preferArrow from "eslint-plugin-prefer-arrow";
|
|
5
4
|
import globals from "globals";
|
|
@@ -28,31 +27,16 @@ export default [
|
|
|
28
27
|
plugins: {
|
|
29
28
|
"prefer-arrow": preferArrow,
|
|
30
29
|
import: _import,
|
|
31
|
-
"@stylistic": stylistic,
|
|
32
30
|
},
|
|
33
31
|
rules: {
|
|
34
32
|
complexity: ["error", 10],
|
|
35
33
|
eqeqeq: ["error", "smart"],
|
|
36
|
-
quotes: ["error", "double", { allowTemplateLiterals: true }],
|
|
37
34
|
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"],
|
|
46
35
|
"import/no-default-export": "error",
|
|
47
36
|
"arrow-body-style": ["error", "as-needed"],
|
|
48
37
|
"no-return-await": ["error"],
|
|
49
38
|
"default-case-last": ["error"],
|
|
50
39
|
"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 }],
|
|
56
40
|
"no-unused-vars": [
|
|
57
41
|
"error",
|
|
58
42
|
{
|
|
@@ -61,14 +45,6 @@ export default [
|
|
|
61
45
|
caughtErrorsIgnorePattern: "^_",
|
|
62
46
|
},
|
|
63
47
|
],
|
|
64
|
-
indent: [
|
|
65
|
-
"error",
|
|
66
|
-
2,
|
|
67
|
-
{
|
|
68
|
-
SwitchCase: 1,
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
"@stylistic/semi": ["error", "always"],
|
|
72
48
|
"prefer-const": [
|
|
73
49
|
"error",
|
|
74
50
|
{
|
|
@@ -83,36 +59,6 @@ export default [
|
|
|
83
59
|
skipComments: true,
|
|
84
60
|
},
|
|
85
61
|
],
|
|
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
|
-
],
|
|
116
62
|
"prefer-arrow/prefer-arrow-functions": [
|
|
117
63
|
"error",
|
|
118
64
|
{
|
|
@@ -148,7 +94,6 @@ export default [
|
|
|
148
94
|
],
|
|
149
95
|
},
|
|
150
96
|
],
|
|
151
|
-
"padded-blocks": ["error", "never"],
|
|
152
97
|
},
|
|
153
98
|
},
|
|
154
99
|
{
|
package/lib/typescript.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import stylistic from "@stylistic/eslint-plugin";
|
|
2
1
|
import typescript from "@typescript-eslint/eslint-plugin";
|
|
3
2
|
import parser from "@typescript-eslint/parser";
|
|
4
3
|
|
|
@@ -14,32 +13,10 @@ export default [
|
|
|
14
13
|
},
|
|
15
14
|
},
|
|
16
15
|
plugins: {
|
|
17
|
-
"@stylistic": stylistic,
|
|
18
16
|
"@typescript-eslint": typescript,
|
|
19
17
|
},
|
|
20
18
|
rules: {
|
|
21
19
|
"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
|
-
],
|
|
43
20
|
"@typescript-eslint/prefer-namespace-keyword": ["error"],
|
|
44
21
|
"@typescript-eslint/no-unused-vars": [
|
|
45
22
|
"error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementx-ai/eslint-config",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.2",
|
|
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",
|
|
22
21
|
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
23
22
|
"@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",
|