Skip to content

Commit

Permalink
refactor(eslint): simplify ESLint configuration and update TypeScript…
Browse files Browse the repository at this point in the history
… paths
  • Loading branch information
Ryan-Zayne committed Nov 10, 2024
1 parent 07db864 commit c62a034
Show file tree
Hide file tree
Showing 3 changed files with 532 additions and 588 deletions.
8 changes: 1 addition & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@ import { zayne } from "@zayne-labs/eslint-config";

export default zayne({
ignores: ["packages/toolkit/dist/**"],
node: {
overrides: {
"node/no-unsupported-features/es-syntax": "off",
"node/no-unsupported-features/node-builtins": "off",
},
},
react: true,
tailwindcss: true,
type: "lib",
typescript: {
tsconfigPath: ["dev/tsconfig.json", "packages/toolkit/tsconfig.json"],
tsconfigPath: ["**/tsconfig.json"],
},
});
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"inspect:eslint-config": "pnpx @eslint/config-inspector@latest",
"lint:attw": "pnpm --filter \"./packages/*\" lint:attw",
"lint:check-types": "pnpm --filter \"./packages/*\" lint:check-types",
"lint:eslint": "eslint . --cache --max-warnings 0 --report-unused-disable-directives",
"lint:eslint": "pnpm build && eslint . --cache --max-warnings 0 --report-unused-disable-directives",
"lint:format": "prettier --cache --write .",
"lint:publint": "pnpm --filter \"./packages/*\" version-package:publint",
"lint:size": "pnpm --filter \"./packages/**\" lint:size",
Expand All @@ -22,16 +22,16 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.9",
"@eslint-react/eslint-plugin": "^1.15.0",
"@types/node": "^22.7.4",
"@zayne-labs/eslint-config": "^0.2.8",
"eslint": "^9.11.1",
"@eslint-react/eslint-plugin": "^1.15.2",
"@types/node": "^22.9.0",
"@zayne-labs/eslint-config": "^0.2.9",
"eslint": "^9.14.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.12",
"eslint-plugin-tailwindcss": "^3.17.4",
"eslint-plugin-react-refresh": "^0.4.14",
"eslint-plugin-tailwindcss": "^3.17.5",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"pkg-pr-new": "^0.0.29",
"pkg-pr-new": "^0.0.30",
"prettier": "^3.3.3",
"typescript": "catalog:"
}
Expand Down
Loading

0 comments on commit c62a034

Please sign in to comment.