Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10

- package-ecosystem: docker
directory: /
schedule:
interval: weekly

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
33 changes: 33 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CodeQL

on:
pull_request:
push:
branches:
- master
schedule:
- cron: '23 10 * * 1'

permissions:
contents: read

jobs:
analyze:
name: Analyze JavaScript
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript

- name: Analyze
uses: github/codeql-action/analyze@v4
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint && yarn test
3 changes: 0 additions & 3 deletions client/.eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions client/.eslintrc

This file was deleted.

6 changes: 6 additions & 0 deletions client/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
['@babel/preset-react', { runtime: 'automatic' }],
],
};
93 changes: 0 additions & 93 deletions client/config/env.js

This file was deleted.

14 changes: 0 additions & 14 deletions client/config/jest/cssTransform.js

This file was deleted.

40 changes: 0 additions & 40 deletions client/config/jest/fileTransform.js

This file was deleted.

90 changes: 0 additions & 90 deletions client/config/paths.js

This file was deleted.

62 changes: 62 additions & 0 deletions client/eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
const js = require('@eslint/js');
const globals = require('globals');
const importPlugin = require('eslint-plugin-import');
const jsxA11y = require('eslint-plugin-jsx-a11y');
const react = require('eslint-plugin-react');
const reactHooks = require('eslint-plugin-react-hooks');

module.exports = [
{
ignores: ['build/**'],
},
js.configs.recommended,
{
files: ['src/**/*.{js,jsx}'],
languageOptions: {
ecmaVersion: 'latest',
globals: {
...globals.browser,
...globals.jest,
module: 'readonly',
process: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
sourceType: 'module',
},
plugins: {
import: importPlugin,
'jsx-a11y': jsxA11y,
react,
'react-hooks': reactHooks,
},
rules: {
...importPlugin.configs.recommended.rules,
...jsxA11y.configs.recommended.rules,
...react.configs.recommended.rules,
'import/no-unresolved': ['error', { ignore: ['^react-ga4$'] }],
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'error',
'no-console': 'warn',
'no-underscore-dangle': 'off',
'jsx-a11y/no-autofocus': 'off',
'react/jsx-filename-extension': ['warn', { extensions: ['.js', '.jsx'] }],
'react/jsx-props-no-spreading': ['warn', { custom: 'ignore' }],
'react/react-in-jsx-scope': 'off',
semi: ['warn', 'always'],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.mjs'],
},
},
react: {
version: 'detect',
},
},
},
];
Loading
Loading