Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
chore: add comments to eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Dec 16, 2024
1 parent b175e4d commit 6b904d9
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import tseslint from "typescript-eslint";
//import ts from "@typescript-eslint/eslint-plugin";
// import globals from "globals";

// TODO: add eslint-plugin-react-compiler when released
// TODO: enable eslint-plugin-import (absolute imports) when it is properly supported with flat configs

export default tseslint.config(
Expand All @@ -31,7 +32,7 @@ export default tseslint.config(
eslintPluginUnicorn.configs["flat/all"],
pluginPromise.configs["flat/recommended"],
{
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"], // check if needed
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
plugins: {
"@next/next": nextPlugin,
"react-hooks": hooksPlugin,
Expand All @@ -44,16 +45,16 @@ export default tseslint.config(
},
},
/*
languageOptions: {
parser: tsParser,
globals: {
...globals.browser,
},
parserOptions: {
project: ["tsconfig.json"],
},
},
*/
languageOptions: {
parser: tsParser,
globals: {
...globals.browser,
},
parserOptions: {
project: ["tsconfig.json"],
},
},
*/
rules: {
...nextPlugin.configs.recommended.rules,
...nextPlugin.configs["core-web-vitals"].rules,
Expand Down

0 comments on commit 6b904d9

Please sign in to comment.