Skip to content

Commit 83a4dc2

Browse files
authored
Merge pull request #507 from saasquatch/jayden/express-boilerplate-maintenance
Modernize express-boilerplate package
2 parents a23e95f + 9cc0de8 commit 83a4dc2

17 files changed

Lines changed: 2078 additions & 5300 deletions

packages/express-boilerplate/.eslintrc.cjs

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
dist
3+
*.tsbuildinfo
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
const { defineConfig } = require("eslint/config");
2+
3+
const tsParser = require("@typescript-eslint/parser");
4+
const typescriptEslint = require("@typescript-eslint/eslint-plugin");
5+
const js = require("@eslint/js");
6+
7+
const { FlatCompat } = require("@eslint/eslintrc");
8+
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all,
13+
});
14+
15+
module.exports = defineConfig([
16+
{
17+
extends: compat.extends(
18+
"eslint:recommended",
19+
"plugin:@typescript-eslint/strict-type-checked",
20+
"plugin:@typescript-eslint/stylistic-type-checked",
21+
),
22+
23+
languageOptions: {
24+
parserOptions: {
25+
project: true,
26+
tsconfigRootDir: __dirname,
27+
},
28+
29+
parser: tsParser,
30+
},
31+
32+
plugins: {
33+
"@typescript-eslint": typescriptEslint,
34+
},
35+
36+
rules: {
37+
"@typescript-eslint/no-unsafe-member-access": "off",
38+
"@typescript-eslint/no-unsafe-call": "off",
39+
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
40+
},
41+
},
42+
]);

0 commit comments

Comments
 (0)