Skip to content

Commit

Permalink
Set up ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Sep 20, 2023
1 parent a451013 commit 0f12a3d
Show file tree
Hide file tree
Showing 10 changed files with 1,901 additions and 41 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["react", "jsx-a11y", "react-hooks", "@typescript-eslint"],
root: true,
env: {
browser: true,
commonjs: true,
node: true,
},
rules: {
"react/prop-types": "off",
"react/no-unescaped-entities": ["error", { forbid: [">", "}"] }],
},
overrides: [
{
files: ["docusaurus.config.js", "sync-supporters.js", "plugins/*.js"],
rules: {
"@typescript-eslint/no-var-requires": "off",
},
},
],
};
Loading

0 comments on commit 0f12a3d

Please sign in to comment.