-
Notifications
You must be signed in to change notification settings - Fork 303
node_auth-app_TetSh #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node_auth-app_TetSh #235
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| PORT=3005 | ||
| DB_HOST=localhost | ||
| DB_USER=postgres | ||
| DB_PASSWORD= | ||
| DB_DATABASE=postgres | ||
| CLIENT_HOST=http://localhost:5173 | ||
| SMTP_HOST=smtp.gmail.com | ||
| SMTP_PORT=587 | ||
| SMTP_USER= | ||
| SMTP_PASSWORD= | ||
| JWT_KEY= | ||
| JWT_REFRESH_KEY= | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Test | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ master ] | ||
|
|
||
| jobs: | ||
| build: | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [20.x] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v1 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - run: npm install | ||
| - run: npm test |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,4 @@ node_modules | |
| # MacOS | ||
| .DS_Store | ||
|
|
||
| # env files | ||
| *.env | ||
| .env* | ||
| .env | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider ignoring other environment-file variants to avoid accidental commits. For example use a pattern like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider ignoring other environment-file variants to avoid accidental commits. For example use a pattern like |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| APP_API_URL=http://127.0.0.1:5000 | ||
| ESLINT_NO_DEV_ERRORS=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /build | ||
| /node_modules |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| module.exports = { | ||
| env: { | ||
| browser: true | ||
| }, | ||
| extends: [ | ||
| 'plugin:react/recommended', | ||
| "plugin:react-hooks/recommended", | ||
| 'plugin:prettier/recommended', | ||
| 'plugin:cypress/recommended', | ||
| ], | ||
| parserOptions: { | ||
| ecmaVersion: "2024", | ||
| sourceType: "module", | ||
| }, | ||
| overrides: [ | ||
| { | ||
| 'files': ['**/*.spec.jsx'], | ||
| 'rules': { | ||
| 'react/jsx-filename-extension': ['off'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You define There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You define There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You define |
||
| } | ||
| } | ||
| ], | ||
| plugins: [ | ||
| 'jsx-a11y', | ||
| 'import', | ||
| 'react-hooks', | ||
| 'prettier' | ||
| ], | ||
| rules: { | ||
| // JS | ||
| 'semi': 'off', | ||
| 'prefer-const': 2, | ||
| curly: [2, 'all'], | ||
| 'max-len': ['error', { | ||
| ignoreTemplateLiterals: true, | ||
| ignoreComments: true, | ||
| }], | ||
| 'no-redeclare': [2, {builtinGlobals: true}], | ||
| 'no-console': 2, | ||
| 'operator-linebreak': 0, | ||
| 'brace-style': [2, '1tbs'], | ||
| 'arrow-body-style': 0, | ||
| 'arrow-parens': 0, | ||
| 'no-param-reassign': [2, {props: true}], | ||
| 'padding-line-between-statements': [ | ||
| 2, | ||
| {blankLine: 'always', prev: '*', next: 'return'}, | ||
| {blankLine: 'always', prev: ['const', 'let', 'var'], next: '*'}, | ||
| {blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var']}, | ||
| {blankLine: 'always', prev: 'directive', next: '*'}, | ||
| {blankLine: 'always', prev: 'block-like', next: '*'}, | ||
| ], | ||
| 'implicit-arrow-linebreak:': 0, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rule key is mistyped: it includes a trailing colon in the property name. The intended rule is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rule key is mistyped: it includes a trailing colon in the property name. The intended rule is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rule key is mistyped: it includes a trailing colon in the property name. The intended rule is |
||
|
|
||
| // React | ||
| 'react/prop-types': 0, | ||
| 'react/require-default-props': 0, | ||
| 'import/prefer-default-export': 0, | ||
| 'standard/no-callback-literal': 0, | ||
| 'react/jsx-filename-extension': [1, {extensions: ['.jsx']}], | ||
| 'react/destructuring-assignment': 0, | ||
| 'react/jsx-props-no-spreading': 0, | ||
| 'react/state-in-constructor': [2, 'never'], | ||
| 'react-hooks/rules-of-hooks': 2, | ||
| 'jsx-a11y/label-has-associated-control': ["error", { | ||
| assert: "either", | ||
| }], | ||
| 'jsx-a11y/label-has-for': [2, { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rule There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rule There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rule |
||
| components: ['Label'], | ||
| required: { | ||
| some: ['id', 'nesting'], | ||
| }, | ||
| allowChildren: true, | ||
| }], | ||
| 'react/jsx-uses-react': 'off', | ||
| 'react/react-in-jsx-scope': 'off' | ||
| }, | ||
| ignorePatterns: ['dist', '.eslintrc.cjs', 'vite.config.ts', 'src/vite-env.d.ts', 'cypress'], | ||
| settings: { | ||
| react: { | ||
| version: 'detect', | ||
| }, | ||
| }, | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| .idea | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These patterns have a leading space ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These patterns have a leading space ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These patterns have a leading space ( |
||
| .vscode | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue as line 1: leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue as line 1: leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue as line 1: leading space before |
||
| build | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before |
||
| dist | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before |
||
| node_modules | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before |
||
| .DS_Store | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leading space before |
||
|
|
||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /node_modules | ||
| /build |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "arrowParens": "avoid", | ||
| "singleQuote": true, | ||
| "tabWidth": 2, | ||
| "trailingComma": "all", | ||
| "jsxSingleQuote": false, | ||
| "printWidth": 80, | ||
| "semi": true, | ||
| "bracketSpacing": true, | ||
| "bracketSameLine": false | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /build |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| module.exports = { | ||
| extends: "@mate-academy/stylelint-config", | ||
| rules: {} | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <!doctype html> | ||
| <html lang="en" data-theme="light"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Login App</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/index.jsx"></script> | ||
| </body> | ||
| </html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider ignoring other environment-file variants to avoid accidental commits. For example use a pattern like
.env*or explicitly add.env.local,.env.production,.env.testso all env variants are covered.