Skip to content

Commit

Permalink
Merge pull request #180 from ilovepixelart/feature/lint
Browse files Browse the repository at this point in the history
Lint
  • Loading branch information
ilovepixelart committed Mar 13, 2024
2 parents 4ad38ae + eb152d4 commit 531edee
Show file tree
Hide file tree
Showing 18 changed files with 621 additions and 267 deletions.
31 changes: 6 additions & 25 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
],
"extends": [
"eslint:recommended",
"plugin:sonarjs/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:sonarjs/recommended"
"plugin:@stylistic/recommended-extends"
],
"globals": {
"Atomics": "readonly",
Expand All @@ -25,33 +26,13 @@
"sourceType": "module"
},
"rules": {
"comma-dangle": [
"error",
"never"
],

"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/brace-style": ["error", "1tbs"],
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"indent": [
"error",
2
],
"arrow-parens": [
"error"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
]
"@typescript-eslint/consistent-indexed-object-style": "error"
},
"overrides": [
{
Expand Down
6 changes: 3 additions & 3 deletions jest-mongodb-config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export default {
mongodbMemoryServerOptions: {
binary: {
skipMD5: true
skipMD5: true,
},
autoStart: false,
instance: {}
instance: {},
},
useSharedDBForAllJestWorkers: false
useSharedDBForAllJestWorkers: false,
}
14 changes: 7 additions & 7 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ const mongo = require('@shelf/jest-mongodb/jest-preset')
const config = recursive(mongo, {
roots: [
'<rootDir>/src/',
'<rootDir>/tests/'
'<rootDir>/tests/',
],
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/interfaces/**/*.ts'
'!src/interfaces/**/*.ts',
],
coverageDirectory: 'coverage',
testMatch: [
'<rootDir>/tests/**/*.test.ts'
'<rootDir>/tests/**/*.test.ts',
],
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest'
'^.+\\.(t|j)sx?$': '@swc/jest',
},
testPathIgnorePatterns: [
'node_modules'
'node_modules',
],
watchPathIgnorePatterns: [
'globalConfig'
]
'globalConfig',
],
})

module.exports = config
Loading

0 comments on commit 531edee

Please sign in to comment.