chore: ci update

This commit is contained in:
liihuu 2024-09-13 01:00:03 +08:00
parent c29071d9f7
commit 342bf64bc9
4 changed files with 8 additions and 7 deletions

2
.gitignore vendored
View File

@ -3,8 +3,8 @@
/.vscode /.vscode
/website /website
/dist /dist
/types
/docs/.vitepress/cache /docs/.vitepress/cache
/package-lock.json /package-lock.json
/pnpm-lock.yaml /pnpm-lock.yaml
.npmrc

View File

@ -1,4 +1,5 @@
import config from 'eslint-config-love' import config from 'eslint-config-love'
import progress from 'eslint-plugin-file-progress'
export default [ export default [
{ {
@ -6,16 +7,18 @@ export default [
files: ['src/**/*.js', 'src/**/*.ts'], files: ['src/**/*.js', 'src/**/*.ts'],
}, },
{ {
plugins: {
'file-progress': progress
},
ignores: [ ignores: [
'eslint.config.js', 'eslint.config.js',
'scripts/**/*', 'scripts/**/*',
'dist/**/*', 'dist/**/*',
'docs/**/*', 'docs/**/*',
'index.js' 'index.js'
] ],
},
{
rules: { rules: {
"file-progress/activate": 1,
"@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/class-methods-use-this": "off", "@typescript-eslint/class-methods-use-this": "off",
"@typescript-eslint/max-params": "off" "@typescript-eslint/max-params": "off"

View File

@ -75,13 +75,13 @@
"dts-bundle-generator": "^9.5.1", "dts-bundle-generator": "^9.5.1",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-config-love": "^64.0.0", "eslint-config-love": "^64.0.0",
"eslint-plugin-file-progress": "^1.5.0",
"fs-extra": "^11.2.0", "fs-extra": "^11.2.0",
"gh-pages": "^6.1.1", "gh-pages": "^6.1.1",
"husky": "^8.0.3", "husky": "^8.0.3",
"resize-observer-polyfill": "^1.5.1", "resize-observer-polyfill": "^1.5.1",
"rollup": "^4.21.3", "rollup": "^4.21.3",
"rollup-plugin-filesize": "^10.0.0", "rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-progress": "^1.1.2",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"typescript": "^5.5.4", "typescript": "^5.5.4",
"vitepress": "^1.3.4" "vitepress": "^1.3.4"

View File

@ -5,7 +5,6 @@ import replace from '@rollup/plugin-replace'
import typescript from '@rollup/plugin-typescript' import typescript from '@rollup/plugin-typescript'
import terser from '@rollup/plugin-terser' import terser from '@rollup/plugin-terser'
import fileSize from 'rollup-plugin-filesize' import fileSize from 'rollup-plugin-filesize'
import progress from 'rollup-plugin-progress'
import eslint from './eslint.js' import eslint from './eslint.js'
import { resolvePath, getVersion } from './utils.js' import { resolvePath, getVersion } from './utils.js'
@ -35,7 +34,6 @@ function createInputConfig ({ input, replaceValues }) {
throwOnError: true throwOnError: true
}), }),
nodeResolve(), nodeResolve(),
progress(),
replace({ replace({
preventAssignment: true, preventAssignment: true,
values: { values: {