@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 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
@@ -22,7 +22,7 @@ import ts from "@elementx-ai/eslint-config/configs/ts.js";
22
22
 
23
23
  export default [
24
24
  ...ts,
25
- // anything from here will override myconfig
25
+ // anything from here will override ts
26
26
  {
27
27
  rules: {
28
28
  "no-unused-vars": "warn"
package/eslint.config.js CHANGED
@@ -1,4 +1,4 @@
1
- import importPlugin from "eslint-plugin-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": importPlugin,
9
+ "import": _import,
10
10
  },
11
11
  rules: {
12
12
  "import/no-default-export": "off",
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import node from "./configs/js.js";
1
+ import js from "./configs/js.js";
2
2
 
3
3
  export default [
4
- ...node,
4
+ ...js,
5
5
  ];
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: true,
16
+ projectService: {
17
+ allowDefaultProject: ["*.js"],
18
+ },
11
19
  },
12
20
  },
13
21
  plugins: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementx-ai/eslint-config",
3
- "version": "8.0.2",
3
+ "version": "8.0.4",
4
4
  "description": "ElementX's ESLint Config",
5
5
  "license": "Unlicense",
6
6
  "repository": {