Skip to content

Commit

Permalink
upgrade to current standards
Browse files Browse the repository at this point in the history
  • Loading branch information
debkanchan committed Feb 13, 2024
1 parent 79f8342 commit b68ada3
Show file tree
Hide file tree
Showing 7 changed files with 4,205 additions and 12,418 deletions.
12 changes: 5 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,23 @@
},
"extends": [
"eslint:recommended",
"airbnb-base",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"airbnb-typescript/base",
"plugin:jest/recommended",
"plugin:prettier/recommended" //comment this if you want to disable prettier.
//"prettier" //Uncomment this if you want to disable prettier. useful for example when using vscode prettier or trunk.io
"plugin:jest/all",
// "plugin:prettier/recommended" //uncomment this if you want to enable prettier.
"prettier" //Uncomment this if you want to enable prettier. useful for example when using vscode prettier or trunk.io
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["**/tsconfig.json"]
"project": ["tsconfig.json", "test/tsconfig.json"]
},
"plugins": ["@typescript-eslint", "jest"],
"rules": {
"no-console": ["warn", { "allow": ["info", "warn", "error"] }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/member-ordering": "warn"
},
"ignorePatterns": "*.js"
"ignorePatterns": ["*.js", "**/gen"]
}
8 changes: 1 addition & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */

module.exports = {
export default {
preset: "ts-jest/presets/default-esm",
globals: {
"ts-jest": {
useESM: true,
},
},
testEnvironment: "node",
runner: "groups",
resolver: "jest-node-exports-resolver",
setupFiles: ["dotenv/config"],
};
Loading

0 comments on commit b68ada3

Please sign in to comment.