-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22b358c
commit 6d99972
Showing
11 changed files
with
4,125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
], | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.