Skip to content

Commit 538f0a4

Browse files
authored
Merge pull request #158 from thematters/develop
release: 2.1.0
2 parents 528c9cd + 14e4fda commit 538f0a4

File tree

13 files changed

+1492
-1208
lines changed

13 files changed

+1492
-1208
lines changed

.eslintrc.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
- name: Setup Node.js
2121
uses: actions/setup-node@v2
2222
with:
23-
node-version: '16'
23+
node-version: '18'
2424
registry-url: 'https://registry.npmjs.org'
2525
always-auth: true
2626

2727
- name: Cache Dependencies
2828
id: cache
29-
uses: actions/cache@v2
29+
uses: actions/cache@v4
3030
with:
3131
path: ~/.npm
3232
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
- name: Setup Node.js
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '16'
18+
node-version: '18'
1919
registry-url: 'https://registry.npmjs.org'
2020
always-auth: true
2121

2222
- name: Cache Dependencies
2323
id: cache
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: ~/.npm
2727
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Caching and invalidation mechanisms (plugins, directives) of Apollo GraphQL, used by [`matters-server`](https://github.com/thematters/matters-server).
66

7-
[`responseCachePlugin`](./src/plugins/responseCachePlugin.ts) is forked from [`apollo-server-plugin-response-cache`](https://github.com/apollographql/apollo-server/tree/main/packages/apollo-server-plugin-response-cache).
7+
[`responseCachePlugin`](./src/plugins/responseCachePlugin.ts) is forked from [`apollo-server-plugin-response-cache`](https://github.com/apollographql/apollo-server/tree/29322ffb8ccf2a07390465d63a2ba16df5603876/packages/plugin-response-cache).
88

99
### How it works?
1010

eslint.config.mjs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
"eslint:recommended",
19+
"plugin:@typescript-eslint/eslint-recommended",
20+
"plugin:@typescript-eslint/recommended",
21+
"prettier",
22+
), {
23+
plugins: {
24+
"@typescript-eslint": typescriptEslint,
25+
},
26+
27+
languageOptions: {
28+
globals: {
29+
...globals.node,
30+
},
31+
32+
parser: tsParser,
33+
},
34+
35+
rules: {
36+
camelcase: "off",
37+
"@typescript-eslint/camelcase": "off",
38+
"@typescript-eslint/explicit-function-return-type": "off",
39+
"@typescript-eslint/no-explicit-any": "off",
40+
"@typescript-eslint/no-non-null-assertion": "off",
41+
"@typescript-eslint/no-unused-vars": "off",
42+
"@typescript-eslint/explicit-module-boundary-types": "off",
43+
},
44+
},
45+
{
46+
files: ["dist/**/*"],
47+
rules: {
48+
"@typescript-eslint/no-require-imports": "off",
49+
},
50+
}
51+
52+
];

0 commit comments

Comments
 (0)