feat(app && tests): refactor

This commit is contained in:
2024-03-28 10:31:29 +03:00
parent 49626cb681
commit 6e6e5311b0
96 changed files with 946 additions and 928 deletions

View File

@@ -0,0 +1,2 @@
tsup.config.ts
/tests

7
repo/0-tools-eslint/.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
/node_modules
/dist
.env
.DS_Store

View File

@@ -0,0 +1,8 @@
/node_modules
/src
.env
.DS_Store
tsconfig.json
tsup.config.js

View File

@@ -0,0 +1,41 @@
{
"name": "3-class-complex-assistants",
"description": "",
"version": "0.0.6",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"test": "vitest",
"build": "tsup",
"release": "npm run build && npm version patch && npm publish --tag latest",
"release_up": "npm version $(semver $npm_package_version -i minor) && npm publish --tag latest",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts -- --fix"
},
"repository": {
"type": "git",
"url": "https://gitlab.com/niac_vniizht/niac-packs"
},
"publishConfig": {
"registry": "https://vniac.ru:4873"
},
"keywords": [
"Logger",
"helpers",
"utils"
],
"author": "vbuglov",
"license": "ISC",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"eslint": "^8.57.0",
"moment": "^2.30.1",
"tsup": "^8.0.2",
"typescript": "^5.4.2",
"typescript-eslint": "^7.2.0",
"vite": "^5.1.6",
"vitest": "^1.4.0"
}
}

View File

@@ -0,0 +1 @@
import jsEslintConfig from './javascript-eslint-config.ts';

View File

@@ -0,0 +1,19 @@
let tsEslintConfig = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
project: './tsconfig.json',
},
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
"@typescript-eslint/ban-types": 'off',
},
}
export default tsEslintConfig;

View File

@@ -1,4 +1,4 @@
module.exports = {
vueEslintConfig = {
extends: [
"eslint:recommended",
"plugin:vue/vue3-recommended",

View File

@@ -0,0 +1,18 @@
{
"noImplicitAny": true,
"esModuleInterop": true,
"strictNullChecks": true,
"moduleResolution": "Node10",
"module": "CommonJs",
"outDir": "dist",
"declaration": true,
"isolatedModules": true,
"noEmit": true,
"include": ["src"],
"exclude": ["node_modules"],
"format": ["esm"],
"compilerOptions": {
"strict": true,
"target": "ES2022"
}
}

View File

@@ -0,0 +1,11 @@
// @ts-nocheck
import {defineConfig} from "tsup";
export default defineConfig({
format: ["cjs", "esm"],
entry: ['src/index.ts'],
dts: true,
shims: true,
skipNodeModulesBundle: true,
clean: true,
})