@trenskow/app-express 0.0.63 → 0.0.65
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/.eslintrc.json +63 -0
- package/eslint.config.mjs +55 -0
- package/package.json +5 -2
- package/.eslintrc.cjs +0 -63
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"es6": true,
|
|
4
|
+
"node": true,
|
|
5
|
+
"mocha": true
|
|
6
|
+
},
|
|
7
|
+
"parserOptions": {
|
|
8
|
+
"ecmaVersion": 2022,
|
|
9
|
+
"sourceType": "module"
|
|
10
|
+
},
|
|
11
|
+
"extends": "eslint:recommended",
|
|
12
|
+
"rules": {
|
|
13
|
+
"indent": [
|
|
14
|
+
"error",
|
|
15
|
+
"tab",
|
|
16
|
+
{ "SwitchCase": 1 }
|
|
17
|
+
],
|
|
18
|
+
"linebreak-style": [
|
|
19
|
+
"error",
|
|
20
|
+
"unix"
|
|
21
|
+
],
|
|
22
|
+
"quotes": [
|
|
23
|
+
"error",
|
|
24
|
+
"single"
|
|
25
|
+
],
|
|
26
|
+
"semi": [
|
|
27
|
+
"error",
|
|
28
|
+
"always"
|
|
29
|
+
],
|
|
30
|
+
"no-console": [
|
|
31
|
+
"error", {
|
|
32
|
+
"allow": [
|
|
33
|
+
"warn",
|
|
34
|
+
"error",
|
|
35
|
+
"info"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"no-unused-vars": [
|
|
40
|
+
"error", {
|
|
41
|
+
"argsIgnorePattern": "^_"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"no-empty": [
|
|
45
|
+
"error", {
|
|
46
|
+
"allowEmptyCatch": true
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"no-trailing-spaces": [
|
|
50
|
+
"error", {
|
|
51
|
+
"ignoreComments": true
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"require-atomic-updates": "off",
|
|
55
|
+
"no-implicit-globals": [
|
|
56
|
+
"error"
|
|
57
|
+
],
|
|
58
|
+
"eol-last": [
|
|
59
|
+
"error",
|
|
60
|
+
"always"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import js from "@eslint/js";
|
|
5
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = path.dirname(__filename);
|
|
9
|
+
const compat = new FlatCompat({
|
|
10
|
+
baseDirectory: __dirname,
|
|
11
|
+
recommendedConfig: js.configs.recommended,
|
|
12
|
+
allConfig: js.configs.all
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export default [...compat.extends("eslint:recommended"), {
|
|
16
|
+
languageOptions: {
|
|
17
|
+
globals: {
|
|
18
|
+
...globals.node,
|
|
19
|
+
...globals.mocha,
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
ecmaVersion: 2022,
|
|
23
|
+
sourceType: "module",
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
rules: {
|
|
27
|
+
indent: ["error", "tab", {
|
|
28
|
+
SwitchCase: 1,
|
|
29
|
+
}],
|
|
30
|
+
|
|
31
|
+
"linebreak-style": ["error", "unix"],
|
|
32
|
+
quotes: ["error", "single"],
|
|
33
|
+
semi: ["error", "always"],
|
|
34
|
+
|
|
35
|
+
"no-console": ["error", {
|
|
36
|
+
allow: ["warn", "error", "info"],
|
|
37
|
+
}],
|
|
38
|
+
|
|
39
|
+
"no-unused-vars": ["error", {
|
|
40
|
+
argsIgnorePattern: "^_",
|
|
41
|
+
}],
|
|
42
|
+
|
|
43
|
+
"no-empty": ["error", {
|
|
44
|
+
allowEmptyCatch: true,
|
|
45
|
+
}],
|
|
46
|
+
|
|
47
|
+
"no-trailing-spaces": ["error", {
|
|
48
|
+
ignoreComments: true,
|
|
49
|
+
}],
|
|
50
|
+
|
|
51
|
+
"require-atomic-updates": "off",
|
|
52
|
+
"no-implicit-globals": ["error"],
|
|
53
|
+
"eol-last": ["error", "always"],
|
|
54
|
+
},
|
|
55
|
+
}];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trenskow/app-express",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"description": "A plugin for `@trenskow/app` that allows for using routes for express.`",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,9 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/trenskow/app-express#readme",
|
|
25
25
|
"devDependencies": {
|
|
26
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
27
|
+
"@eslint/js": "^9.13.0",
|
|
26
28
|
"@trenskow/app": "^0.8.39",
|
|
27
29
|
"chai": "^5.1.1",
|
|
28
|
-
"eslint": "^9.
|
|
30
|
+
"eslint": "^9.13.0",
|
|
31
|
+
"globals": "^15.11.0",
|
|
29
32
|
"mocha": "^10.7.3",
|
|
30
33
|
"supertest": "^7.0.0"
|
|
31
34
|
},
|
package/.eslintrc.cjs
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
'env': {
|
|
3
|
-
'es6': true,
|
|
4
|
-
'node': true,
|
|
5
|
-
'mocha': true
|
|
6
|
-
},
|
|
7
|
-
'parserOptions': {
|
|
8
|
-
'ecmaVersion': 2022,
|
|
9
|
-
'sourceType': 'module'
|
|
10
|
-
},
|
|
11
|
-
'extends': 'eslint:recommended',
|
|
12
|
-
'rules': {
|
|
13
|
-
'indent': [
|
|
14
|
-
'error',
|
|
15
|
-
'tab',
|
|
16
|
-
{ 'SwitchCase': 1 }
|
|
17
|
-
],
|
|
18
|
-
'linebreak-style': [
|
|
19
|
-
'error',
|
|
20
|
-
'unix'
|
|
21
|
-
],
|
|
22
|
-
'quotes': [
|
|
23
|
-
'error',
|
|
24
|
-
'single'
|
|
25
|
-
],
|
|
26
|
-
'semi': [
|
|
27
|
-
'error',
|
|
28
|
-
'always'
|
|
29
|
-
],
|
|
30
|
-
'no-console': [
|
|
31
|
-
'error', {
|
|
32
|
-
'allow': [
|
|
33
|
-
'warn',
|
|
34
|
-
'error',
|
|
35
|
-
'info'
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
'no-unused-vars': [
|
|
40
|
-
'error', {
|
|
41
|
-
'argsIgnorePattern': '^_'
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
'no-empty': [
|
|
45
|
-
'error', {
|
|
46
|
-
'allowEmptyCatch': true
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
'no-trailing-spaces': [
|
|
50
|
-
'error', {
|
|
51
|
-
'ignoreComments': true
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
'require-atomic-updates': 'off',
|
|
55
|
-
'no-implicit-globals': [
|
|
56
|
-
'error'
|
|
57
|
-
],
|
|
58
|
-
'eol-last': [
|
|
59
|
-
'error',
|
|
60
|
-
'always'
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
};
|