@soujvnunes/eslint-config 0.3.0 → 0.3.1
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 +7 -7
- package/package.json +15 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @soujvnunes/eslint-config
|
|
2
2
|
|
|
3
|
-
Shared flat ESLint config as factories. Bundles the plugin set (typescript-eslint, import-x, import-helpers, unused-imports, security, and — for the Next preset — react, react-hooks, jsx-a11y, `@next/next`); you only bring `eslint` + `typescript`.
|
|
3
|
+
Shared flat ESLint config as factories. Bundles the plugin set (typescript-eslint, import-x, import-helpers, unused-imports, security, and — for the Next preset — react, react-hooks, jsx-a11y, `@next/next`); you only bring `eslint` + `typescript`. The Next preset also bundles the TypeScript import resolver (`eslint-import-resolver-typescript`, wired via `import-x/resolver-next`), so `@/…` path aliases and `.d.ts` types resolve out of the box — no extra install, no `settings` wiring.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -39,11 +39,11 @@ export default createBaseConfig()
|
|
|
39
39
|
|
|
40
40
|
## Options
|
|
41
41
|
|
|
42
|
-
| Option
|
|
43
|
-
|
|
|
44
|
-
| `importGroups`
|
|
45
|
-
| `ignores`
|
|
46
|
-
| `tsconfigRootDir` | `process.cwd()`
|
|
47
|
-
| `extend`
|
|
42
|
+
| Option | Default | Purpose |
|
|
43
|
+
| --- | --- | --- |
|
|
44
|
+
| `importGroups` | react → next → module → parent → sibling → index | Full import-order groups; insert your `@/…` paths |
|
|
45
|
+
| `ignores` | — | Extra ignore globs, merged after the built-in defaults |
|
|
46
|
+
| `tsconfigRootDir` | `process.cwd()` | Root for typescript-eslint's project service |
|
|
47
|
+
| `extend` | `[]` | Extra flat-config objects appended at the end |
|
|
48
48
|
|
|
49
49
|
Type-aware rules use typescript-eslint's **project service**, so no `parserOptions.project` wiring is needed — it discovers the nearest `tsconfig.json` per file.
|
package/package.json
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soujvnunes/eslint-config",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Shared flat ESLint config factories (base + Next.js).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "soujvnunes",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"eslint",
|
|
9
|
+
"eslint-config",
|
|
10
|
+
"eslintconfig",
|
|
11
|
+
"flat-config",
|
|
12
|
+
"typescript",
|
|
13
|
+
"typescript-eslint",
|
|
14
|
+
"nextjs",
|
|
15
|
+
"react",
|
|
16
|
+
"import-order",
|
|
17
|
+
"prettier"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://github.com/soujvnunes/packages/tree/main/eslint-config#readme",
|
|
20
|
+
"bugs": "https://github.com/soujvnunes/packages/issues",
|
|
7
21
|
"repository": {
|
|
8
22
|
"type": "git",
|
|
9
23
|
"url": "git+https://github.com/soujvnunes/packages.git",
|