@raisenow/tamaro-cli 1.7.0 → 1.8.0-dev.2
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/.husky/pre-commit +6 -0
- package/.nvmrc +1 -1
- package/bitbucket-pipelines.yml +3 -10
- package/dist/cli.js +73 -73
- package/dist/{env-Bx5mwt8E.js → env-B20cxmcB.js} +46 -26
- package/dist/webpack.config.js +10 -10
- package/eslint.config.ts +30 -0
- package/package.json +26 -26
- package/tsdown.config.ts +5 -5
- package/vitest.config.ts +8 -8
- package/.eslintignore +0 -7
- package/.eslintrc.cjs +0 -148
- package/.history/.eslintignore_20220609190420 +0 -4
- package/.history/.eslintignore_20230911190227 +0 -6
- package/.history/.eslintignore_20230911211247 +0 -7
- package/.history/.eslintignore_20230911211250 +0 -7
- package/.history/.eslintrc_20230911201601.js +0 -49
- package/.history/.eslintrc_20230911201643.js +0 -49
- package/.history/.eslintrc_20230911201735.js +0 -49
- package/.history/.eslintrc_20230911201913.js +0 -64
- package/.history/.eslintrc_20230911202002.js +0 -62
- package/.history/.eslintrc_20230911202138.js +0 -133
- package/.history/.eslintrc_20230911202140.js +0 -133
- package/.history/.eslintrc_20230911202145.js +0 -133
- package/.history/.eslintrc_20230911202147.js +0 -133
- package/.history/.eslintrc_20230911202406.js +0 -133
- package/.history/.eslintrc_20230911202447.js +0 -133
- package/.history/.eslintrc_20230911202453.js +0 -133
- package/.history/.eslintrc_20230911202511.js +0 -133
- package/.history/.eslintrc_20230911202527.js +0 -133
- package/.history/.eslintrc_20230911202639.js +0 -125
- package/.history/.eslintrc_20230911202721.js +0 -149
- package/.history/.eslintrc_20230911202746.js +0 -149
- package/.history/.eslintrc_20240423125702.cjs +0 -148
- package/.history/.gitignore_20220609190420 +0 -14
- package/.history/.gitignore_20230911185959 +0 -4
- package/.history/.gitignore_20230911190006 +0 -4
- package/.history/.gitignore_20230911190007 +0 -4
- package/.history/.nmprc_20241004144025 +0 -0
- package/.history/.nmprc_20241004144041 +0 -1
- package/.history/.npmrc_20241004144040 +0 -1
- package/.history/.npmrc_20241004144152 +0 -1
- package/.history/.npmrc_20241004145639 +0 -2
- package/.history/.npmrc_20241004145649 +0 -1
- package/.history/.nvmrc_20250729181039 +0 -1
- package/.history/.prettierignore_20220609190420 +0 -5
- package/.history/.prettierignore_20230911190242 +0 -7
- package/.history/.prettierignore_20230911190245 +0 -7
- package/.history/.prettierignore_20230911211301 +0 -8
- package/.history/CHANGELOG_20250729195139.md +0 -28
- package/.history/CHANGELOG_20250729195148.md +0 -29
- package/.history/CHANGELOG_20250729195156.md +0 -28
- package/.history/CHANGELOG_20250729195218.md +0 -29
- package/.history/CHANGELOG_20250729195223.md +0 -27
- package/.history/CHANGELOG_20250729195506.md +0 -29
- package/.history/CHANGELOG_20250729224404.md +0 -30
- package/.history/CHANGELOG_20250729224411.md +0 -30
- package/.history/CHANGELOG_20250730124538.md +0 -41
- package/.history/CHANGELOG_20250730124603.md +0 -38
- package/.history/CHANGELOG_20250730124627.md +0 -36
- package/.history/CHANGELOG_20250730124638.md +0 -36
- package/.history/CHANGELOG_20250730124640.md +0 -36
- package/.history/README_20230911145033.md +0 -245
- package/.history/README_20230911151749.md +0 -245
- package/.history/README_20230911151844.md +0 -245
- package/.history/README_20230911153040.md +0 -245
- package/.history/README_20230911202959.md +0 -245
- package/.history/bitbucket-pipelines_20250729111540.yml +0 -46
- package/.history/bitbucket-pipelines_20250729210338.yml +0 -46
- package/.history/bitbucket-pipelines_20250729210340.yml +0 -46
- package/.history/bitbucket-pipelines_20250729210342.yml +0 -46
- package/.history/bitbucket-pipelines_20250729222234.yml +0 -47
- package/.history/bitbucket-pipelines_20250729222554.yml +0 -47
- package/.history/bitbucket-pipelines_20250729222555.yml +0 -47
- package/.history/bitbucket-pipelines_20250729223022.yml +0 -46
- package/.history/bitbucket-pipelines_20250729223024.yml +0 -46
- package/.history/cli_20241005014539 +0 -3
- package/.history/cli_20241005014542 +0 -3
- package/.history/cli_20241005014848 +0 -3
- package/.history/dist/chunk-FICM3HUI_20230912183408.js +0 -302
- package/.history/dist/chunk-FICM3HUI_20230912201610.js +0 -302
- package/.history/package_20250729182417.json +0 -111
- package/.history/package_20250729182419.json +0 -111
- package/.history/package_20250729182618.json +0 -110
- package/.history/package_20250729182834.json +0 -110
- package/.history/package_20250729183032.json +0 -110
- package/.history/package_20250729183033.json +0 -110
- package/.history/package_20250729185750.json +0 -110
- package/.history/package_20250729185815.json +0 -110
- package/.history/package_20250729185846.json +0 -110
- package/.history/package_20250729185854.json +0 -110
- package/.history/package_20250729185943.json +0 -110
- package/.history/package_20250729190645.json +0 -110
- package/.history/package_20250729195934.json +0 -110
- package/.history/package_20250729200013.json +0 -110
- package/.history/package_20250729200056.json +0 -110
- package/.history/package_20250729200434.json +0 -110
- package/.history/package_20250729200808.json +0 -110
- package/.history/package_20250729200944.json +0 -110
- package/.history/package_20250729214420.json +0 -114
- package/.history/package_20250729223112.json +0 -110
- package/.history/package_20250729223127.json +0 -110
- package/.history/package_20250729223134.json +0 -110
- package/.history/package_20250730124647.json +0 -114
- package/.history/tsconfig_20241005001442.json +0 -34
- package/.history/tsconfig_20241005001500.json +0 -34
- package/.history/tsconfig_20241005001540.json +0 -34
- package/.history/tsconfig_20241005014429.json +0 -42
- package/.history/tsconfig_20241005014436.json +0 -42
- package/.history/tsconfig_20241005014439.json +0 -38
- package/.history/tsconfig_20241005014455.json +0 -38
- package/.history/tsconfig_20241005014521.json +0 -38
- package/.history/vitest.config_20250729214539.ts +0 -0
- package/.history/vitest.config_20250729214659.ts +0 -24
- package/.history/vitest.config_20250729214748.ts +0 -21
- package/.history/vitest.config_20250729214825.ts +0 -21
- package/.history/vitest.config_20250729214902.ts +0 -21
- package/.history/vitest.config_20250729222125.ts +0 -20
- package/.history/vitest.config_20250729222213.ts +0 -20
- package/.idea/codeStyles/Project.xml +0 -131
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -17
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/tamaro-cli.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.prettierrc.cjs +0 -19
package/dist/webpack.config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as logDataTable, b as resolveEslintPluginConfig, d as HTTPS_CRT_FILE, f as HTTPS_KEY_FILE, g as getRelativePaths, h as getPaths, k as logTitle, m as getIfCoreFns, p as extensions, r as getEnvVars, v as resolveApp } from "./env-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { E as logDataTable, b as resolveEslintPluginConfig, d as HTTPS_CRT_FILE, f as HTTPS_KEY_FILE, g as getRelativePaths, h as getPaths, k as logTitle, m as getIfCoreFns, p as extensions, r as getEnvVars, v as resolveApp } from "./env-B20cxmcB.js";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { existsSync } from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
5
|
import { getIfUtils, removeEmpty } from "webpack-config-utils";
|
|
6
6
|
import { globSync } from "glob";
|
|
7
7
|
import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin";
|
|
@@ -36,7 +36,7 @@ var InterpolateHtmlPlugin = class {
|
|
|
36
36
|
});
|
|
37
37
|
hooks.afterTemplateExecution.tap(PLUGIN_NAME, (data) => {
|
|
38
38
|
Object.entries(this.replacements).forEach(([key, value]) => {
|
|
39
|
-
data.html = data.html.
|
|
39
|
+
data.html = data.html.replaceAll(new RegExp(`%${escapeStringRegexp(key)}%`, "g"), value ?? "");
|
|
40
40
|
});
|
|
41
41
|
return data;
|
|
42
42
|
});
|
|
@@ -106,10 +106,10 @@ const getWebpackConfig = (env) => {
|
|
|
106
106
|
return removeEmpty({
|
|
107
107
|
mode: ifMin("production", "development"),
|
|
108
108
|
resolve: {
|
|
109
|
-
symlinks:
|
|
109
|
+
symlinks: true,
|
|
110
110
|
extensions: [...extensions, "..."],
|
|
111
111
|
modules: [paths.appNodeModules, "node_modules"],
|
|
112
|
-
alias: { "core-js": dirname(require.resolve("core-js/package.json")) },
|
|
112
|
+
alias: { "core-js": path.dirname(require.resolve("core-js/package.json")) },
|
|
113
113
|
plugins: [new TsconfigPathsPlugin({
|
|
114
114
|
configFile: paths.appTsConfig,
|
|
115
115
|
extensions
|
|
@@ -258,8 +258,8 @@ const getWebpackConfig = (env) => {
|
|
|
258
258
|
server: ifHttps({
|
|
259
259
|
type: "https",
|
|
260
260
|
options: {
|
|
261
|
-
cert: resolve(paths.root, HTTPS_CRT_FILE),
|
|
262
|
-
key: resolve(paths.root, HTTPS_KEY_FILE)
|
|
261
|
+
cert: path.resolve(paths.root, HTTPS_CRT_FILE),
|
|
262
|
+
key: path.resolve(paths.root, HTTPS_KEY_FILE)
|
|
263
263
|
}
|
|
264
264
|
})
|
|
265
265
|
},
|
|
@@ -277,7 +277,7 @@ const getWebpackConfig = (env) => {
|
|
|
277
277
|
ifMin(new CleanWebpackPlugin({})),
|
|
278
278
|
...appHtmlFiles.map((file) => new HtmlWebpackPlugin({
|
|
279
279
|
template: file,
|
|
280
|
-
filename: basename(file),
|
|
280
|
+
filename: path.basename(file),
|
|
281
281
|
inject: false,
|
|
282
282
|
minify: false
|
|
283
283
|
})),
|
package/eslint.config.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
baseConfig,
|
|
3
|
+
defineConfig,
|
|
4
|
+
GLOB_MARKDOWN,
|
|
5
|
+
GLOB_SRC,
|
|
6
|
+
OFF,
|
|
7
|
+
} from '@rnw-npm/eslint-config'
|
|
8
|
+
|
|
9
|
+
export default defineConfig([
|
|
10
|
+
...baseConfig,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* "tamaro-cli" specific overrides.
|
|
14
|
+
*/
|
|
15
|
+
{
|
|
16
|
+
files: [GLOB_SRC],
|
|
17
|
+
name: 'tamaro-cli/overrides/ts',
|
|
18
|
+
rules: {
|
|
19
|
+
'jsdoc/convert-to-jsdoc-comments': OFF,
|
|
20
|
+
'no-useless-assignment': OFF,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
files: [GLOB_MARKDOWN],
|
|
25
|
+
name: 'tamaro-cli/overrides/md',
|
|
26
|
+
rules: {
|
|
27
|
+
'markdown/no-multiple-h1': OFF,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raisenow/tamaro-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0-dev.2",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "RaiseNow",
|
|
6
6
|
"email": "development@raisenow.com"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"bin": "dist/cli.js",
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=22.22.
|
|
12
|
-
"pnpm": ">=10.
|
|
11
|
+
"node": ">=22.22.2",
|
|
12
|
+
"pnpm": ">=10.33.0",
|
|
13
13
|
"npm": "please-use-pnpm",
|
|
14
14
|
"yarn": "please-use-pnpm"
|
|
15
15
|
},
|
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
"@types/prompts": "^2.4.9",
|
|
31
31
|
"@types/resolve-bin": "^0.4.3",
|
|
32
32
|
"@types/webpack-config-utils": "^2.3.4",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
34
|
-
"@typescript-eslint/parser": "^7.18.0",
|
|
35
33
|
"autoprefixer": "^10.4.27",
|
|
36
34
|
"babel-loader": "^10.1.1",
|
|
37
35
|
"babel-plugin-istanbul": "^7.0.1",
|
|
@@ -46,34 +44,24 @@
|
|
|
46
44
|
"css-minimizer-webpack-plugin": "^8.0.0",
|
|
47
45
|
"dotenv": "^17.3.1",
|
|
48
46
|
"escape-string-regexp": "^5.0.0",
|
|
49
|
-
"eslint": "^8.57.1",
|
|
50
|
-
"eslint-config-prettier": "^10.1.8",
|
|
51
|
-
"eslint-import-resolver-typescript": "^3.10.1",
|
|
52
|
-
"eslint-plugin-deprecation": "^3.0.0",
|
|
53
|
-
"eslint-plugin-import": "^2.32.0",
|
|
54
|
-
"eslint-plugin-markdownlint": "^0.9.0",
|
|
55
|
-
"eslint-plugin-promise": "^7.2.1",
|
|
56
|
-
"eslint-plugin-unused-imports": "^3.2.0",
|
|
57
|
-
"eslint-plugin-yml": "^1.19.1",
|
|
58
47
|
"eslint-webpack-plugin": "^5.0.3",
|
|
59
48
|
"execa": "^9.6.1",
|
|
60
49
|
"file-loader": "^6.2.0",
|
|
61
50
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
62
51
|
"glob": "^13.0.6",
|
|
63
|
-
"handlebars": "^4.7.
|
|
52
|
+
"handlebars": "^4.7.9",
|
|
64
53
|
"handlebars-helpers": "^0.10.0",
|
|
65
54
|
"html-loader": "^5.1.0",
|
|
66
55
|
"html-webpack-plugin": "^5.6.6",
|
|
67
56
|
"json-loader": "^0.5.7",
|
|
68
|
-
"lodash": "^4.17.
|
|
69
|
-
"mini-css-extract-plugin": "^2.10.
|
|
57
|
+
"lodash": "^4.17.21",
|
|
58
|
+
"mini-css-extract-plugin": "^2.10.2",
|
|
70
59
|
"node-notifier": "^10.0.1",
|
|
71
60
|
"portfinder": "^1.0.38",
|
|
72
61
|
"postcss": "^8.5.8",
|
|
73
62
|
"postcss-import": "^16.1.1",
|
|
74
63
|
"postcss-loader": "^8.2.1",
|
|
75
64
|
"postcss-nested": "^7.0.2",
|
|
76
|
-
"prettier": "^3.8.1",
|
|
77
65
|
"prompts": "^2.4.2",
|
|
78
66
|
"react-refresh": "^0.18.0",
|
|
79
67
|
"resolve-url-loader": "^5.0.0",
|
|
@@ -83,27 +71,39 @@
|
|
|
83
71
|
"style-loader": "^4.0.0",
|
|
84
72
|
"terser-webpack-plugin": "^5.4.0",
|
|
85
73
|
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
86
|
-
"tsdown": "^0.21.
|
|
74
|
+
"tsdown": "^0.21.7",
|
|
87
75
|
"typescript": "^6.0.2",
|
|
88
76
|
"url-loader": "^4.1.1",
|
|
89
|
-
"vitest": "^4.1.
|
|
77
|
+
"vitest": "^4.1.2",
|
|
90
78
|
"webpack": "^5.105.4",
|
|
91
79
|
"webpack-cli": "^7.0.2",
|
|
92
80
|
"webpack-config-utils": "^2.3.1",
|
|
93
81
|
"webpack-dev-server": "^5.2.3",
|
|
94
82
|
"yaml-loader": "^0.9.0"
|
|
95
83
|
},
|
|
84
|
+
"devDependencies": {
|
|
85
|
+
"@rnw-npm/eslint-config": "2.0.0-dev.1",
|
|
86
|
+
"@rnw-npm/prettier-config": "^1.0.0",
|
|
87
|
+
"eslint": "^10.1.0",
|
|
88
|
+
"husky": "^9.1.7",
|
|
89
|
+
"lint-staged": "^16.4.0",
|
|
90
|
+
"prettier": "^3.8.1"
|
|
91
|
+
},
|
|
92
|
+
"prettier": "@rnw-npm/prettier-config",
|
|
93
|
+
"lint-staged": {
|
|
94
|
+
"*.{js,jsx,ts,tsx,json,css,scss,md,yml,yaml}": [
|
|
95
|
+
"eslint --fix",
|
|
96
|
+
"prettier --write"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
96
99
|
"scripts": {
|
|
97
100
|
"typecheck": "tsc --noEmit",
|
|
98
101
|
"build": "tsdown",
|
|
99
102
|
"build:watch": "pnpm build --watch --ignore-watch .history --ignore-watch .idea",
|
|
100
103
|
"dev": "pnpm build:watch",
|
|
101
104
|
"readme": "pnpx http-server . --cors -o /readme.html",
|
|
102
|
-
"lint": "DEBUG=eslint:
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"test": "vitest",
|
|
106
|
-
"test:watch": "vitest --watch",
|
|
107
|
-
"test:coverage": "vitest --coverage"
|
|
105
|
+
"lint": "DEBUG=eslint:eslint-helpers eslint .",
|
|
106
|
+
"format": "prettier . --write --ignore-path ./.prettierignore",
|
|
107
|
+
"test": "vitest"
|
|
108
108
|
}
|
|
109
109
|
}
|
package/tsdown.config.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {defineConfig} from 'tsdown'
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
|
-
entry: ['./src/cli.ts', './src/webpack.config.ts'],
|
|
5
4
|
clean: true,
|
|
6
|
-
shims: true,
|
|
7
|
-
fixedExtension: false,
|
|
8
|
-
outDir: './dist',
|
|
9
|
-
target: 'esnext',
|
|
10
5
|
deps: {
|
|
11
6
|
onlyBundle: false,
|
|
12
7
|
},
|
|
8
|
+
entry: ['./src/cli.ts', './src/webpack.config.ts'],
|
|
9
|
+
fixedExtension: false,
|
|
10
|
+
outDir: './dist',
|
|
11
|
+
shims: true,
|
|
12
|
+
target: false,
|
|
13
13
|
})
|
package/vitest.config.ts
CHANGED
|
@@ -2,19 +2,19 @@ import {defineConfig} from 'vitest/config'
|
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
4
|
test: {
|
|
5
|
-
watch: false,
|
|
6
|
-
globals: true,
|
|
7
|
-
environment: 'node',
|
|
8
|
-
include: ['{src,tests}/**/*.{test,spec}.{ts,tsx}'],
|
|
9
|
-
reporters: ['default'],
|
|
10
5
|
coverage: {
|
|
11
|
-
provider: 'v8',
|
|
12
6
|
exclude: [
|
|
7
|
+
//
|
|
13
8
|
'dist/**',
|
|
14
|
-
'.
|
|
15
|
-
'.prettierrc.cjs',
|
|
9
|
+
'eslint.config.js',
|
|
16
10
|
'vitest.config.ts',
|
|
17
11
|
],
|
|
12
|
+
provider: 'v8',
|
|
18
13
|
},
|
|
14
|
+
environment: 'node',
|
|
15
|
+
globals: true,
|
|
16
|
+
include: ['{src,tests}/**/*.{test,spec}.{ts,tsx}'],
|
|
17
|
+
reporters: ['default'],
|
|
18
|
+
watch: false,
|
|
19
19
|
},
|
|
20
20
|
})
|
package/.eslintignore
DELETED
package/.eslintrc.cjs
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
overrides: [
|
|
4
|
-
{
|
|
5
|
-
files: ['*.{js,cjs,ts}'],
|
|
6
|
-
env: {
|
|
7
|
-
node: true,
|
|
8
|
-
es2021: true,
|
|
9
|
-
},
|
|
10
|
-
settings: {
|
|
11
|
-
'import/resolver': {
|
|
12
|
-
typescript: {
|
|
13
|
-
alwaysTryTypes: true,
|
|
14
|
-
project: ['./tsconfig.json'],
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
parser: '@typescript-eslint/parser',
|
|
19
|
-
parserOptions: {
|
|
20
|
-
ecmaVersion: 2021,
|
|
21
|
-
sourceType: 'module',
|
|
22
|
-
tsconfigRootDir: __dirname,
|
|
23
|
-
project: ['./tsconfig.json'],
|
|
24
|
-
extraFileExtensions: ['.cjs'],
|
|
25
|
-
},
|
|
26
|
-
extends: [
|
|
27
|
-
'eslint:recommended',
|
|
28
|
-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
29
|
-
'plugin:@typescript-eslint/strict-type-checked',
|
|
30
|
-
'plugin:@typescript-eslint/stylistic-type-checked',
|
|
31
|
-
'plugin:promise/recommended',
|
|
32
|
-
'plugin:deprecation/recommended',
|
|
33
|
-
'plugin:import/recommended',
|
|
34
|
-
'plugin:import/typescript',
|
|
35
|
-
'prettier',
|
|
36
|
-
],
|
|
37
|
-
plugins: ['unused-imports'],
|
|
38
|
-
rules: {
|
|
39
|
-
curly: 1,
|
|
40
|
-
'prefer-const': 1,
|
|
41
|
-
'no-console': 1,
|
|
42
|
-
strict: 1,
|
|
43
|
-
'no-debugger': 1,
|
|
44
|
-
|
|
45
|
-
'no-extra-boolean-cast': 0,
|
|
46
|
-
'@typescript-eslint/no-explicit-any': 0,
|
|
47
|
-
'@typescript-eslint/no-non-null-assertion': 0,
|
|
48
|
-
'@typescript-eslint/no-unsafe-assignment': 0,
|
|
49
|
-
'@typescript-eslint/no-unsafe-argument': 0,
|
|
50
|
-
'@typescript-eslint/no-unsafe-member-access': 0,
|
|
51
|
-
'@typescript-eslint/no-unsafe-return': 0,
|
|
52
|
-
// '@typescript-eslint/no-unsafe-enum-comparison': 0,
|
|
53
|
-
// '@typescript-eslint/no-unsafe-call': 0,
|
|
54
|
-
// '@typescript-eslint/explicit-function-return-type': 0,
|
|
55
|
-
'@typescript-eslint/consistent-type-definitions': 0,
|
|
56
|
-
// '@typescript-eslint/no-dynamic-delete': 0,
|
|
57
|
-
'@typescript-eslint/restrict-template-expressions': 0,
|
|
58
|
-
|
|
59
|
-
'@typescript-eslint/ban-ts-comment': [2, {'ts-expect-error': false}],
|
|
60
|
-
'@typescript-eslint/no-unused-vars': [1, {varsIgnorePattern: '^_'}],
|
|
61
|
-
'@typescript-eslint/prefer-optional-chain': 1,
|
|
62
|
-
'@typescript-eslint/member-delimiter-style': [
|
|
63
|
-
1,
|
|
64
|
-
{multiline: {delimiter: 'none'}},
|
|
65
|
-
],
|
|
66
|
-
|
|
67
|
-
'@typescript-eslint/no-confusing-void-expression': [
|
|
68
|
-
2,
|
|
69
|
-
{ignoreArrowShorthand: true},
|
|
70
|
-
],
|
|
71
|
-
|
|
72
|
-
'import/newline-after-import': 2,
|
|
73
|
-
|
|
74
|
-
'unused-imports/no-unused-imports': 1,
|
|
75
|
-
|
|
76
|
-
'@typescript-eslint/consistent-type-imports': [
|
|
77
|
-
2,
|
|
78
|
-
{
|
|
79
|
-
prefer: 'type-imports',
|
|
80
|
-
fixStyle: 'inline-type-imports',
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
|
|
84
|
-
'sort-imports': [2, {ignoreCase: true, ignoreDeclarationSort: true}],
|
|
85
|
-
'import/order': [
|
|
86
|
-
2,
|
|
87
|
-
{
|
|
88
|
-
groups: [
|
|
89
|
-
'builtin',
|
|
90
|
-
'external',
|
|
91
|
-
'internal',
|
|
92
|
-
['parent', 'sibling', 'index'],
|
|
93
|
-
],
|
|
94
|
-
pathGroups: [
|
|
95
|
-
{
|
|
96
|
-
pattern: '**/*.json',
|
|
97
|
-
group: 'unknown',
|
|
98
|
-
position: 'after',
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
pattern: '**/*.yml',
|
|
102
|
-
group: 'unknown',
|
|
103
|
-
position: 'after',
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
distinctGroup: false,
|
|
107
|
-
alphabetize: {
|
|
108
|
-
order: 'asc',
|
|
109
|
-
orderImportKind: 'asc',
|
|
110
|
-
caseInsensitive: true,
|
|
111
|
-
},
|
|
112
|
-
'newlines-between': 'never',
|
|
113
|
-
|
|
114
|
-
// Since docs for "pathGroupsExcludedImportTypes" option are confusing,
|
|
115
|
-
// see more info about how to correctly use it here:
|
|
116
|
-
// https://github.com/import-js/eslint-plugin-import/pull/2156#issuecomment-927559466
|
|
117
|
-
pathGroupsExcludedImportTypes: [],
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
files: ['*.{yml,yaml}'],
|
|
124
|
-
extends: ['plugin:yml/standard'],
|
|
125
|
-
rules: {
|
|
126
|
-
// 'yml/no-irregular-whitespace': 0,
|
|
127
|
-
'yml/quotes': [2, {prefer: 'single', avoidEscape: true}],
|
|
128
|
-
'yml/plain-scalar': 0,
|
|
129
|
-
'yml/no-multiple-empty-lines': [2, {max: 1}],
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
files: ['*.md'],
|
|
134
|
-
parser: 'eslint-plugin-markdownlint/parser',
|
|
135
|
-
extends: ['plugin:markdownlint/recommended'],
|
|
136
|
-
rules: {
|
|
137
|
-
// Rules docs:
|
|
138
|
-
// https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
|
|
139
|
-
|
|
140
|
-
'markdownlint/md013': 0, // Line length
|
|
141
|
-
'markdownlint/md024': [2, {siblings_only: true}], // Multiple headings with the same content
|
|
142
|
-
'markdownlint/md025': 0, // Multiple top-level headings in the same document
|
|
143
|
-
'markdownlint/md033': 0, // Inline HTML
|
|
144
|
-
'markdownlint/md041': 0, // First line in a file should be a top-level heading
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
overrides: [
|
|
4
|
-
{
|
|
5
|
-
files: ['*.{js,jsx,ts,tsx}'],
|
|
6
|
-
env: {
|
|
7
|
-
browser: true,
|
|
8
|
-
node: true,
|
|
9
|
-
es2021: true,
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
|
|
14
|
-
parser: '@typescript-eslint/parser',
|
|
15
|
-
parserOptions: {
|
|
16
|
-
ecmaFeatures: {
|
|
17
|
-
jsx: true,
|
|
18
|
-
},
|
|
19
|
-
ecmaVersion: 2021,
|
|
20
|
-
sourceType: 'module',
|
|
21
|
-
tsconfigRootDir: __dirname,
|
|
22
|
-
// project: './tsconfig.eslint.json',
|
|
23
|
-
project: './tsconfig.json',
|
|
24
|
-
extraFileExtensions: ['.cjs'],
|
|
25
|
-
},
|
|
26
|
-
extends: [
|
|
27
|
-
'eslint:recommended',
|
|
28
|
-
'plugin:promise/recommended',
|
|
29
|
-
'plugin:@typescript-eslint/recommended',
|
|
30
|
-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
31
|
-
'prettier',
|
|
32
|
-
],
|
|
33
|
-
plugins: [],
|
|
34
|
-
rules: {
|
|
35
|
-
curly: 1,
|
|
36
|
-
'prefer-const': 2,
|
|
37
|
-
'require-await': 0,
|
|
38
|
-
'@typescript-eslint/ban-ts-comment': 0,
|
|
39
|
-
'@typescript-eslint/no-explicit-any': 0,
|
|
40
|
-
'@typescript-eslint/no-non-null-assertion': 0,
|
|
41
|
-
'@typescript-eslint/prefer-optional-chain': 1,
|
|
42
|
-
'@typescript-eslint/require-await': 0,
|
|
43
|
-
'@typescript-eslint/no-unsafe-assignment': 0,
|
|
44
|
-
'@typescript-eslint/no-unsafe-member-access': 0,
|
|
45
|
-
'@typescript-eslint/no-unsafe-call': 0,
|
|
46
|
-
'@typescript-eslint/no-unsafe-return': 0,
|
|
47
|
-
'@typescript-eslint/no-unsafe-argument': 0,
|
|
48
|
-
},
|
|
49
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
overrides: [
|
|
4
|
-
{
|
|
5
|
-
files: ['*.{js,jsx,ts,tsx}'],
|
|
6
|
-
env: {
|
|
7
|
-
browser: true,
|
|
8
|
-
node: true,
|
|
9
|
-
es2021: true,
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
|
|
14
|
-
parser: '@typescript-eslint/parser',
|
|
15
|
-
parserOptions: {
|
|
16
|
-
ecmaFeatures: {
|
|
17
|
-
jsx: true,
|
|
18
|
-
},
|
|
19
|
-
ecmaVersion: 2021,
|
|
20
|
-
sourceType: 'module',
|
|
21
|
-
tsconfigRootDir: __dirname,
|
|
22
|
-
// project: './tsconfig.eslint.json',
|
|
23
|
-
project: './tsconfig.json',
|
|
24
|
-
extraFileExtensions: ['.cjs'],
|
|
25
|
-
},
|
|
26
|
-
extends: [
|
|
27
|
-
'eslint:recommended',
|
|
28
|
-
'plugin:promise/recommended',
|
|
29
|
-
'plugin:@typescript-eslint/recommended',
|
|
30
|
-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
31
|
-
'prettier',
|
|
32
|
-
],
|
|
33
|
-
plugins: [],
|
|
34
|
-
rules: {
|
|
35
|
-
curly: 1,
|
|
36
|
-
'prefer-const': 2,
|
|
37
|
-
'require-await': 0,
|
|
38
|
-
'@typescript-eslint/ban-ts-comment': 0,
|
|
39
|
-
'@typescript-eslint/no-explicit-any': 0,
|
|
40
|
-
'@typescript-eslint/no-non-null-assertion': 0,
|
|
41
|
-
'@typescript-eslint/prefer-optional-chain': 1,
|
|
42
|
-
'@typescript-eslint/require-await': 0,
|
|
43
|
-
'@typescript-eslint/no-unsafe-assignment': 0,
|
|
44
|
-
'@typescript-eslint/no-unsafe-member-access': 0,
|
|
45
|
-
'@typescript-eslint/no-unsafe-call': 0,
|
|
46
|
-
'@typescript-eslint/no-unsafe-return': 0,
|
|
47
|
-
'@typescript-eslint/no-unsafe-argument': 0,
|
|
48
|
-
},
|
|
49
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
overrides: [
|
|
4
|
-
{
|
|
5
|
-
files: ['*.{js,jsx,ts,tsx}'],
|
|
6
|
-
env: {
|
|
7
|
-
browser: true,
|
|
8
|
-
node: true,
|
|
9
|
-
es2021: true,
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
|
|
14
|
-
// parser: '@typescript-eslint/parser',
|
|
15
|
-
// parserOptions: {
|
|
16
|
-
// ecmaFeatures: {
|
|
17
|
-
// jsx: true,
|
|
18
|
-
// },
|
|
19
|
-
// ecmaVersion: 2021,
|
|
20
|
-
// sourceType: 'module',
|
|
21
|
-
// tsconfigRootDir: __dirname,
|
|
22
|
-
// // project: './tsconfig.eslint.json',
|
|
23
|
-
// project: './tsconfig.json',
|
|
24
|
-
// extraFileExtensions: ['.cjs'],
|
|
25
|
-
// },
|
|
26
|
-
// extends: [
|
|
27
|
-
// 'eslint:recommended',
|
|
28
|
-
// 'plugin:promise/recommended',
|
|
29
|
-
// 'plugin:@typescript-eslint/recommended',
|
|
30
|
-
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
31
|
-
// 'prettier',
|
|
32
|
-
// ],
|
|
33
|
-
// plugins: [],
|
|
34
|
-
// rules: {
|
|
35
|
-
// curly: 1,
|
|
36
|
-
// 'prefer-const': 2,
|
|
37
|
-
// 'require-await': 0,
|
|
38
|
-
// '@typescript-eslint/ban-ts-comment': 0,
|
|
39
|
-
// '@typescript-eslint/no-explicit-any': 0,
|
|
40
|
-
// '@typescript-eslint/no-non-null-assertion': 0,
|
|
41
|
-
// '@typescript-eslint/prefer-optional-chain': 1,
|
|
42
|
-
// '@typescript-eslint/require-await': 0,
|
|
43
|
-
// '@typescript-eslint/no-unsafe-assignment': 0,
|
|
44
|
-
// '@typescript-eslint/no-unsafe-member-access': 0,
|
|
45
|
-
// '@typescript-eslint/no-unsafe-call': 0,
|
|
46
|
-
// '@typescript-eslint/no-unsafe-return': 0,
|
|
47
|
-
// '@typescript-eslint/no-unsafe-argument': 0,
|
|
48
|
-
// },
|
|
49
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
overrides: [
|
|
4
|
-
{
|
|
5
|
-
files: ['*.{js,ts}'],
|
|
6
|
-
env: {
|
|
7
|
-
node: true,
|
|
8
|
-
es2021: true,
|
|
9
|
-
},
|
|
10
|
-
settings: {
|
|
11
|
-
'import/resolver': {
|
|
12
|
-
typescript: {
|
|
13
|
-
alwaysTryTypes: true,
|
|
14
|
-
project: ['./tsconfig.json'],
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
parser: '@typescript-eslint/parser',
|
|
19
|
-
parserOptions: {
|
|
20
|
-
ecmaVersion: 2021,
|
|
21
|
-
sourceType: 'module',
|
|
22
|
-
tsconfigRootDir: __dirname,
|
|
23
|
-
project: ['./tsconfig.json'],
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
],
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// parserOptions: {
|
|
31
|
-
// ecmaFeatures: {
|
|
32
|
-
// jsx: true,
|
|
33
|
-
// },
|
|
34
|
-
// ecmaVersion: 2021,
|
|
35
|
-
// sourceType: 'module',
|
|
36
|
-
// tsconfigRootDir: __dirname,
|
|
37
|
-
// // project: './tsconfig.eslint.json',
|
|
38
|
-
// project: './tsconfig.json',
|
|
39
|
-
// extraFileExtensions: ['.cjs'],
|
|
40
|
-
// },
|
|
41
|
-
// extends: [
|
|
42
|
-
// 'eslint:recommended',
|
|
43
|
-
// 'plugin:promise/recommended',
|
|
44
|
-
// 'plugin:@typescript-eslint/recommended',
|
|
45
|
-
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
46
|
-
// 'prettier',
|
|
47
|
-
// ],
|
|
48
|
-
// plugins: [],
|
|
49
|
-
// rules: {
|
|
50
|
-
// curly: 1,
|
|
51
|
-
// 'prefer-const': 2,
|
|
52
|
-
// 'require-await': 0,
|
|
53
|
-
// '@typescript-eslint/ban-ts-comment': 0,
|
|
54
|
-
// '@typescript-eslint/no-explicit-any': 0,
|
|
55
|
-
// '@typescript-eslint/no-non-null-assertion': 0,
|
|
56
|
-
// '@typescript-eslint/prefer-optional-chain': 1,
|
|
57
|
-
// '@typescript-eslint/require-await': 0,
|
|
58
|
-
// '@typescript-eslint/no-unsafe-assignment': 0,
|
|
59
|
-
// '@typescript-eslint/no-unsafe-member-access': 0,
|
|
60
|
-
// '@typescript-eslint/no-unsafe-call': 0,
|
|
61
|
-
// '@typescript-eslint/no-unsafe-return': 0,
|
|
62
|
-
// '@typescript-eslint/no-unsafe-argument': 0,
|
|
63
|
-
// },
|
|
64
|
-
}
|