Skip to content

Commit

Permalink
workflow: eslint (#183)
Browse files Browse the repository at this point in the history
* workflow: eslint

* feat: update deps
  • Loading branch information
Talljack committed May 3, 2024
1 parent 1d85aed commit 1c9961f
Show file tree
Hide file tree
Showing 9 changed files with 1,726 additions and 1,142 deletions.
2 changes: 1 addition & 1 deletion .prototools
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm = "9.0.5"
pnpm = "9.0.6"
7 changes: 5 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import antfu from '@antfu/eslint-config'
// @ts-check
import createEslintConfig from 'talljack-eslint-config'

export default antfu({
export default createEslintConfig({
typescript: true,
formatters: true,
rules: {
'antfu/top-level-function': 'off',
'style/arrow-parens': 'off',
'node/prefer-global/process': 'off',
'no-debugger': 'off',
'no-console': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
},
})
38 changes: 24 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "unplugin-remove",
"type": "module",
"version": "1.0.2",
"packageManager": "[email protected].5",
"packageManager": "[email protected].6",
"description": "Plugin to remove console.xx and debugger for Vite & Webpack & Esbuild & Rollup",
"license": "MIT",
"homepage": "https://github.com/Talljack/unplugin-remove#readme",
Expand Down Expand Up @@ -94,35 +94,45 @@
"release": "bumpp && pnpm publish",
"start": "esno src/index.ts",
"test": "vitest",
"coverage": "vitest run --coverage --coverage.include=src/utils"
"typecheck": "tsc --noEmit",
"coverage": "vitest run --coverage --coverage.include=src/utils",
"prepare": "simple-git-hooks"
},
"dependencies": {
"@babel/core": "^7.24.4",
"@babel/generator": "^7.24.4",
"@babel/parser": "^7.24.4",
"@babel/traverse": "^7.24.1",
"@babel/core": "^7.24.5",
"@babel/generator": "^7.24.5",
"@babel/parser": "^7.24.5",
"@babel/traverse": "^7.24.5",
"@rollup/pluginutils": "^5.1.0",
"unplugin": "^1.10.1"
},
"devDependencies": {
"@antfu/eslint-config": "^2.15.0",
"@babel/types": "^7.24.0",
"@types/node": "^20.12.7",
"@vitest/coverage-v8": "^1.5.0",
"bumpp": "^9.4.0",
"@babel/types": "^7.24.5",
"@types/node": "^20.12.8",
"@vitest/coverage-v8": "^1.5.3",
"bumpp": "^9.4.1",
"eslint": "^9.1.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"esno": "^4.7.0",
"fast-glob": "^3.3.2",
"lint-staged": "^15.2.2",
"nodemon": "^3.1.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"rollup": "^4.16.3",
"rollup": "^4.17.2",
"simple-git-hooks": "^2.11.1",
"talljack-eslint-config": "^0.2.4",
"tsup": "^8.0.2",
"typescript": "^5.4.5",
"vite": "^5.2.10",
"vitest": "^1.5.0",
"vite": "^5.2.11",
"vitest": "^1.5.3",
"webpack": "^5.91.0"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*": "eslint src --fix"
}
}
8 changes: 4 additions & 4 deletions playground/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"build": "NODE_ENV=production rspack build"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"unplugin-remove": "workspace:^"
},
"devDependencies": {
"@rspack/cli": "^0.6.2",
"@rspack/core": "^0.6.2",
"@rspack/plugin-react-refresh": "^0.6.2",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"react-refresh": "^0.14.0"
}
}
2 changes: 1 addition & 1 deletion playground/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"devDependencies": {
"unplugin-remove": "workspace:*",
"vite": "^5.2.10",
"vite": "^5.2.11",
"vite-plugin-inspect": "^0.8.4"
}
}
4 changes: 2 additions & 2 deletions playground/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"cross-env": "^7.0.3",
"html-webpack-plugin": "^5.6.0",
"rimraf": "^5.0.5",
"serve": "^14.2.1",
"serve": "^14.2.3",
"sucrase": "^3.35.0",
"unplugin-remove": "workspace:*",
"vue": "^3.4.24",
"vue": "^3.4.26",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
Expand Down
Loading

0 comments on commit 1c9961f

Please sign in to comment.