Skip to content

Commit

Permalink
Merge pull request #120 from dmatuszczak/SP-1067
Browse files Browse the repository at this point in the history
SP-1067 Update Node.js SDK packages
  • Loading branch information
bobbrodie authored Sep 16, 2024
2 parents f1be43c + a88816e commit d5fe548
Show file tree
Hide file tree
Showing 10 changed files with 1,435 additions and 3,230 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc

This file was deleted.

46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import prettier from 'eslint-plugin-prettier';
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: ['**/*.d.ts', 'dist/*']
},
...compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier'
),
...compat.env({
node: true
}),
{
plugins: {
'@typescript-eslint': typescriptEslint,
prettier
},

languageOptions: {
parser: tsParser
},

rules: {
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off'
}
}
];
Loading

0 comments on commit d5fe548

Please sign in to comment.