Skip to content
Merged
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
94 changes: 0 additions & 94 deletions .eslintrc.json

This file was deleted.

26 changes: 8 additions & 18 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: Install dependencies
Expand All @@ -38,18 +38,14 @@ jobs:
runs-on: ubuntu-latest
needs: lint-and-type-check

strategy:
matrix:
node-version: [18, 20]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: '20'
cache: 'npm'

- name: Install dependencies
Expand All @@ -62,7 +58,6 @@ jobs:
run: npm run test:coverage

- name: Upload coverage to Codecov
if: matrix.node-version == '18'
uses: codecov/codecov-action@v3
with:
file: ./coverage/lcov.info
Expand All @@ -79,7 +74,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: Install dependencies
Expand All @@ -106,20 +101,15 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Verify esbuild version
run: npm ls esbuild

- name: Run security audit
run: npm audit --omit=dev --audit-level=high
- run: node -e "console.log(require('esbuild').version)"

- name: Run dependency check
run: npx audit-ci --config audit-ci.json
- run: npm audit --omit=dev --audit-level=high

deploy-staging:
name: Deploy to Staging
Expand Down Expand Up @@ -190,7 +180,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm test
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
86 changes: 86 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import js from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import reactPlugin from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import importPlugin from 'eslint-plugin-import';
import prettierPlugin from 'eslint-plugin-prettier';

export default tseslint.config(
{
ignores: [
'tests/**/*',
'dist/**/*',
'node_modules/**/*',
'dist',
'build',
'*.config.js',
'*.config.ts'
]
},
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.{ts,tsx,js,jsx}'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
...globals.node
}
},
plugins: {
react: reactPlugin,
'react-hooks': reactHooks,
import: importPlugin,
prettier: prettierPlugin
},
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'error',
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'off',
'no-unused-vars': 'off',
'prefer-const': 'error',
'no-var': 'error',
'no-console': 'off',
'no-debugger': 'error',
'no-alert': 'off',
eqeqeq: ['error', 'smart'],
'prefer-template': 'error',
'object-shorthand': 'error',
'prefer-destructuring': 'error',
'no-param-reassign': 'error',
'no-return-assign': 'error',
'no-throw-literal': 'error',
'prefer-promise-reject-errors': 'error',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-namespace': 'off',
'prettier/prettier': 'error'
},
settings: {
react: { version: 'detect' },
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json'
}
}
}
},
{
files: ['*.tsx', '*.jsx'],
rules: { '@typescript-eslint/no-unused-vars': 'off' }
},
{
files: ['server/**/*'],
rules: { 'no-console': 'off' }
}
);
Loading
Loading