Skip to content

Commit

Permalink
chore: update tsb eslint config and updated code to match rules
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael Arce <[email protected]>
  • Loading branch information
raphael-arce committed Oct 14, 2024
1 parent bca843e commit bf80b91
Show file tree
Hide file tree
Showing 32 changed files with 2,786 additions and 1,867 deletions.
16 changes: 8 additions & 8 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import globals from "globals";
import tsbConfig from "@technologiestiftung/eslint-config";
import { plugin as tsbPlugin } from "@technologiestiftung/eslint-plugin";
import reactRecommended from "eslint-plugin-react/configs/recommended.js";
import technologiestiftung from "@technologiestiftung/eslint-config";
import react from "eslint-plugin-react";

// eslint-disable-next-line @technologiestiftung/no-default-export
export default [
...tsbConfig,
reactRecommended,
...technologiestiftung,
{
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
plugins: {
react,
},
languageOptions: {
parserOptions: {
ecmaFeatures: {
Expand All @@ -21,8 +21,8 @@ export default [
},
},
rules: {
"@technologiestiftung/no-default-export": "error",
// suppress errors for missing 'import React' in files
"react/react-in-jsx-scope": "off",
},
plugins: { "@technologiestiftung": tsbPlugin },
},
];
Loading

0 comments on commit bf80b91

Please sign in to comment.