Skip to content
Open
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
2 changes: 1 addition & 1 deletion .boilerplate-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
813c05c22fe6ab819ad616e30ae2c8f86efadb35
d769f2d57af542dd1ef245dc3594d9e5ac6e31dc
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/*
22.13.1
2 changes: 1 addition & 1 deletion .watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
1 change: 0 additions & 1 deletion __tests__/Tests/Lint.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-magic-numbers -- not necessary in test file */
/**
* @Author: Rostislav Simonik <rostislav.simonik@technologystudio.sk>
* @Date: 2018-01-09T00:56:40+01:00
Expand Down
7 changes: 7 additions & 0 deletions __tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"paths": {
"Config/*": [ "./__tests__/Config/*" ],
"Data/*": [ "./__tests__/Data/*" ],
"Utils/*": [ "./__tests__/Utils/*" ],
"src": [ "./src" ],
"src/*": [ "./src/*" ]
}
},
"include": [
"./**/*.ts"
Expand Down
1 change: 1 addition & 0 deletions eslint-ci-rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
13 changes: 13 additions & 0 deletions eslint-ci.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import ciRules from './eslint-ci-rules.json' with { type: 'json' }

export default (async function config() {
const { default: defaultConfigPromise } = await import('./eslint.config.js')
const defaultConfig = await defaultConfigPromise
return [
...defaultConfig,
{
files: ['**/*.ts', '**/*.tsx'],
rules: ciRules.reduce((acc, rule) => ({ ...acc, [rule]: 'warn' }), {}),
},
]
})()
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export default {
tsconfig: '<rootDir>/__tests__/tsconfig.json'
}]
},
moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths ?? {}, { prefix: '<rootDir>/' }),
moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, { prefix: '<rootDir>/' }),
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"build": "yarn build:clean && yarn build:lib",
"compare-boilerplate-version": "./scripts/compare-boilerplate-version.sh",
"coverage": "jest --coverage && open coverage/lcov-report/index.html || xdg-open coverage/lcov-report/index.html",
"lint:ci": "yarn lint",
"lint:ci": "yarn eslint -c eslint-ci.config.js --cache . && yarn txo-eslint ccr --cache",
"lint:fix": "eslint . --fix",
"lint": "eslint --max-warnings 0 .",
"prepare": "husky && yarn build",
Expand All @@ -39,12 +39,12 @@
"node": ">=18.0.0"
},
"dependencies": {
"eslint-config-txo-typescript": "^7.3.22",
"eslint-config-txo-typescript": "^7.4.10",
"eslint-config-txo-typescript-react": "^3.0.6"
},
"devDependencies": {
"@txo-peer-dep/log": "^4.0.4",
"@txo/commitlint": "^1.0.21",
"@txo/commitlint": "^1.0.22",
"@txo/log-console": "^3.0.0",
"@txo/semantic-release": "^2.0.10",
"@txo/tsconfig": "^2.0.0",
Expand Down
222 changes: 111 additions & 111 deletions yarn.lock

Large diffs are not rendered by default.

Loading