Skip to content

Commit 57c47fd

Browse files
Merge pull request #343 from OpenGammaProject/dev
Maintenance Update
2 parents cee7716 + fa77c19 commit 57c47fd

11 files changed

Lines changed: 328 additions & 400 deletions

.eslintrc.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

dist/main.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/notFound.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.mjs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import typescriptEslint from '@typescript-eslint/eslint-plugin';
2+
import globals from 'globals';
3+
import tsParser from '@typescript-eslint/parser';
4+
import path from 'node:path';
5+
import { fileURLToPath } from 'node:url';
6+
import js from '@eslint/js';
7+
import { FlatCompat } from '@eslint/eslintrc';
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all
15+
});
16+
17+
export default [
18+
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended'),
19+
{
20+
plugins: {
21+
'@typescript-eslint': typescriptEslint,
22+
},
23+
24+
languageOptions: {
25+
globals: {
26+
...globals.browser,
27+
...Object.fromEntries(Object.entries(globals.serviceworker).map(([key]) => [key, 'off'])),
28+
},
29+
30+
parser: tsParser,
31+
ecmaVersion: 13,
32+
sourceType: 'module',
33+
},
34+
35+
rules: {
36+
eqeqeq: 'error',
37+
quotes: ['warn', 'single'],
38+
'no-unused-private-class-members': 'warn',
39+
'no-unreachable-loop': 'error',
40+
'no-template-curly-in-string': 'error',
41+
'no-self-compare': 'error',
42+
'no-duplicate-imports': 'error',
43+
'no-await-in-loop': 'warn',
44+
},
45+
},
46+
];

0 commit comments

Comments
 (0)