|
@@ -0,0 +1,31 @@
|
|
|
+module.exports = {
|
|
|
+ env: {
|
|
|
+ es6: true,
|
|
|
+ },
|
|
|
+ globals: {
|
|
|
+ Atomics: "readonly",
|
|
|
+ SharedArrayBuffer: "readonly",
|
|
|
+ },
|
|
|
+ parser: "@typescript-eslint/parser",
|
|
|
+ parserOptions: {
|
|
|
+ ecmaFeatures: {
|
|
|
+ jsx: true,
|
|
|
+ },
|
|
|
+ ecmaVersion: 2019,
|
|
|
+ sourceType: "module",
|
|
|
+ },
|
|
|
+ extends: [
|
|
|
+ "plugin:react/recommended",
|
|
|
+ "standard",
|
|
|
+ "plugin:jsx-a11y/recommended",
|
|
|
+ "plugin:prettier/recommended",
|
|
|
+ ],
|
|
|
+ plugins: ["react", "react-hooks"],
|
|
|
+ rules: {
|
|
|
+ "react-hooks/rules-of-hooks": "error",
|
|
|
+ "react-hooks/exhaustive-deps": "warn",
|
|
|
+ },
|
|
|
+ settings: {
|
|
|
+ version: "detect",
|
|
|
+ },
|
|
|
+};
|