-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrades dependencies of libms (#943)
- Upgrades the npm packages of libms to the latest versions. - Upgrades eslint and tsconfig to be compatibe with the latest versions of these packages - Adds Windows OS to Github actions of libms
- Loading branch information
Showing
25 changed files
with
2,483 additions
and
2,804 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
version: '3' | ||
services: | ||
libms: | ||
image: intocps/libms:latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { fixupConfigRules } from '@eslint/compat'; | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import globals from 'globals'; | ||
import jest from 'eslint-plugin-jest'; | ||
import js from '@eslint/js'; | ||
import prettier from 'eslint-config-prettier'; | ||
import ts from '@typescript-eslint/eslint-plugin'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import imprt from 'eslint-plugin-import'; // 'import' is ambiguous & prettier has trouble | ||
|
||
const flatCompat = new FlatCompat(); | ||
|
||
export default [ | ||
{ | ||
...js.configs.recommended, | ||
files: ['src/**', 'test/**'], | ||
}, | ||
{ | ||
...fixupConfigRules(flatCompat.extends('airbnb-base')), | ||
files: ['src/**', 'test/**'], | ||
}, | ||
prettier, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.jest, | ||
...globals.node, | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
}, | ||
parser: tsParser, | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
requireConfigFile: false, | ||
ecmaVersion: 2022, | ||
ecmaFeatures: { modules: true }, | ||
}, | ||
}, | ||
files: ['src/**', 'test/**'], | ||
plugins: { jest, '@typescript-eslint': ts, import: imprt, ts }, | ||
rules: { | ||
'import/no-extraneous-dependencies': ['error', { devDependencies: true }], | ||
'no-console': 'error', | ||
'import/first': 'error', | ||
'linebreak-style': 0, // disable linter linebreak rule, to allow for both unix and windows developement | ||
'import/no-unresolved': 'off', // Whatever IDE will pass an error if if the module is not found, so no reason for this.. | ||
'import/extensions': 'off', // That includes the production build.. We use linter for code checking / clean code optimization.. | ||
'no-use-before-define': 'off', | ||
}, | ||
ignores: [ | ||
'api/*', | ||
'build/*', | ||
'coverage/*', | ||
'dist/*', | ||
'node_modules/*', | ||
'script/*', | ||
'src/types.ts', | ||
], | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { createDefaultEsmPreset, type JestConfigWithTsJest } from 'ts-jest'; | ||
|
||
const jestConfig: JestConfigWithTsJest = { | ||
testEnvironment: 'node', | ||
transform: { | ||
...createDefaultEsmPreset().transform, | ||
'\\.[jt]sx?$": "ts-jest': [ | ||
'ts-jest', | ||
{ | ||
useESM: true, | ||
}, | ||
], | ||
}, | ||
collectCoverage: true, | ||
coverageReporters: ['text', 'cobertura', 'clover', 'lcov', 'json'], | ||
collectCoverageFrom: ['src/**/*.{ts,js}'], | ||
coveragePathIgnorePatterns: [ | ||
'node_modules', | ||
'./dist', | ||
'./src/app.module.ts', | ||
'./src/main.ts', | ||
'./src/bootstrap.ts', | ||
], | ||
extensionsToTreatAsEsm: ['.ts'], | ||
moduleFileExtensions: ['js', 'json', 'ts'], | ||
modulePathIgnorePatterns: [], | ||
coverageDirectory: '<rootDir>/coverage/', | ||
coverageThreshold: { | ||
global: { | ||
branches: 20, | ||
functions: 30, | ||
lines: 50, | ||
statements: 50, | ||
}, | ||
}, | ||
verbose: true, | ||
testRegex: './test/.*\\.spec.tsx?$', | ||
modulePaths: ['<rootDir>', '<rootDir>/src/', '<rootDir>/test/'], | ||
moduleDirectories: ['node_modules', 'src', 'test'], | ||
rootDir: './', | ||
roots: ['<rootDir>', 'src/', 'test/'], | ||
moduleNameMapper: { | ||
'^(\\.\\.?\\/.+)\\.jsx?$': '$1', | ||
}, | ||
}; | ||
|
||
export default jestConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.