Skip to content

Commit 2d7ddaf

Browse files
authored
Merge pull request #9 from dmatuszczak/SP-1132
SP-1132 Update HMAC Tester
2 parents cacc961 + 5058ea0 commit 2d7ddaf

File tree

4 files changed

+512
-439
lines changed

4 files changed

+512
-439
lines changed

eslint.config.mjs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import typescriptEslint from '@typescript-eslint/eslint-plugin';
2+
import eslint from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import prettier from 'eslint-plugin-prettier';
5+
import globals from 'globals';
6+
import tsParser from '@typescript-eslint/parser';
7+
import path from 'node:path';
8+
import { fileURLToPath } from 'node:url';
9+
import js from '@eslint/js';
10+
import { FlatCompat } from '@eslint/eslintrc';
11+
12+
const __filename = fileURLToPath(import.meta.url);
13+
const __dirname = path.dirname(__filename);
14+
const compat = new FlatCompat({
15+
baseDirectory: __dirname,
16+
recommendedConfig: js.configs.recommended,
17+
allConfig: js.configs.all
18+
});
19+
20+
export default [
21+
{
22+
ignores: ['eslint.config.mjs']
23+
},
24+
...compat.extends(
25+
'plugin:@typescript-eslint/recommended',
26+
'plugin:prettier/recommended',
27+
'eslint:recommended',
28+
'prettier'
29+
),
30+
{
31+
plugins: {
32+
'@typescript-eslint': typescriptEslint,
33+
prettier
34+
},
35+
36+
languageOptions: {
37+
globals: {
38+
...globals.node,
39+
...globals.mocha
40+
},
41+
42+
parser: tsParser,
43+
ecmaVersion: 9,
44+
sourceType: 'commonjs',
45+
46+
parserOptions: {
47+
project: './tsconfig.json'
48+
}
49+
},
50+
51+
rules: {
52+
'no-console': 'error'
53+
}
54+
},
55+
eslint.configs.recommended,
56+
...tseslint.configs.recommended
57+
];

0 commit comments

Comments
 (0)