diff --git a/client/.eslintrc.js b/client/.eslintrc.js new file mode 100644 index 0000000..fbda470 --- /dev/null +++ b/client/.eslintrc.js @@ -0,0 +1,61 @@ +module.exports = { + root: true, + parser: '@typescript-eslint/parser', + extends: [ + 'plugin:react/recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:prettier/recommended', + 'plugin:react/jsx-runtime', + ], + plugins: [], + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + ecmaFeatures: { + jsx: true, + }, + }, + rules: { + indent: 'off', + curly: ['warn', 'all'], + 'padding-line-between-statements': [ + 'warn', + { + blankLine: 'always', + prev: '*', + next: [ + 'block-like', + 'multiline-expression', + 'multiline-const', + 'return', + ], + }, + { + blankLine: 'always', + prev: ['block-like', 'multiline-expression', 'multiline-const'], + next: '*', + }, + ], + 'react/prop-types': 'off', + '@typescript-eslint/indent': 'off', + '@typescript-eslint/no-use-before-define': 'off', + '@typescript-eslint/explicit-member-accessibility': [ + 'warn', + { accessibility: 'no-public' }, + ], + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/member-delimiter-style': [ + 'warn', + { multiline: { delimiter: 'none' } }, + ], + '@typescript-eslint/no-object-literal-type-assertion': 'off', + '@typescript-eslint/prefer-interface': 'off', + 'prettier/prettier': 'warn', + 'react/display-name': 'off', + }, + settings: { + react: { + version: 'detect', + }, + }, +} diff --git a/client/.gitignore b/client/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/client/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/client/.prettierrc.js b/client/.prettierrc.js new file mode 100644 index 0000000..21c7d9b --- /dev/null +++ b/client/.prettierrc.js @@ -0,0 +1,5 @@ +module.exports = { + useTabs: true, + semi: false, + singleQuote: true, +} \ No newline at end of file diff --git a/client/index.html b/client/index.html index 318ddba..2e47a7a 100644 --- a/client/index.html +++ b/client/index.html @@ -4,12 +4,11 @@