@10stars/config 13.0.7 → 13.0.8

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.
Files changed (2) hide show
  1. package/eslint.config.ts +9 -2
  2. package/package.json +1 -1
package/eslint.config.ts CHANGED
@@ -103,7 +103,14 @@ const addPluginReact = () =>
103
103
 
104
104
  const addPluginImport = () =>
105
105
  [
106
- importPlugin.flatConfigs.typescript,
106
+ importPlugin.flatConfigs.recommended,
107
+ {
108
+ files: ["**/*.{ts,tsx}"], // https://github.com/import-js/eslint-plugin-import/tree/4f145a2c64af4931f4bf3ae951c8b719b544718f?tab=readme-ov-file#config---flat-with-config-in-typescript-eslint
109
+ extends: [
110
+ importPlugin.flatConfigs.recommended,
111
+ importPlugin.flatConfigs.typescript,
112
+ ],
113
+ },
107
114
  {
108
115
  rules: {
109
116
  "import/order": 0,
@@ -111,7 +118,7 @@ const addPluginImport = () =>
111
118
  "import/no-duplicates": 1,
112
119
  "import/no-named-as-default": 0,
113
120
  "import/no-nodejs-modules": [
114
- 2,
121
+ 2, // to enforce importing with "node:" prefix
115
122
  {
116
123
  allow: builtinModules
117
124
  .filter((v) => !v.startsWith(`_`))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@10stars/config",
7
- "version": "13.0.7",
7
+ "version": "13.0.8",
8
8
  "author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
9
9
  "license": "MIT",
10
10
  "bin": {