Skip to content

Commit

Permalink
🔧 eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo committed Oct 16, 2024
1 parent d121a31 commit e6d73cb
Show file tree
Hide file tree
Showing 5 changed files with 592 additions and 1,167 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

11 changes: 0 additions & 11 deletions .eslintrc

This file was deleted.

13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import unjs from "eslint-config-unjs"

export default unjs({
ignores: [
"dist",
"node_modules"
],
rules: {
"space-before-function-paren": "off",
"unicorn/filename-case": "off",
"unicorn/no-array-callback-reference": "off"
},
})
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"scripts": {
"build": "unbuild",
"dev": "vitest dev",
"lint": "eslint --ext .ts,.js,.mjs,.cjs ./src",
"lint:fix": "eslint --ext .ts,.js,.mjs,.cjs ./src --fix",
"lint": "eslint ./src",
"lint:fix": "eslint ./src --fix",
"prepack": "unbuild",
"release": "yarn test && changelogen && git push --follow-tags && npm publish",
"test": "vitest run --dir test"
Expand All @@ -38,8 +38,8 @@
"devDependencies": {
"c8": "latest",
"changelogen": "^0.5.7",
"eslint": "latest",
"eslint-config-unjs": "latest",
"eslint": "^9.12.0",
"eslint-config-unjs": "^0.4.1",
"typescript": "latest",
"unbuild": "latest",
"vitest": "latest"
Expand Down
Loading

0 comments on commit e6d73cb

Please sign in to comment.