Skip to content

Commit

Permalink
feat: upload project files;
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Golovachev (moonzaki) committed Nov 13, 2024
1 parent d3505a6 commit e81c22f
Show file tree
Hide file tree
Showing 21 changed files with 5,717 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
54 changes: 54 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import js from '@eslint/js';
import globals from 'globals';
import eslintReact from 'eslint-plugin-react';
import eslintReactHooks from 'eslint-plugin-react-hooks';
import eslintReactRefresh from 'eslint-plugin-react-refresh';
import stylistic from '@stylistic/eslint-plugin-js';

/** @type {import('eslint').Linter.Config[]} */
export default [
{ ignores: ['node_modules', 'dist'] },
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2021,
globals: {
...globals.browser,
...globals.node,
...globals.es2021
},
parserOptions: eslintReact.configs.recommended.parserOptions
},
files: ['**/*.{js,jsx,ts,tsx}'],
settings: { react: { version: '18.3' } },
plugins: {
react: eslintReact,
'react-hooks': eslintReactHooks,
'react-refresh': eslintReactRefresh,
'@stylistic': stylistic
},
rules: {
...js.configs.recommended.rules,
...eslintReact.configs.recommended.rules,
...eslintReact.configs['jsx-runtime'].rules,
...eslintReactHooks.configs.recommended.rules,
"semi": ["error", "always"],
"comma-dangle": ["error", "never"],
"react/jsx-no-target-blank": [
"error", {
"allowReferrer": false,
"enforceDynamicLinks": 'always',
"warnOnSpreadAttributes": false,
"links": true,
"forms": true
}
],
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true }
],
'react/prop-types': [0],
indent: ['error', 2, { 'SwitchCase': 1 }]
}
}
];
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Loading

0 comments on commit e81c22f

Please sign in to comment.