Skip to content

Commit 7a084e2

Browse files
committed
fix: conflicts
2 parents 0ebecc1 + 9c55f8d commit 7a084e2

File tree

2 files changed

+76
-78
lines changed

2 files changed

+76
-78
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @imqueue/pg-cache
22

3+
V3 uses sequelize v6.x
4+
35
Links `@imqueue/pg-pubsub` with `@imqueue/tag-cache` and provides generic
46
way to implement intellectual cache management based on database changes
57
notifications for @imqueue-based service methods.
Lines changed: 74 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,48 @@
1-
{
2-
"env": {
3-
"browser": true,
4-
"es6": true,
5-
"node": true
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import globals from "globals";
3+
import tsParser from "@typescript-eslint/parser";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
6+
import js from "@eslint/js";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all
15+
});
16+
17+
export default [...compat.extends(
18+
"plugin:@typescript-eslint/recommended",
19+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
20+
), {
21+
plugins: {
22+
"@typescript-eslint": typescriptEslint,
623
},
7-
"extends": [
8-
"plugin:@typescript-eslint/recommended",
9-
"plugin:@typescript-eslint/recommended-requiring-type-checking"
10-
],
11-
"parser": "@typescript-eslint/parser",
12-
"parserOptions": {
13-
"project": "tsconfig.json",
14-
"sourceType": "module"
24+
25+
languageOptions: {
26+
globals: {
27+
...globals.browser,
28+
...globals.node,
29+
},
30+
31+
parser: tsParser,
32+
ecmaVersion: 5,
33+
sourceType: "module",
34+
35+
parserOptions: {
36+
project: "tsconfig.json",
37+
},
1538
},
16-
"plugins": [
17-
"@typescript-eslint"
18-
],
19-
"rules": {
39+
40+
rules: {
2041
"@typescript-eslint/adjacent-overload-signatures": "error",
2142
"@typescript-eslint/array-type": "error",
22-
"@typescript-eslint/ban-types": "error",
23-
"@typescript-eslint/class-name-casing": "error",
2443
"@typescript-eslint/consistent-type-assertions": "error",
2544
"@typescript-eslint/interface-name-prefix": "off",
26-
"@typescript-eslint/member-delimiter-style": [
27-
"error",
28-
{
29-
"multiline": {
30-
"delimiter": "semi",
31-
"requireLast": true
32-
},
33-
"singleline": {
34-
"delimiter": "semi",
35-
"requireLast": true
36-
}
37-
}
38-
],
45+
3946
"@typescript-eslint/no-misused-promises": "off",
4047
"@typescript-eslint/no-empty-function": "error",
4148
"@typescript-eslint/no-empty-interface": "error",
@@ -48,37 +55,27 @@
4855
"@typescript-eslint/prefer-for-of": "error",
4956
"@typescript-eslint/prefer-function-type": "error",
5057
"@typescript-eslint/prefer-namespace-keyword": "error",
51-
"@typescript-eslint/unbound-method": "off",
52-
"@typescript-eslint/quotes": [
53-
"error",
54-
"single",
55-
{
56-
"avoidEscape": true
57-
}
58-
],
59-
"@typescript-eslint/semi": [
60-
"error",
61-
"always",
62-
{
63-
"omitLastInOneLineBlock": true
64-
}
65-
],
58+
"@typescript-eslint/unbound-method": "off",
59+
60+
"quotes": ["error", "single", {
61+
avoidEscape: true,
62+
}],
63+
64+
"semi": ["error", "always", {
65+
omitLastInOneLineBlock: true,
66+
}],
67+
6668
"@typescript-eslint/triple-slash-reference": "error",
6769
"@typescript-eslint/unified-signatures": "error",
68-
"arrow-parens": [
69-
"off",
70-
"as-needed"
71-
],
72-
"camelcase": "error",
70+
"arrow-parens": ["off", "as-needed"],
71+
camelcase: "error",
7372
"comma-dangle": "off",
74-
"complexity": "off",
73+
complexity: "off",
7574
"constructor-super": "error",
7675
"dot-notation": "error",
77-
"eqeqeq": [
78-
"error",
79-
"smart"
80-
],
76+
eqeqeq: ["error", "smart"],
8177
"guard-for-in": "error",
78+
8279
"id-blacklist": [
8380
"error",
8481
"any",
@@ -88,16 +85,16 @@
8885
"string",
8986
"Boolean",
9087
"boolean",
91-
"Undefined"
88+
"Undefined",
9289
],
90+
9391
"id-match": "error",
9492
"max-classes-per-file": "off",
95-
"max-len": [
96-
"error",
97-
{
98-
"code": 80
99-
}
100-
],
93+
94+
"max-len": ["error", {
95+
code: 80,
96+
}],
97+
10198
"new-parens": "error",
10299
"no-bitwise": "off",
103100
"no-caller": "error",
@@ -110,12 +107,11 @@
110107
"no-invalid-this": "off",
111108
"no-multiple-empty-lines": "off",
112109
"no-new-wrappers": "error",
113-
"no-shadow": [
114-
"error",
115-
{
116-
"hoist": "all"
117-
}
118-
],
110+
111+
"no-shadow": ["error", {
112+
hoist: "all",
113+
}],
114+
119115
"no-throw-literal": "error",
120116
"no-trailing-spaces": "error",
121117
"no-undef-init": "error",
@@ -125,16 +121,16 @@
125121
"no-unused-labels": "error",
126122
"no-var": "error",
127123
"object-shorthand": "error",
128-
"one-var": [
129-
"error",
130-
"never"
131-
],
124+
"one-var": ["error", "never"],
132125
"prefer-arrow/prefer-arrow-functions": "off",
133126
"prefer-const": "error",
134-
"radix": "error",
127+
radix: "error",
135128
"spaced-comment": "off",
136129
"use-isnan": "error",
137130
"valid-typeof": "off",
138-
"semi": ["error", "always", { "omitLastInOneLineBlock": true }]
139-
}
140-
}
131+
132+
semi: ["error", "always", {
133+
omitLastInOneLineBlock: true,
134+
}],
135+
},
136+
}];

0 commit comments

Comments
 (0)