-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
175 additions
and
205 deletions.
There are no files selected for viewing
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 reactInternal from "@parcnet/eslint-config/eslint.reactInternal.config.mjs"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [...reactInternal]; |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
autoprefixer: {} | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,8 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
export default { | ||
content: [ | ||
"./index.html", | ||
"./src/**/*.{js,ts,jsx,tsx}", | ||
], theme: { | ||
extend: {}, | ||
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], | ||
theme: { | ||
extend: {} | ||
}, | ||
plugins: [], | ||
} | ||
|
||
plugins: [] | ||
}; |
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 |
---|---|---|
@@ -1,49 +1,4 @@ | ||
import eslint from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import pluginChaiFriendly from "eslint-plugin-chai-friendly"; | ||
import hooksPlugin from "eslint-plugin-react-hooks"; | ||
import base from "@parcnet/eslint-config/eslint.base.config.mjs"; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...tseslint.configs.stylistic, | ||
{ | ||
ignores: ["**/node_modules/*", "**/dist/"] // global ignore with single ignore key | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: false, | ||
tsconfigRootDir: import.meta.dirname | ||
} | ||
}, | ||
files: ["src/**/*.{ts,tsx}"] | ||
}, | ||
{ | ||
plugins: { | ||
"chai-friendly": pluginChaiFriendly, | ||
"react-hooks": hooksPlugin | ||
}, | ||
rules: hooksPlugin.configs.recommended.rules | ||
}, | ||
{ | ||
rules: { | ||
"@typescript-eslint/no-unused-expressions": "off", | ||
"chai-friendly/no-unused-expressions": "error", | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
// enable underscore ignore pattern for unused vars | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
destructuredArrayIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^_" | ||
} | ||
], | ||
"no-case-declarations": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "error" | ||
} | ||
} | ||
); | ||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [...base]; |
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 reactInternal from "@parcnet/eslint-config/eslint.reactInternal.config.mjs"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [...reactInternal]; |
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 |
---|---|---|
|
@@ -10,18 +10,14 @@ | |
"watch": "turbo watch build --filter='./packages/**'" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "^9.9.0", | ||
"eslint-plugin-chai-friendly": "^1.0.1", | ||
"eslint-plugin-react-hooks": "^5.1.0-rc.0", | ||
"knip": "^5.29.2", | ||
"prettier": "^3.2.5", | ||
"turbo": "^2.0.14", | ||
"typescript": "^5.4.5", | ||
"typescript-eslint": "^8.0.1" | ||
"typescript": "^5.4.5" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18" | ||
"node": ">=22" | ||
}, | ||
"dependencies": { | ||
"mprocs": "^0.7.1" | ||
|
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# `@turbo/eslint-config` | ||
# `@parcnet/eslint-config` | ||
|
||
Collection of internal eslint configurations. |
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,58 @@ | ||
import eslint from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import pluginChaiFriendly from "eslint-plugin-chai-friendly"; | ||
import hooksPlugin from "eslint-plugin-react-hooks"; | ||
import eslintPluginPrettier from "eslint-plugin-prettier"; | ||
import eslintPluginTurbo from "eslint-plugin-turbo"; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...tseslint.configs.stylistic, | ||
|
||
{ | ||
ignores: ["**/node_modules/*", "**/dist/"] // global ignore with single ignore key | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: false, | ||
tsconfigRootDir: import.meta.dirname | ||
} | ||
}, | ||
files: ["src/**/*.{ts,tsx}"] | ||
}, | ||
{ | ||
plugins: { | ||
"chai-friendly": pluginChaiFriendly, | ||
"react-hooks": hooksPlugin, | ||
prettier: eslintPluginPrettier, | ||
turbo: eslintPluginTurbo | ||
}, | ||
rules: { | ||
...hooksPlugin.configs.recommended.rules, | ||
"prettier/prettier": "error", | ||
"turbo/no-undeclared-env-vars": "error" | ||
} | ||
}, | ||
{ | ||
rules: { | ||
"@typescript-eslint/no-unused-expressions": "off", | ||
"chai-friendly/no-unused-expressions": "error", | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
// enable underscore ignore pattern for unused vars | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
destructuredArrayIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^_" | ||
} | ||
], | ||
"no-case-declarations": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "error" | ||
} | ||
} | ||
); |
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,13 @@ | ||
import baseConfig from "./eslint.base.config.mjs"; | ||
import tseslint from "typescript-eslint"; | ||
import globals from "globals"; | ||
|
||
export default tseslint.config(...baseConfig, { | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
React: true, | ||
JSX: true | ||
} | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.