Skip to content

Commit

Permalink
feat: prettier-plugin-esjs
Browse files Browse the repository at this point in the history
  • Loading branch information
enzonotario committed Oct 29, 2023
1 parent 22b358c commit 6d99972
Show file tree
Hide file tree
Showing 11 changed files with 4,125 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/prettier-plugin-esjs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
types
package-lock.json
23 changes: 23 additions & 0 deletions packages/prettier-plugin-esjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# prettier-plugin-esjs

Formatea tu código EsJS con Prettier.

## Instalación

```bash
$ npm install prettier-plugin-esjs -D
$ yarn add prettier-plugin-esjs -D
$ pnpm add prettier-plugin-esjs -D
```

## Uso

```ts
// .prettierrc.js
module.exports = {
plugins: [
// Agrega el plugin
"prettier-plugin-esjs",
],
};
```
3 changes: 3 additions & 0 deletions packages/prettier-plugin-esjs/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu()
44 changes: 44 additions & 0 deletions packages/prettier-plugin-esjs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "prettier-plugin-esjs",
"version": "0.0.1-alpha.0",
"license": "MIT",
"type": "module",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
},
"files": [
"dist"
],
"scripts": {
"build": "pkgroll",
"lint": "eslint . && prettier . --check",
"lint:fix": "eslint . --fix && prettier . --write",
"start": "tsx src/index.ts",
"test": "vitest",
"typecheck": "tsc --noEmit",
"watch": "pkgroll --watch"
},
"devDependencies": {
"@antfu/eslint-config": "1.0.0-beta.29",
"@antfu/ni": "^0.21.4",
"@es-js/core": "^0.0.18",
"@prettier/sync": "^0.3.0",
"@types/node": "^18.16.6",
"bumpp": "^9.1.1",
"eslint": "^8.48.0",
"pkgroll": "^1.10.0",
"prettier": "^3.0.3",
"tsx": "^3.12.7",
"typescript": "^5.1.6",
"vite": "^4.4.4",
"vitest": "^0.33.0"
},
"peerDependencies": {
"prettier": "^3.0.0"
}
}
Loading

0 comments on commit 6d99972

Please sign in to comment.