diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..008ab320 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,38 @@ +{ + "root": true, + "env": { + "browser": true, + "es2020": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:react/jsx-runtime", + "plugin:react-hooks/recommended", + "prettier" + ], + "ignorePatterns": [ + "dist" + ], + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "settings": { + "react": { + "version": "18.2" + } + }, + "plugins": [ + "react-refresh" + ], + "rules": { + "react/jsx-no-target-blank": "off", + "react-refresh/only-export-components": [ + "warn", + { + "allowConstantExport": true + } + ] + } +} \ No newline at end of file diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index cd7f6a23..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = { - root: true, - env: { browser: true, es2020: true }, - extends: [ - 'eslint:recommended', - 'plugin:react/recommended', - 'plugin:react/jsx-runtime', - 'plugin:react-hooks/recommended', - 'prettier' - ], - ignorePatterns: ['dist', '.eslintrc.cjs'], - parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, - settings: { react: { version: '18.2' } }, - plugins: ['react-refresh'], - rules: { - 'react/jsx-no-target-blank': 'off', - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - }, -} diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..e27083cf --- /dev/null +++ b/.prettierrc @@ -0,0 +1,13 @@ +{ + "printWidth": 120, + "useTabs": false, + "tabWidth": 2, + "trailingComma": "es5", + "semi": true, + "singleQuote": true, + "bracketSpacing": true, + "arrowParens": "always", + "jsxSingleQuote": false, + "bracketSameLine": false, + "endOfLine": "lf", +} \ No newline at end of file diff --git a/index.html b/index.html index 75d24117..e20f088f 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,6 @@
- +