Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

29 changes: 0 additions & 29 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tsconfig
.gitattributes
.gitignore
CODE_OF_CONDUCT.md
jasmine.json
jest.config.ts
package-lock.json
tsconfig.json
webpack.config.js
59 changes: 59 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { defineConfig, globalIgnores } from 'eslint/config';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import styleisticPlugin from '@stylistic/eslint-plugin-ts';
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 defineConfig([globalIgnores(['**/dist', '**/node_modules', '**/webpack.config.js']), {
extends: compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
),

ignores: [
'dist',
'node_modules',
'webpack.config.js'
],

plugins: {
'@typescript-eslint': typescriptEslint,
'@stylistic': styleisticPlugin
},

languageOptions: {
parser: tsParser
},

rules: {
'no-prototype-builtins': 'off',
'brace-style': 'off',
'comma-dangle': 'off',
quotes: 'off',
'default-param-last': 'off',
'no-control-regex': 'off',
'@stylistic/no-explicit-any': 'off',
'@stylistic/no-non-null-assertion': 'off',
'@stylistic/explicit-module-boundary-types': 'off',
'@stylistic/no-inferrable-types': 'off',
'@stylistic/brace-style': ['error', 'allman'],
'@stylistic/comma-dangle': ['error', 'never'],
'@stylistic/quotes': ['error', 'single'],
'@typescript-eslint/default-param-last': ['error'],

'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/no-explicit-any': 'off'
}
}]);
12 changes: 0 additions & 12 deletions jasmine.json

This file was deleted.

11 changes: 11 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type {Config} from 'jest';

const config: Config = {
reporters: ['default'],
testEnvironment: "node",
transform: {
"^.+\.tsx?$": ["ts-jest",{}],
},
};

export default config;
Loading