express-generator-typescript 2.7.3 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.js CHANGED
File without changes
@@ -19,8 +19,8 @@ const DEPENDENCIES = 'express dotenv morgan cookie-parser jet-logger ' +
19
19
  DEV_DEPENDENCIES = 'ts-node typescript nodemon find supertest vitest ' +
20
20
  '@types/node @types/find @types/morgan @types/cookie-parser ' +
21
21
  '@types/supertest fs-extra tsconfig-paths jiti @swc/core @types/jsonfile ' +
22
- '@types/fs-extra @types/module-alias @stylistic/eslint-plugin-js eslint ' +
23
- '@eslint/js typescript-eslint eslint-plugin-n @stylistic/eslint-plugin-ts';
22
+ '@types/fs-extra @types/module-alias @stylistic/eslint-plugin eslint ' +
23
+ '@eslint/js typescript-eslint eslint-plugin-n';
24
24
 
25
25
  // "ncp" options
26
26
  const ncpOpts = {
@@ -1,15 +1,15 @@
1
1
  import eslint from '@eslint/js';
2
2
  import tseslint from 'typescript-eslint';
3
- import stylisticJs from '@stylistic/eslint-plugin-js';
4
- import stylisticTs from '@stylistic/eslint-plugin-ts';
3
+ import stylistic from '@stylistic/eslint-plugin';
5
4
  import nodePlugin from 'eslint-plugin-n';
5
+ import { defineConfig } from 'eslint/config'
6
6
 
7
- export default tseslint.config(
7
+ export default defineConfig(
8
8
  eslint.configs.recommended,
9
9
  nodePlugin.configs['flat/recommended-script'],
10
10
  ...tseslint.configs.strictTypeChecked,
11
11
  ...tseslint.configs.stylisticTypeChecked,
12
- {
12
+ {
13
13
  ignores: [
14
14
  '**/node_modules/*',
15
15
  '**/*.mjs',
@@ -26,8 +26,7 @@ export default tseslint.config(
26
26
  },
27
27
  {
28
28
  plugins: {
29
- '@stylistic/js': stylisticJs,
30
- '@stylistic/ts': stylisticTs,
29
+ '@stylistic': stylistic,
31
30
  },
32
31
  },
33
32
  {
@@ -46,18 +45,24 @@ export default tseslint.config(
46
45
  '@typescript-eslint/restrict-plus-operands': [
47
46
  'warn', { allowNumberAndString: true },
48
47
  ],
49
- '@typescript-eslint/no-unused-vars': 'warn',
48
+ '@typescript-eslint/no-unused-vars': [
49
+ 'warn',
50
+ {
51
+ argsIgnorePattern: '^_',
52
+ varsIgnorePattern: '^_',
53
+ },
54
+ ],
50
55
  '@typescript-eslint/no-unsafe-enum-comparison': 0,
51
56
  '@typescript-eslint/no-unnecessary-type-parameters': 0,
52
- '@stylistic/js/no-extra-semi': 'warn',
57
+ '@stylistic/no-extra-semi': 'warn',
53
58
  'max-len': [
54
59
  'warn',
55
60
  {
56
61
  'code': 80,
57
62
  },
58
63
  ],
59
- '@stylistic/ts/semi': ['warn', 'always'],
60
- '@stylistic/ts/member-delimiter-style': ['warn', {
64
+ '@stylistic/semi': ['warn', 'always'],
65
+ '@stylistic/member-delimiter-style': ['warn', {
61
66
  'multiline': {
62
67
  'delimiter': 'comma',
63
68
  'requireLast': true,
@@ -31,8 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@eslint/js": "^9.25.1",
34
- "@stylistic/eslint-plugin-js": "^4.2.0",
35
- "@stylistic/eslint-plugin-ts": "^4.2.0",
34
+ "@stylistic/eslint-plugin": "^5.5.0",
36
35
  "@swc/core": "^1.11.22",
37
36
  "@types/cookie-parser": "^1.4.8",
38
37
  "@types/find": "^0.2.4",
@@ -97,7 +97,7 @@ async function deleteAllUsers(): Promise<void> {
97
97
 
98
98
  /**
99
99
  * Insert multiple users. Can't do multiple at once cause using a plain file
100
- * for nmow.
100
+ * for now.
101
101
  */
102
102
  async function insertMult(
103
103
  users: IUser[] | readonly IUser[],
@@ -128,3 +128,4 @@ export default {
128
128
  deleteAllUsers,
129
129
  insertMult,
130
130
  } as const;
131
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-generator-typescript",
3
- "version": "2.7.3",
3
+ "version": "2.7.4",
4
4
  "description": "Generate new Express applications similar to express-generate which but sets it up to use TypeScript instead",
5
5
  "scripts": {
6
6
  "express-generator-typescript": "node bin/cli.js",