@szum-tech/eslint-config 2.1.0 → 2.1.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/README.md CHANGED
@@ -226,6 +226,7 @@ jobs:
226
226
  ![NPM (prod) Dependency Version](https://img.shields.io/npm/dependency-version/%40szum-tech%2Feslint-config/eslint-plugin-testing-library)
227
227
  ![NPM (prod) Dependency Version](https://img.shields.io/npm/dependency-version/%40szum-tech%2Feslint-config/globals)
228
228
  ![NPM (prod) Dependency Version](https://img.shields.io/npm/dependency-version/%40szum-tech%2Feslint-config/typescript-eslint)
229
+ ![NPM (prod) Dependency Version](https://img.shields.io/npm/dependency-version/%40szum-tech%2Feslint-config/eslint-import-resolver-typescript)
229
230
 
230
231
  ## Changelog
231
232
 
package/dist/index.cjs CHANGED
@@ -50,6 +50,8 @@ var hasJestDom = has("@testing-library/jest-dom");
50
50
  var hasVitest = has("vitest");
51
51
  var hasPlaywright = has("@playwright/test");
52
52
  var hasStorybook = has("storybook");
53
+ var typeScriptExtensions = [".ts", ".cts", ".mts", ".tsx"];
54
+ var allExtensions = [...typeScriptExtensions, ".js", ".jsx", ".mjs", ".cjs"];
53
55
  var vitestFiles = ["**/__tests__/**/*", "**/*.test.*"];
54
56
  var testFiles = ["**/tests/**", ...vitestFiles];
55
57
  var playwrightFiles = ["**/e2e/**", "**/*.e2e.*"];
@@ -70,9 +72,11 @@ var config = [
70
72
  {
71
73
  name: "eslint/config/base&import",
72
74
  plugins: {
73
- import: importPlugin__default.default
75
+ import: importPlugin__default.default.flatConfigs.recommended.plugins.import
74
76
  },
75
77
  languageOptions: {
78
+ ecmaVersion: "latest",
79
+ sourceType: "module",
76
80
  globals: {
77
81
  ...globals__default.default.browser,
78
82
  ...globals__default.default.node
@@ -236,6 +240,18 @@ var config = [
236
240
  plugins: {
237
241
  "@typescript-eslint": tsEslint__default.default.plugin
238
242
  },
243
+ settings: {
244
+ "import/extensions": allExtensions,
245
+ "import/external-module-folders": ["node_modules", "node_modules/@types"],
246
+ "import/parsers": {
247
+ "@typescript-eslint/parser": typeScriptExtensions
248
+ },
249
+ "import/resolver": {
250
+ node: {
251
+ extensions: allExtensions
252
+ }
253
+ }
254
+ },
239
255
  rules: {
240
256
  "no-unused-expressions": OFF,
241
257
  "no-array-constructor": OFF,
package/dist/index.js CHANGED
@@ -32,6 +32,8 @@ var hasJestDom = has("@testing-library/jest-dom");
32
32
  var hasVitest = has("vitest");
33
33
  var hasPlaywright = has("@playwright/test");
34
34
  var hasStorybook = has("storybook");
35
+ var typeScriptExtensions = [".ts", ".cts", ".mts", ".tsx"];
36
+ var allExtensions = [...typeScriptExtensions, ".js", ".jsx", ".mjs", ".cjs"];
35
37
  var vitestFiles = ["**/__tests__/**/*", "**/*.test.*"];
36
38
  var testFiles = ["**/tests/**", ...vitestFiles];
37
39
  var playwrightFiles = ["**/e2e/**", "**/*.e2e.*"];
@@ -52,9 +54,11 @@ var config = [
52
54
  {
53
55
  name: "eslint/config/base&import",
54
56
  plugins: {
55
- import: importPlugin
57
+ import: importPlugin.flatConfigs.recommended.plugins.import
56
58
  },
57
59
  languageOptions: {
60
+ ecmaVersion: "latest",
61
+ sourceType: "module",
58
62
  globals: {
59
63
  ...globals.browser,
60
64
  ...globals.node
@@ -218,6 +222,18 @@ var config = [
218
222
  plugins: {
219
223
  "@typescript-eslint": tsEslint.plugin
220
224
  },
225
+ settings: {
226
+ "import/extensions": allExtensions,
227
+ "import/external-module-folders": ["node_modules", "node_modules/@types"],
228
+ "import/parsers": {
229
+ "@typescript-eslint/parser": typeScriptExtensions
230
+ },
231
+ "import/resolver": {
232
+ node: {
233
+ extensions: allExtensions
234
+ }
235
+ }
236
+ },
221
237
  rules: {
222
238
  "no-unused-expressions": OFF,
223
239
  "no-array-constructor": OFF,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szum-tech/eslint-config",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "ESLint configuration for TypeScript projects",
5
5
  "keywords": [
6
6
  "eslint",
@@ -35,8 +35,9 @@
35
35
  "prettier:write": "prettier --write ."
36
36
  },
37
37
  "dependencies": {
38
- "@next/eslint-plugin-next": "^15.1.2",
39
- "@vitest/eslint-plugin": "^1.1.20",
38
+ "@next/eslint-plugin-next": "^15.1.3",
39
+ "@vitest/eslint-plugin": "^1.1.22",
40
+ "eslint-import-resolver-typescript": "^3.7.0",
40
41
  "eslint-plugin-import": "^2.31.0",
41
42
  "eslint-plugin-jest-dom": "^5.4.0",
42
43
  "eslint-plugin-playwright": "^2.0.1",
@@ -46,7 +47,7 @@
46
47
  "eslint-plugin-tailwindcss": "^3.17.5",
47
48
  "eslint-plugin-testing-library": "^7.1.1",
48
49
  "globals": "^15.14.0",
49
- "typescript-eslint": "^8.18.2"
50
+ "typescript-eslint": "^8.19.0"
50
51
  },
51
52
  "devDependencies": {
52
53
  "@microsoft/eslint-formatter-sarif": "^3.1.0",
@@ -60,6 +61,7 @@
60
61
  },
61
62
  "peerDependencies": {
62
63
  "eslint": "^9.17.0",
64
+ "eslint-import-resolver-typescript": "^3.7.0",
63
65
  "eslint-plugin-import": "^2.31.0",
64
66
  "eslint-plugin-jest-dom": "^5.4.0",
65
67
  "eslint-plugin-playwright": "^2.0.1",
@@ -69,7 +71,7 @@
69
71
  "eslint-plugin-tailwindcss": "^3.17.5",
70
72
  "eslint-plugin-testing-library": "^7.1.1",
71
73
  "globals": "^15.14.0",
72
- "typescript-eslint": "^8.18.2"
74
+ "typescript-eslint": "^8.19.0"
73
75
  },
74
76
  "publishConfig": {
75
77
  "access": "public"