@soujvnunes/eslint-config 0.2.0 → 0.3.0
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/dist/index.js +2 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import js from "@eslint/js";
|
|
3
3
|
import nextPlugin from "@next/eslint-plugin-next";
|
|
4
4
|
import prettier from "eslint-config-prettier";
|
|
5
|
+
import { createTypeScriptImportResolver } from "eslint-import-resolver-typescript";
|
|
5
6
|
import importHelpers from "eslint-plugin-import-helpers";
|
|
6
7
|
import importXPlugin from "eslint-plugin-import-x";
|
|
7
8
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
@@ -234,6 +235,7 @@ var buildConfig = ({
|
|
|
234
235
|
NodeJS: "readonly"
|
|
235
236
|
});
|
|
236
237
|
settings.react = { version: "detect" };
|
|
238
|
+
settings["import-x/resolver-next"] = [createTypeScriptImportResolver({ alwaysTryTypes: true })];
|
|
237
239
|
}
|
|
238
240
|
const rootConfigOverride = {
|
|
239
241
|
files: ["*.{mjs,js,ts,mts,cts}"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soujvnunes/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Shared flat ESLint config factories (base + Next.js).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "soujvnunes",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@eslint/js": "^9.39.4",
|
|
26
26
|
"@next/eslint-plugin-next": "^16.2.2",
|
|
27
27
|
"eslint-config-prettier": "^10.1.8",
|
|
28
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
28
29
|
"eslint-plugin-import-helpers": "^2.0.1",
|
|
29
30
|
"eslint-plugin-import-x": "^4.16.2",
|
|
30
31
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|