Skip to content

Commit

Permalink
padawan - eslint flat structure, update sorbet gems, update git pre-c…
Browse files Browse the repository at this point in the history
…ommit hook
  • Loading branch information
dcordz committed Jun 6, 2024
1 parent eae18f6 commit 1a9e894
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import react from "eslint-plugin-react/configs/recommended.js";
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
import reactRefresh from "eslint-plugin-react-refresh";
import rulesOfHooks from "eslint-plugin-react-hooks";
import eslintImport from "eslint-plugin-import";
Expand All @@ -12,7 +12,7 @@ export default [
// pluginJs.configs.recommended,
// ...tseslint.configs.recommended,
// ...tseslint.configs.stylistic,
react,
// pluginReactConfig,
{
languageOptions: {
globals: {
Expand All @@ -30,7 +30,24 @@ export default [
},
},

ignores: ["**/*", "!app/frontend/"],
ignores: [
"app/assets/",
"app/views/*",
"config/",
"docker/",
"sorbet/",
"node_modules/",
"log/",
"lib/",
"db/",
"bin/",
"spec/",
"storage/",
"tf/",
"tmp/",
"vendor/",
"eslint.config.js",
],

settings: {
react: {
Expand All @@ -51,6 +68,11 @@ export default [
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",

"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-no-target-blank": "warn",
"react/display-name": "off",

"constructor-super": "error",
"no-restricted-globals": "error",
eqeqeq: ["warn", "always"],
Expand Down Expand Up @@ -85,11 +107,6 @@ export default [
"prefer-const": "warn",

"@typescript-eslint/ban-ts-comment": "warn",

"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-no-target-blank": "warn",
"react/display-name": "off",
},
},
];

0 comments on commit 1a9e894

Please sign in to comment.