Skip to content

Commit

Permalink
fixed lint settings
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgill committed Apr 1, 2024
1 parent fb45afb commit b3626ce
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,26 @@ import reactRecommended from "eslint-plugin-react/configs/recommended.js";
import globals from "globals";
const astroRecommended = eslintPluginAstro.configs["flat/recommended"];

const wwwFolder = "apps/www";

export default [
{ ignores: ["apps/docs/{public,dist,.vercel,.astro}/**/*"] },
{ ignores: [`${wwwFolder}/{public,dist,.vercel,.astro}/**/*`] },
{
files: ["apps/docs/**/*.{ts,tsx}"],
files: [`${wwwFolder}/**/*.{ts,tsx}`],
plugins: {
"@typescript-eslint": typescriptPlugin,
},
languageOptions: {
parser: typescriptParser,
parserOptions: {
project: "apps/docs/tsconfig.json",
project: `${wwwFolder}/tsconfig.json`,
sourceType: "module",
ecmaVersion: 2020,
},
},
},
{
files: ["apps/docs/**/*.{jsx,tsx}"],
files: [`${wwwFolder}/**/*.{jsx,tsx}`],
...reactRecommended,
languageOptions: {
...reactRecommended.languageOptions,
Expand All @@ -39,7 +41,7 @@ export default [
},
},
{
files: ["apps/docs/**/*.{js,jsx,mjs,cjs,ts,tsx}"],
files: [`${wwwFolder}/**/*.{js,jsx,mjs,cjs,ts,tsx}`],
...js.configs.recommended,
plugins: {
"prefer-arrow": preferArrow,
Expand All @@ -60,7 +62,7 @@ export default [
},
{
...astroRecommended,
files: ["apps/docs/**/*.{astro}"],
files: [`${wwwFolder}/**/*.{astro}`],
rules: {
...astroRecommended.rules,
},
Expand Down

0 comments on commit b3626ce

Please sign in to comment.