Skip to content
Merged
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
12 changes: 11 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ export default tseslint.config(
tsconfigRootDir: import.meta.dirname,
},
},
}
},

/* --- Overrides --- */
{
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
},
},
}
);
2 changes: 1 addition & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export default {

/* Overrides */
moduleNameMapper: {
// '^@src/(.*)$': '<rootDir>/src/$1',
'^@src/(.*)$': '<rootDir>/src/$1',
},
};
93 changes: 83 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@vbetsch/config-prettier": "^1.0.0",
"@vbetsch/config-tsconfig": "^1.0.1",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.5"
},
Expand Down
1 change: 1 addition & 0 deletions src/cypher.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export class Cypher {}

Check warning on line 1 in src/cypher.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected empty class
2 changes: 2 additions & 0 deletions tests/cypher.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Cypher } from '@src/cypher';

describe('Cypher', () => {
it('should be OK', () => {
const cypher: Cypher = new Cypher();
Expand Down
15 changes: 8 additions & 7 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"extends": ["./tsconfig.json", "@vbetsch/config-tsconfig/build/base"],
"compilerOptions": {
/* IMPORTANT: You have to define it ! */
"outDir": "./dist/"
},
/* Overrides */
"exclude": [
"**/*.spec.ts",
"**/*.test.ts",
"**/dist/**",
"**/node_modules/**",
"**/tests/**",
"jest.config.ts"
]
],
"extends": ["./tsconfig.json", "@vbetsch/config-tsconfig/build/base"],
"compilerOptions": {
/* IMPORTANT: You have to define it ! */
"outDir": "./dist/"

/* Overrides */
},
}
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"exclude": ["**/node_modules/**", "**/dist/**"],
"extends": ["@vbetsch/config-tsconfig/base", "@vbetsch/config-tsconfig/strict"],
/* Overrides */
"compilerOptions": {
"baseUrl": ".",
"paths": {
// "@src/*": ["src/*"],
"@src/*": ["src/*"]
}
}
}
Loading