@elementx-ai/eslint-config 8.0.2 → 8.0.4
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/README.md +1 -1
- package/eslint.config.js +2 -2
- package/index.js +2 -2
- package/lib/common.js +26 -0
- package/lib/react.js +12 -0
- package/lib/typescript.js +9 -1
- package/package.json +1 -1
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.0.4](https://github.com/elementx-ai/eslint-config/compare/v8.0.3...v8.0.4) (2025-01-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Add files to lib rules ([#35](https://github.com/elementx-ai/eslint-config/issues/35)) ([5183e93](https://github.com/elementx-ai/eslint-config/commit/5183e9318cad3ac4b96666da9a0c575092a2c19d))
|
|
11
|
+
|
|
12
|
+
## [8.0.3](https://github.com/elementx-ai/eslint-config/compare/v8.0.2...v8.0.3) (2025-01-09)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* Update typescript projectService rule, eslint.config.js linting ([#33](https://github.com/elementx-ai/eslint-config/issues/33)) ([9a28c55](https://github.com/elementx-ai/eslint-config/commit/9a28c553cba6e93021459e25bb0a7e5295503191))
|
|
18
|
+
|
|
5
19
|
## [8.0.2](https://github.com/elementx-ai/eslint-config/compare/v8.0.1...v8.0.2) (2025-01-08)
|
|
6
20
|
|
|
7
21
|
|
package/README.md
CHANGED
package/eslint.config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _import from "eslint-plugin-import";
|
|
2
2
|
|
|
3
3
|
import config from "./index.js";
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ export default [
|
|
|
6
6
|
...config,
|
|
7
7
|
{
|
|
8
8
|
plugins: {
|
|
9
|
-
"import":
|
|
9
|
+
"import": _import,
|
|
10
10
|
},
|
|
11
11
|
rules: {
|
|
12
12
|
"import/no-default-export": "off",
|
package/index.js
CHANGED
package/lib/common.js
CHANGED
|
@@ -7,6 +7,18 @@ import globals from "globals";
|
|
|
7
7
|
export default [
|
|
8
8
|
eslint.configs.recommended,
|
|
9
9
|
{
|
|
10
|
+
files: [
|
|
11
|
+
"*.js",
|
|
12
|
+
"*.jsx",
|
|
13
|
+
"*.mjs",
|
|
14
|
+
"*.ts",
|
|
15
|
+
"*.tsx",
|
|
16
|
+
"**/*.js",
|
|
17
|
+
"**/*.jsx",
|
|
18
|
+
"**/*.mjs",
|
|
19
|
+
"**/*.ts",
|
|
20
|
+
"**/*.tsx",
|
|
21
|
+
],
|
|
10
22
|
languageOptions: {
|
|
11
23
|
globals: {
|
|
12
24
|
...globals.browser,
|
|
@@ -124,4 +136,18 @@ export default [
|
|
|
124
136
|
"padded-blocks": ["error", "never"],
|
|
125
137
|
},
|
|
126
138
|
},
|
|
139
|
+
{
|
|
140
|
+
files: [
|
|
141
|
+
"eslint.config.js",
|
|
142
|
+
"*eslint.config.js",
|
|
143
|
+
"**/eslint.config.js",
|
|
144
|
+
"**/*eslint.config.js",
|
|
145
|
+
],
|
|
146
|
+
plugins: {
|
|
147
|
+
"import": _import,
|
|
148
|
+
},
|
|
149
|
+
rules: {
|
|
150
|
+
"import/no-default-export": "off",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
127
153
|
];
|
package/lib/react.js
CHANGED
|
@@ -3,6 +3,18 @@ import reactRefresh from "eslint-plugin-react-refresh";
|
|
|
3
3
|
|
|
4
4
|
export default [
|
|
5
5
|
{
|
|
6
|
+
files: [
|
|
7
|
+
"*.js",
|
|
8
|
+
"*.jsx",
|
|
9
|
+
"*.mjs",
|
|
10
|
+
"*.ts",
|
|
11
|
+
"*.tsx",
|
|
12
|
+
"**/*.js",
|
|
13
|
+
"**/*.jsx",
|
|
14
|
+
"**/*.mjs",
|
|
15
|
+
"**/*.ts",
|
|
16
|
+
"**/*.tsx",
|
|
17
|
+
],
|
|
6
18
|
plugins: {
|
|
7
19
|
"react-hooks": reactHooks,
|
|
8
20
|
"react-refresh": reactRefresh,
|
package/lib/typescript.js
CHANGED
|
@@ -4,10 +4,18 @@ 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
13
|
languageOptions: {
|
|
8
14
|
parser: parser,
|
|
9
15
|
parserOptions: {
|
|
10
|
-
projectService:
|
|
16
|
+
projectService: {
|
|
17
|
+
allowDefaultProject: ["*.js"],
|
|
18
|
+
},
|
|
11
19
|
},
|
|
12
20
|
},
|
|
13
21
|
plugins: {
|