🌽 remove eslint and commitlint
This commit is contained in:
parent
d91ede3814
commit
b2a5753f29
@ -1,9 +0,0 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
40
.eslintrc.js
40
.eslintrc.js
@ -1,40 +0,0 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
browser: true,
|
||||
es2021: true,
|
||||
node: true,
|
||||
},
|
||||
globals: {
|
||||
defineProps: 'readonly',
|
||||
defineEmits: 'readonly',
|
||||
defineExpose: 'readonly',
|
||||
withDefaults: 'readonly',
|
||||
},
|
||||
parser: 'vue-eslint-parser',
|
||||
plugins: ['@typescript-eslint', 'prettier'],
|
||||
extends: [
|
||||
'plugin:vue/vue3-recommended',
|
||||
'eslint:recommended',
|
||||
'@vue/typescript/recommended',
|
||||
'@vue/prettier',
|
||||
'@vue/prettier/@typescript-eslint',
|
||||
],
|
||||
parserOptions: {
|
||||
parser: '@typescript-eslint/parser',
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 10,
|
||||
},
|
||||
rules: {
|
||||
'vue/valid-template-root': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-var-requires': 'off',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'vue/one-component-per-file': 'off',
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
'vue/no-mutating-props': 'off',
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
},
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
pnpx --no-install commitlint --edit ""
|
||||
pnpx pretty-quick --staged
|
||||
pnpx lint-staged
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"*.{ts,vue,js,tsx,jsx}": ["prettier --write --no-verify ", "eslint --fix"],
|
||||
"*.{html,css,md,json}": "prettier --write",
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"map": false,
|
||||
"plugins": {
|
||||
"postcss-preset-env": {
|
||||
"stage": 1
|
||||
},
|
||||
"autoprefixer": {}
|
||||
}
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"semi": false
|
||||
}
|
@ -1 +0,0 @@
|
||||
### 更新日志
|
@ -1 +0,0 @@
|
||||
module.exports = { extends: ['@commitlint/config-conventional'] }
|
@ -43,4 +43,4 @@ const fileDisplay = (file) => {
|
||||
|
||||
fileDisplay('docs')
|
||||
|
||||
fs.unlinkSync(toAbsolute('dist/static/ssr-manifest.json'))
|
||||
fs.unlinkSync(toAbsolute('dist/static/ssr-manifest.json'))
|
@ -1,4 +1,3 @@
|
||||
@import './code.css';
|
||||
@import './custom-blocks.css';
|
||||
@import './markdown.css';
|
||||
@import './vars.css';
|
@ -9,4 +9,4 @@
|
||||
--code-font-size: 14px;
|
||||
--code-inline-bg-color: rgba(27, 31, 35, 0.05);
|
||||
--code-bg-color: #282c34;
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 31 KiB |
@ -47,7 +47,6 @@ function renderPreloadLink(file) {
|
||||
} else if (file.endsWith('.css')) {
|
||||
return `<link rel="stylesheet" href="${file}">`
|
||||
} else {
|
||||
// TODO
|
||||
return ''
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import Layui from '/@src/index'
|
||||
import LayCode from './components/LayCode.vue'
|
||||
import LaySearch from './components/LaySearch.vue'
|
||||
import LayTableBox from './components/LayTableBox.vue'
|
||||
import './styles/index.css'
|
||||
import './assets/css/index.css'
|
||||
|
||||
export function createApp(): {
|
||||
app: App<Element>
|
||||
|
@ -1,71 +0,0 @@
|
||||
.custom-block.tip,
|
||||
.custom-block.warning,
|
||||
.custom-block.danger {
|
||||
margin: 1rem 0;
|
||||
border-left: 0.3rem solid;
|
||||
padding: 0.1rem 1.5rem;
|
||||
overflow-x: auto;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.custom-block.tip {
|
||||
background-color: #f3f5f7;
|
||||
border-color: #409eff;
|
||||
}
|
||||
|
||||
.custom-block.warning {
|
||||
border-color: #e7c000;
|
||||
color: #6b5900;
|
||||
background-color: rgba(255, 229, 100, 0.3);
|
||||
}
|
||||
|
||||
.custom-block.warning .custom-block-title {
|
||||
color: #b29400;
|
||||
}
|
||||
|
||||
.custom-block.warning a {
|
||||
color: var(--c-text);
|
||||
}
|
||||
|
||||
.custom-block.danger {
|
||||
border-color: #c00;
|
||||
color: #4d0000;
|
||||
background-color: #ffe6e6;
|
||||
}
|
||||
|
||||
.custom-block.danger .custom-block-title {
|
||||
color: #900;
|
||||
}
|
||||
|
||||
.custom-block.danger a {
|
||||
color: var(--c-text);
|
||||
}
|
||||
|
||||
.custom-block.details {
|
||||
position: relative;
|
||||
display: block;
|
||||
border-radius: 2px;
|
||||
margin: 1.6em 0;
|
||||
padding: 1.6em;
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.custom-block.details h4 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.custom-block.details figure:last-child,
|
||||
.custom-block.details p:last-child {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.custom-block.details summary {
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.custom-block-title {
|
||||
margin-bottom: -0.4rem;
|
||||
font-weight: 600;
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
module.exports = {
|
||||
roots: ['<rootDir>/test'],
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'jsdom',
|
||||
moduleFileExtensions: ['ts', 'vue', 'js', 'jsx', 'tsx', 'json', 'node'],
|
||||
transformIgnorePatterns: ['node_modules/(?!(@vue/shared|element-plus)/)'],
|
||||
moduleNameMapper: { '\\.css$': '<rootDir>/test/__mocks__/css.ts' },
|
||||
transform: {
|
||||
'^.+\\.vue$': 'vue-jest',
|
||||
'^.+\\.(t|j)sx?$': [
|
||||
'babel-jest',
|
||||
{
|
||||
presets: [
|
||||
[
|
||||
'@babel/preset-env',
|
||||
{
|
||||
targets: {
|
||||
node: 'current',
|
||||
},
|
||||
},
|
||||
],
|
||||
'@babel/preset-typescript',
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
50
package.json
50
package.json
@ -17,11 +17,7 @@
|
||||
"dev": "vite",
|
||||
"build": "vite build --emptyOutDir && npm run build:types",
|
||||
"build:types": "rimraf types && tsc -d",
|
||||
"build:docs": "vite build docs",
|
||||
"test": "jest",
|
||||
"lint": "eslint . --fix --ext .ts,.vue,.js --ignore-pattern \"/lib/\" --ignore-pattern \"/types/\"",
|
||||
"prettier": "prettier --check --write --ignore-unknown \"{example,src,docs,test}/**\"",
|
||||
"prepare": "husky install"
|
||||
"build:docs": "vite build docs"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -32,72 +28,40 @@
|
||||
"layui",
|
||||
"vue"
|
||||
],
|
||||
"author": "就眠儀式",
|
||||
"author": "layui-vue",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://gitee.com/layui-vue/layui-vue/issues"
|
||||
},
|
||||
"homepage": "https://gitee.com/layui-vue/layui-vue/blob/master/README.md",
|
||||
"peerDependencies": {
|
||||
"vue": "^3.2.21",
|
||||
"vue": "^3.2.22",
|
||||
"vue-router": "^4.0.12"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.2.21",
|
||||
"vue": "^3.2.22",
|
||||
"vue-router": "^4.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.8",
|
||||
"@babel/preset-env": "^7.15.8",
|
||||
"@babel/preset-typescript": "^7.15.0",
|
||||
"@commitlint/cli": "^13.2.1",
|
||||
"@commitlint/config-conventional": "^13.2.0",
|
||||
"@rollup/plugin-babel": "^5.3.0",
|
||||
"@types/jest": "^26.0.24",
|
||||
"@types/markdown-it": "^12.2.3",
|
||||
"@types/markdown-it-container": "^2.0.4",
|
||||
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
||||
"@typescript-eslint/parser": "^4.33.0",
|
||||
"@vitejs/plugin-vue": "^1.9.3",
|
||||
"@vue/compiler-sfc": "^3.2.21",
|
||||
"@vue/eslint-config-prettier": "^6.0.0",
|
||||
"@vue/eslint-config-typescript": "^7.0.0",
|
||||
"@vue/compiler-sfc": "^3.2.22",
|
||||
"@vue/server-renderer": "^3.2.20",
|
||||
"@vue/test-utils": "^2.0.0-rc.15",
|
||||
"babel-jest": "^26.6.3",
|
||||
"escape-html": "^1.0.3",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-plugin-prettier": "^3.4.1",
|
||||
"eslint-plugin-vue": "^7.19.1",
|
||||
"husky": "^7.0.2",
|
||||
"jest": "^26.6.3",
|
||||
"lint-staged": "^11.2.3",
|
||||
"markdown-it-container": "^3.0.0",
|
||||
"postcss": "^8.3.9",
|
||||
"postcss-preset-env": "^6.7.0",
|
||||
"prettier": "^2.4.1",
|
||||
"pretty-quick": "^3.1.1",
|
||||
"prismjs": "^1.25.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-jest": "^26.5.6",
|
||||
"typescript": "^4.4.3",
|
||||
"vite": "2.5.10",
|
||||
"vite-plugin-md": "^0.6.7",
|
||||
"vue-jest": "^5.0.0-alpha.10"
|
||||
"vite-plugin-md": "^0.6.7"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"types"
|
||||
],
|
||||
"lint-staged": {
|
||||
"*.{ts,vue,tsx}": "eslint --fix",
|
||||
"*": "prettier -w -u"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lintstage",
|
||||
"commit-msg": "commitlint -E $HUSKY_GIT_PARAMS",
|
||||
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
9153
pnpm-lock.yaml
9153
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -71,7 +71,6 @@
|
||||
import { computed, defineProps, Ref, ref, useSlots, watch } from 'vue'
|
||||
import { Recordable } from '/@src/module/type'
|
||||
import transferCheckbox from './component/checkbox.vue'
|
||||
import { check } from 'prettier'
|
||||
|
||||
const slot = useSlots()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user