Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed Nov 22, 2024
1 parent 1e74221 commit 38d8f33
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 33 deletions.
12 changes: 9 additions & 3 deletions examples/basic/packages/eslint-config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import turboPlugin from "eslint-plugin-turbo";
import tseslint from "typescript-eslint";
import onlyWarn from "eslint-plugin-only-warn";

/**
* A shared ESLint configuration for the repository.
Expand All @@ -12,9 +13,6 @@ export const config = [
js.configs.recommended,
eslintConfigPrettier,
...tseslint.configs.recommended,
{
ignores: ["dist/**"],
},
{
plugins: {
turbo: turboPlugin,
Expand All @@ -23,4 +21,12 @@ export const config = [
"turbo/no-undeclared-env-vars": "warn",
},
},
{
plugins: {
onlyWarn,
},
},
{
ignores: ["dist/**"],
},
];
1 change: 0 additions & 1 deletion examples/basic/packages/eslint-config/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const config = [
plugins: {
"react-hooks": pluginReactHooks,
},

settings: { react: { version: "detect" } },
rules: {
...pluginReactHooks.configs.recommended.rules,
Expand Down
1 change: 1 addition & 0 deletions examples/basic/packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@typescript-eslint/parser": "^7.1.0",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-turbo": "^2.3.0",
Expand Down
67 changes: 38 additions & 29 deletions examples/basic/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 38d8f33

Please sign in to comment.