@maprox/lint-config 1.0.1 → 1.6.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 CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Shared ESLint flat configs for maprox (and related) projects, plus an experimental Oxlint base.
4
4
 
5
+ Formerly published as `@sunsay/eslint-config` on the Forgejo npm registry; use `@maprox/lint-config` going forward (same presets).
6
+
7
+
5
8
  ## Install
6
9
 
7
10
  ```bash
@@ -114,7 +117,7 @@ Vue stays on the ESLint `./vue` preset for now.
114
117
 
115
118
  ## What is included
116
119
 
117
- - **Base / portable:** `@stylistic`, import order (`import-x` + `import-newlines`), TS strictness, type-aware rules for `*.ts`, relative-import ban, `curly` / `no-console`, etc. Enums are PascalCase with `UPPER_CASE` members. Boolean variables and parameters are PascalCase with a prefix of `is`, `should`, `has`, `can`, `did`, or `will` (`isReady`, `hasError`). Needs a usable `tsconfig.json` (`project: true`).
120
+ - **Base / portable:** `@stylistic`, import order (`import-x` + `import-newlines`), TS strictness, type-aware rules for `*.ts`, relative-import ban, `@typescript-eslint/no-shadow` (core `no-shadow` off), `curly` / `no-console`, etc. Enums are PascalCase with `UPPER_CASE` members. Boolean variables and parameters are PascalCase with a prefix of `is`, `should`, `has`, `can`, `did`, or `will` (`isReady`, `hasError`). Needs a usable `tsconfig.json` (`project: true`).
118
121
  - **Vue:** `createConfigForNuxt` + portable layer + Vue SFC-only rules; type-aware rules also cover `.vue` `<script>` (`extraFileExtensions`).
119
122
  - **Astro / Node:** extend base with their parsers/globals.
120
123
  - **Tailwind (opt-in `./tailwind`):** `eslint-plugin-tailwindcss@4` `classnames-order` + required `cssConfigPath`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maprox/lint-config",
3
- "version": "1.0.1",
3
+ "version": "1.6.1",
4
4
  "description": "Shared ESLint flat configs (base, vue, astro, node, opt-in tailwind) + oxlint skeleton",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -69,6 +69,8 @@ export const portableOverrides = [
69
69
  'warn',
70
70
  { argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
71
71
  ],
72
+ 'no-shadow': 'off',
73
+ '@typescript-eslint/no-shadow': 'error',
72
74
  '@typescript-eslint/no-dynamic-delete': 'off',
73
75
  '@typescript-eslint/no-invalid-void-type': 'off',
74
76
  '@typescript-eslint/no-non-null-asserted-optional-chain': 'off',