feat(app && tests): refactor
This commit is contained in:
2
repo/0-tools-eslint/.eslintignore
Normal file
2
repo/0-tools-eslint/.eslintignore
Normal file
@@ -0,0 +1,2 @@
|
||||
tsup.config.ts
|
||||
/tests
|
||||
7
repo/0-tools-eslint/.gitignore
vendored
Normal file
7
repo/0-tools-eslint/.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/node_modules
|
||||
/dist
|
||||
|
||||
|
||||
|
||||
.env
|
||||
.DS_Store
|
||||
8
repo/0-tools-eslint/.npmignore
Normal file
8
repo/0-tools-eslint/.npmignore
Normal file
@@ -0,0 +1,8 @@
|
||||
/node_modules
|
||||
/src
|
||||
|
||||
.env
|
||||
.DS_Store
|
||||
|
||||
tsconfig.json
|
||||
tsup.config.js
|
||||
41
repo/0-tools-eslint/package.json
Normal file
41
repo/0-tools-eslint/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
1
repo/0-tools-eslint/src/index.ts
Normal file
1
repo/0-tools-eslint/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
import jsEslintConfig from './javascript-eslint-config.ts';
|
||||
19
repo/0-tools-eslint/src/typescript-eslint-config.ts
Normal file
19
repo/0-tools-eslint/src/typescript-eslint-config.ts
Normal 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;
|
||||
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
vueEslintConfig = {
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:vue/vue3-recommended",
|
||||
18
repo/0-tools-eslint/tsconfig.json
Normal file
18
repo/0-tools-eslint/tsconfig.json
Normal 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"
|
||||
}
|
||||
}
|
||||
11
repo/0-tools-eslint/tsup.config.ts
Normal file
11
repo/0-tools-eslint/tsup.config.ts
Normal 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,
|
||||
})
|
||||
Reference in New Issue
Block a user