diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..6fa1bd6 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,35 @@ +{ + "env": { + "browser": true, + "es2021": true, + "jest": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:react-hooks/recommended", + "plugin:prettier/recommended" + ], + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "react", + "react-hooks", + "prettier" + ], + "rules": { + "react/react-in-jsx-scope": "off", + "no-unused-vars": "warn", + "react/prop-types": "off" + }, + "settings": { + "react": { + "version": "detect" + } + } +} diff --git a/.gitignore b/.gitignore index 4d29575..2fa56e4 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ /coverage # production -/build +/dist # misc .DS_Store diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..705f177 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,8 @@ +node_modules +build +dist +dist.browser +coverage +*.min.js +package-lock.json + diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..6261675 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "semi": true, + "trailingComma": "es5", + "singleQuote": false, + "printWidth": 80, + "tabWidth": 2, + "useTabs": false, + "arrowParens": "always", + "endOfLine": "lf" +} + diff --git a/public/index.html b/index.html similarity index 93% rename from public/index.html rename to index.html index f5d4388..c2252e5 100644 --- a/public/index.html +++ b/index.html @@ -14,7 +14,7 @@ manifest.json provides metadata used when your web app is installed on a user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ --> - +