Skip to content

Commit

Permalink
chore: package updates and QoL fixes (#277)
Browse files Browse the repository at this point in the history
* chore: update repo wide eslint packages at root #274

* chore: update eslint and update config #274

* chore: update site packages #274

* chore: update plugin packages #274

* refactor: revert versions on PQ because gatsby can't load ESMs

* chore: updated config for eslint

* fix: resolve defaultProps deprecations #275

* fix: remove commented out defaultProps #275

* fix: resolve isOpen prop warnings. fixes #276
  • Loading branch information
ajfisher authored Jan 7, 2025
1 parent 1f50ea9 commit c74f1a4
Show file tree
Hide file tree
Showing 14 changed files with 3,488 additions and 6,939 deletions.
10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

35 changes: 35 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import babelParser from "@babel/eslint-parser";
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"), {
languageOptions: {
parser: babelParser,
parserOptions: {
requireConfigFile: false,
}
},

// use this for defining new rules
rules: {
strict: 0,
// call error on any unused vars but then allow _var for ignore
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
}
],
},
}];
Loading

0 comments on commit c74f1a4

Please sign in to comment.