-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from react18-tools/fix-eslint
Fix eslint
- Loading branch information
Showing
37 changed files
with
360 additions
and
2,502 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { config } from "@repo/eslint-config/base.js"; | ||
|
||
/** @type {import("eslint").Linter.Config} */ | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { nextJsConfig } from "@repo/eslint-config/next.js"; | ||
|
||
/** @type {import("eslint").Linter.Config} */ | ||
export default nextJsConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { config } from "@repo/eslint-config/react.js"; | ||
|
||
/** @type {import("eslint").Linter.Config} */ | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { config } from "@repo/eslint-config/react.js"; | ||
|
||
/** @type {import("eslint").Linter.Config} */ | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { config } from "@repo/eslint-config/react.js"; | ||
|
||
/** @type {import("eslint").Linter.Config} */ | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"doc": "node scripts/doc.js && typedoc", | ||
"format": "prettier --write \"**/*.{ts,tsx,md,css,scss}\"", | ||
"lint": "turbo lint", | ||
"lint:fix": "turbo lint:fix", | ||
"test": "turbo test", | ||
"typecheck": "turbo typecheck", | ||
"preinstall": "node scripts/update-pm.js", | ||
|
@@ -32,13 +33,5 @@ | |
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"eslint": "^8.0.0" | ||
} | ||
}, | ||
"overrides": { | ||
"eslint": "^8.0.0" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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. | ||
* | ||
* @type {import("eslint").Linter.Config} | ||
* */ | ||
export const config = [ | ||
js.configs.recommended, | ||
eslintConfigPrettier, | ||
...tseslint.configs.recommended, | ||
{ | ||
plugins: { | ||
turbo: turboPlugin, | ||
}, | ||
rules: { | ||
"turbo/no-undeclared-env-vars": "warn", | ||
}, | ||
}, | ||
{ | ||
plugins: { | ||
onlyWarn, | ||
}, | ||
}, | ||
{ | ||
ignores: ["dist/**"], | ||
}, | ||
]; |
Oops, something went wrong.