Skip to content

Commit

Permalink
Merge pull request #9 from dmatuszczak/SP-1132
Browse files Browse the repository at this point in the history
SP-1132 Update HMAC Tester
  • Loading branch information
bobbrodie authored Jan 16, 2025
2 parents cacc961 + 5058ea0 commit 2d7ddaf
Show file tree
Hide file tree
Showing 4 changed files with 512 additions and 439 deletions.
57 changes: 57 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettier from 'eslint-plugin-prettier';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
{
ignores: ['eslint.config.mjs']
},
...compat.extends(
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'eslint:recommended',
'prettier'
),
{
plugins: {
'@typescript-eslint': typescriptEslint,
prettier
},

languageOptions: {
globals: {
...globals.node,
...globals.mocha
},

parser: tsParser,
ecmaVersion: 9,
sourceType: 'commonjs',

parserOptions: {
project: './tsconfig.json'
}
},

rules: {
'no-console': 'error'
}
},
eslint.configs.recommended,
...tseslint.configs.recommended
];
Loading

0 comments on commit 2d7ddaf

Please sign in to comment.