diff --git a/.gitignore b/.gitignore index ea11b84b..0774c49c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,8 @@ /.vscode /website /dist -/types /docs/.vitepress/cache /package-lock.json /pnpm-lock.yaml +.npmrc diff --git a/eslint.config.js b/eslint.config.js index d294afd6..35390f8d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,4 +1,5 @@ import config from 'eslint-config-love' +import progress from 'eslint-plugin-file-progress' export default [ { @@ -6,16 +7,18 @@ export default [ files: ['src/**/*.js', 'src/**/*.ts'], }, { + plugins: { + 'file-progress': progress + }, ignores: [ 'eslint.config.js', 'scripts/**/*', 'dist/**/*', 'docs/**/*', 'index.js' - ] - }, - { + ], rules: { + "file-progress/activate": 1, "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/class-methods-use-this": "off", "@typescript-eslint/max-params": "off" diff --git a/package.json b/package.json index 8332b13e..d0f4948a 100644 --- a/package.json +++ b/package.json @@ -75,13 +75,13 @@ "dts-bundle-generator": "^9.5.1", "eslint": "^8.57.0", "eslint-config-love": "^64.0.0", + "eslint-plugin-file-progress": "^1.5.0", "fs-extra": "^11.2.0", "gh-pages": "^6.1.1", "husky": "^8.0.3", "resize-observer-polyfill": "^1.5.1", "rollup": "^4.21.3", "rollup-plugin-filesize": "^10.0.0", - "rollup-plugin-progress": "^1.1.2", "tslib": "^2.6.2", "typescript": "^5.5.4", "vitepress": "^1.3.4" diff --git a/scripts/config.js b/scripts/config.js index 9766c509..8aaba6c6 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -5,7 +5,6 @@ import replace from '@rollup/plugin-replace' import typescript from '@rollup/plugin-typescript' import terser from '@rollup/plugin-terser' import fileSize from 'rollup-plugin-filesize' -import progress from 'rollup-plugin-progress' import eslint from './eslint.js' import { resolvePath, getVersion } from './utils.js' @@ -35,7 +34,6 @@ function createInputConfig ({ input, replaceValues }) { throwOnError: true }), nodeResolve(), - progress(), replace({ preventAssignment: true, values: {