Skip to content

Commit

Permalink
Merge pull request #607 from AFP-Medialab/package-upgrade
Browse files Browse the repository at this point in the history
packages upgrade
  • Loading branch information
Sallaa authored Sep 26, 2024
2 parents 4d6757e + d4d5948 commit 4f8ed02
Show file tree
Hide file tree
Showing 10 changed files with 1,007 additions and 870 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
35 changes: 35 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import react from "eslint-plugin-react";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends("eslint:recommended", "plugin:react/recommended"), {
plugins: {
react,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.webextensions,
},

ecmaVersion: "latest",
sourceType: "module",
},

rules: {
"react/prop-types": "off",
},
}];
Loading

0 comments on commit 4f8ed02

Please sign in to comment.