mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
- Rewrite app/eslint.config.mjs to use @typescript-eslint/parser directly (fixes "Class extends value undefined" error with typescript-eslint 8.x) - Add typescript-eslint override in root package.json for ESLint 10 compat - Remove deprecated .eslintignore (use flat config ignores instead) - Delete temp/backup files (.bak, .old, .tmp) Co-authored-by: Hanzo Dev <[email protected]>
57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
import js from "@eslint/js";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
"__registry__/**",
|
|
".source/**",
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"dist/**",
|
|
".turbo/**",
|
|
"node_modules/**",
|
|
"coverage/**",
|
|
"*.config.js",
|
|
"*.config.mjs",
|
|
],
|
|
},
|
|
// JavaScript files
|
|
{
|
|
files: ["**/*.{js,jsx,mjs,cjs}"],
|
|
...js.configs.recommended,
|
|
rules: {
|
|
"no-unused-vars": "off",
|
|
"no-undef": "off",
|
|
"no-empty": "off",
|
|
"no-constant-condition": "off",
|
|
"no-case-declarations": "off",
|
|
"no-useless-escape": "off",
|
|
"no-control-regex": "off",
|
|
"prefer-const": "off",
|
|
},
|
|
},
|
|
// TypeScript files - parser only, all rules off (rely on TypeScript compiler)
|
|
{
|
|
files: ["**/*.{ts,tsx,mts}"],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
},
|
|
rules: {},
|
|
},
|
|
// CommonJS files
|
|
{
|
|
files: ["**/*.cjs"],
|
|
languageOptions: {
|
|
globals: {
|
|
module: "readonly",
|
|
require: "readonly",
|
|
__dirname: "readonly",
|
|
__filename: "readonly",
|
|
exports: "writable",
|
|
},
|
|
},
|
|
},
|
|
];
|