Skip to content

Commit c808c9b

Browse files
fratzingerforgot
andauthored
refactor!: init dove (#691)
* Updated @feathersjs dependencies to ^5.0.0-pre.3 * Added @feathersjs/adapter-commons to import `Paginated` * Updated Typescript to 4.2.4 * Set minimum Typescript to 4.0 for dslint * Re-import Paginated * Updated `combine` to work with Dove Re-implemented `processHooks` inside, since that’s all it was calling. * Updated dslint tests - all project tests passing Changed `feathers` import Added required properties for `HookContext` Updated typeexpectations for dslint since `Hook` is now an alias * Updated @feathersjs dependencies to ^5.0.0-pre.4 * Re-import Paginated * Removed @feathersjs/adapter-commons from dependencies * Updated @feathersjs dependencies to ^5.0.0-pre.9 All tests passing * refactor!: move to feathers v5 * chore: update package-lock * fix: use generics for hooks - @see docs link - correct utils docs link - export * from - move types to individual files - use prettier * refactor: move to generic HookContext * refactor: make tests run again * refactor: pass tests * chore: add prettier Co-authored-by: Jesse Cox <[email protected]>
1 parent c5bf8cd commit c808c9b

File tree

125 files changed

+6984
-6230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+6984
-6230
lines changed

.eslintrc

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
},
88
"extends": [
99
"plugin:@typescript-eslint/recommended",
10-
"plugin:@typescript-eslint/recommended-requiring-type-checking"
10+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
11+
"plugin:prettier/recommended"
1112
],
1213
"parser": "@typescript-eslint/parser",
1314
"parserOptions": {
@@ -17,10 +18,11 @@
1718
"plugins": [
1819
"eslint-plugin-import",
1920
"eslint-plugin-prefer-arrow",
20-
"@typescript-eslint"
21+
"@typescript-eslint",
22+
"prettier"
2123
],
2224
"rules": {
23-
"indent": ["warn", 2],
25+
// "indent": ["warn", 2],
2426
"prefer-rest-params": "off",
2527
"prefer-spread": "off",
2628
"@typescript-eslint/no-unsafe-member-access": "off",
@@ -52,7 +54,7 @@
5254
"@typescript-eslint/explicit-member-accessibility": [
5355
"error",
5456
{
55-
"accessibility": "no-public"
57+
"accessibility": "no-public"
5658
}
5759
],
5860
"@typescript-eslint/naming-convention": "off",
@@ -68,10 +70,6 @@
6870
"@typescript-eslint/prefer-for-of": "error",
6971
"@typescript-eslint/prefer-function-type": "error",
7072
"@typescript-eslint/prefer-namespace-keyword": "error",
71-
"@typescript-eslint/quotes": [
72-
"error",
73-
"single"
74-
],
7573
"@typescript-eslint/triple-slash-reference": [
7674
"error",
7775
{
@@ -82,28 +80,16 @@
8280
],
8381
"@typescript-eslint/unified-signatures": "error",
8482
"@typescript-eslint/consistent-type-imports": ["warn", { "prefer": "type-imports" }],
85-
"@typescript-eslint/object-curly-spacing": ["warn", "always"],
86-
"arrow-parens": [
87-
"off",
88-
"always"
89-
],
90-
"comma-dangle": "error",
83+
"arrow-parens": ["off", "always"],
9184
"complexity": "off",
9285
"constructor-super": "error",
93-
"eqeqeq": [
94-
"error",
95-
"smart"
96-
],
86+
"eqeqeq": ["error", "smart"],
9787
"guard-for-in": "error",
9888
"id-blacklist": "off",
9989
"id-match": "off",
10090
"import/order": "off",
101-
// "jsdoc/check-alignment": "error",
102-
// "jsdoc/check-indentation": "error",
103-
// "jsdoc/newline-after-description": "error",
10491
"max-classes-per-file": "off",
10592
"max-len": "off",
106-
"new-parens": "error",
10793
"no-bitwise": "error",
10894
"no-caller": "error",
10995
"no-cond-assign": "error",
@@ -121,28 +107,21 @@
121107
}
122108
],
123109
"no-throw-literal": "error",
124-
"no-trailing-spaces": "error",
125110
"no-undef-init": "error",
126111
"no-underscore-dangle": "off",
127112
"no-unsafe-finally": "error",
128113
"no-unused-labels": "error",
129114
"no-var": "error",
130115
"object-shorthand": "error",
131-
"one-var": [
132-
"error",
133-
"never"
134-
],
116+
"one-var": ["error", "never"],
135117
"prefer-arrow/prefer-arrow-functions": "off",
136118
"prefer-const": "error",
137119
"radix": "error",
138-
"space-before-function-paren": "error",
139120
"spaced-comment": [
140121
"error",
141122
"always",
142123
{
143-
"markers": [
144-
"/"
145-
]
124+
"markers": ["/"]
146125
}
147126
],
148127
"use-isnan": "error",

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"arrowParens": "avoid",
4+
"bracketSpacing": true,
5+
"printWidth": 100,
6+
"semi": true,
7+
"singleQuote": true,
8+
"tabWidth": 2,
9+
"bracketSameLine": false,
10+
"htmlWhitespaceSensitivity": "ignore"
11+
}

0 commit comments

Comments
 (0)