This commit is contained in:
25
.github/workflows/publish.yml
vendored
Normal file
25
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish Job
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
registry-url: "https://registry.npmjs.org/"
|
||||
|
||||
- name: Publish package
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
node_modules/
|
||||
dist/
|
||||
build/
|
||||
pnpm-lock.yaml
|
||||
.env
|
||||
.DS_Store
|
||||
.vscode/
|
||||
.log
|
||||
19
package.json
Normal file
19
package.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "@lendry-erp/prettier-config",
|
||||
"version": "1.0.0",
|
||||
"description": "Prettier utilities",
|
||||
"license": "ISC",
|
||||
"type": "module",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"prettier": "^3.8.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@trivago/prettier-plugin-sort-imports": "^5.2.2"
|
||||
},
|
||||
"exports": {
|
||||
"./prettier": "./src/prettier.config.mjs"
|
||||
}
|
||||
}
|
||||
20
src/prettier.config.mjs
Normal file
20
src/prettier.config.mjs
Normal file
@@ -0,0 +1,20 @@
|
||||
/** @type {import("prettier").Config} */
|
||||
|
||||
export default {
|
||||
trailingComma: "none",
|
||||
tabWidth: 4,
|
||||
useTabs: true,
|
||||
semi: false,
|
||||
singleQuote: true,
|
||||
arrowParens: "avoid",
|
||||
importOrderSeparation: true,
|
||||
importOrderSortSpecifiers: true,
|
||||
importOrderCaseInsensitive: true,
|
||||
importOrderParserPlugins: [
|
||||
"classProperties",
|
||||
"decorators-legacy",
|
||||
"typescript",
|
||||
],
|
||||
importOrder: ["<THIRD_PARTY_MODULES>", "^@/(.*)$", "^../(.*)", "^./(.*)"],
|
||||
plugins: ["@trivago/prettier-plugin-sort-imports"],
|
||||
};
|
||||
Reference in New Issue
Block a user