Skip to content

Commit

Permalink
Merge pull request #17 from Marvell-Consulting/fix/linting
Browse files Browse the repository at this point in the history
Update the frontend to match the backend
  • Loading branch information
wheelsandcogs authored Oct 2, 2024
2 parents 7977c00 + f437667 commit 958a96d
Show file tree
Hide file tree
Showing 56 changed files with 3,727 additions and 4,473 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

30 changes: 0 additions & 30 deletions .eslintrc

This file was deleted.

7 changes: 4 additions & 3 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test

- run: npm run prettier:ci
- run: npm run lint:ci
- run: npm run build
- run: npm run test:ci
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
redis:
image: redis:latest
ports:
- "6380:6379"
46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// @ts-check
import shopifyEslintPlugin from '@shopify/eslint-plugin';

export default [
{
// global ignores need to be in their own block otherwise they don't seem to work
ignores: [
'.github/**',
'.vscode/**',
'coverage/**',
'dist/**',
'node_modules/**',
'src/public/**',
'**/*.config.{mjs,ts}'
],
},
...shopifyEslintPlugin.configs.typescript,
...shopifyEslintPlugin.configs.prettier,
{
rules: {
'line-comment-position': 'off',
'no-warning-comments': 'warn',
'no-process-env': 'warn',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'default',
format: ['camelCase', 'PascalCase', 'UPPER_CASE', 'snake_case'],
}
],
}
},
{
files: ['src/config/**/*.ts', 'test/.jest/set-env-vars.ts'],
rules: {
'no-process-env': 'off',
}
},
{
files: ['test/**/*.ts'],
rules: {
'no-console': 'off',
}
},
];
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config: Config = {
collectCoverage: true,
coverageReporters: ['cobertura', 'lcov', 'html', 'text'],
coveragePathIgnorePatterns: ['/node_modules/', '/test/', '/src/controllers/datalake.ts'],
setupFiles: ['<rootDir>/test/.jest/setEnvVars.ts']
setupFiles: ['<rootDir>/test/.jest/set-env-vars.ts']
};

export default config;
Loading

0 comments on commit 958a96d

Please sign in to comment.