Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.
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
33 changes: 33 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
root: true,
plugins: [
"@typescript-eslint"
],
extends: [
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json"
},
overrides: [
{
files: ["src/**/*.ts"],
rules: {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-duplicate-imports": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-floating-promises": "error"
}
}
]
};
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lib
node_modules
README.md
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"scripts": {
"build": "rimraf lib && tsc",
"dev": "npm run build -- --watch",
"eslint": "eslint src",
"eslint:fix": "eslint src --fix",
"prettier": "prettier src --write",
"test": "node lib/test"
},
"repository": {
Expand All @@ -31,13 +34,18 @@
"uuid": "^8.3.2"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
"@types/bcryptjs": "^2.4.2",
"@types/cli": "^0.11.20",
"@types/node": "^14.14.21",
"@types/pluralize": "^0.0.29",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"cagen": "^1.0.0",
"cli": "^1.0.1",
"eslint": "^8.23.0",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"sloc": "^0.2.1",
"sqlite3": "^5.0.2",
Expand Down
21 changes: 21 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
parser: "typescript",
printWidth: 80,
semi: true,
tabWidth: 4,
trailingComma: "all",
importOrder: [
"<THIRD_PARTY_MODULES>",
"(.*)builders/(.*)$",
"(.*)decorators/(.*)$",
"(.*)functional/(.*)$",
"(.*)typings/(.*)$",
"^[./]"
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderParserPlugins: [
"decorators-legacy",
"typescript",
]
};
7 changes: 3 additions & 4 deletions src/DEFAULT.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
class _Default
{
public readonly __title__!: "SafeTypeORM.DEFAULT"
class _Default {
public readonly __title__!: "SafeTypeORM.DEFAULT";
public readonly __description__!: "This is a dummy class to implement the default option.";
}

export type DEFAULT = _Default;
export const DEFAULT: _Default = new _Default();
export const DEFAULT: _Default = new _Default();
Loading