eslint-config-deepcrawl 16.0.3 → 16.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.
Files changed (2) hide show
  1. package/index.js +23 -17
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -38,6 +38,29 @@ export default defineConfig([
38
38
  files: ["**/*.{cjs,js,jsx,mjs}"],
39
39
  extends: [typescriptEslint.configs.disableTypeChecked],
40
40
  },
41
+ {
42
+ plugins: { "import-x": importXPlugin },
43
+ files: ["**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}"],
44
+ rules: {
45
+ "import-x/default": "off",
46
+ "import-x/named": "off",
47
+ "import-x/namespace": "off",
48
+ "import-x/newline-after-import": "error",
49
+ "import-x/no-default-export": "error",
50
+ "import-x/no-named-as-default": "off",
51
+ "import-x/no-named-as-default-member": "off",
52
+ "import-x/no-relative-packages": "error",
53
+ "import-x/no-unresolved": "off",
54
+ "import-x/order": [
55
+ "error",
56
+ {
57
+ alphabetize: { order: "asc", caseInsensitive: true },
58
+ "newlines-between": "always",
59
+ groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
60
+ },
61
+ ],
62
+ },
63
+ },
41
64
  {
42
65
  plugins: { "array-func": arrayFuncPlugin },
43
66
  rules: { "array-func/avoid-reverse": "error" },
@@ -177,23 +200,6 @@ export default defineConfig([
177
200
  rules: {
178
201
  complexity: ["error", 15],
179
202
  "default-case-last": "error",
180
- "import-x/default": "off",
181
- "import-x/named": "off",
182
- "import-x/namespace": "off",
183
- "import-x/newline-after-import": "error",
184
- "import-x/no-default-export": "error",
185
- "import-x/no-named-as-default": "off",
186
- "import-x/no-named-as-default-member": "off",
187
- "import-x/no-relative-packages": "error",
188
- "import-x/no-unresolved": "off",
189
- "import-x/order": [
190
- "error",
191
- {
192
- alphabetize: { order: "asc", caseInsensitive: true },
193
- "newlines-between": "always",
194
- groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
195
- },
196
- ],
197
203
  "jest/expect-expect": "error",
198
204
  "jest/padding-around-after-all-blocks": "error",
199
205
  "jest/padding-around-after-each-blocks": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-deepcrawl",
3
- "version": "16.0.3",
3
+ "version": "16.0.4",
4
4
  "description": "ESLint rules recommended by Lumar (formerly DeepCrawl).",
5
5
  "homepage": "https://github.com/deepcrawl/eslint-config",
6
6
  "bugs": {