Skip to content

Commit 6ed2d00

Browse files
committed
Initial commit
0 parents  commit 6ed2d00

9 files changed

Lines changed: 85 additions & 0 deletions

File tree

.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"root": true,
3+
"extends": ["@raycast"]
4+
}

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# Raycast specific files
7+
raycast-env.d.ts
8+
9+
# misc
10+
.DS_Store

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": false
4+
}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# format-code Changelog
2+
3+
## [Initial Version] - 2023-07-13

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# format-code
2+
3+
Format code on the clipboard

assets/command-icon.png

123 KB
Loading

package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "https://www.raycast.com/schemas/extension.json",
3+
"name": "format-code",
4+
"title": "format-code",
5+
"description": "Format code on the clipboard",
6+
"icon": "command-icon.png",
7+
"author": "istvan_karaszi",
8+
"owner": "function-artisans",
9+
"categories": [
10+
"Developer Tools"
11+
],
12+
"license": "MIT",
13+
"commands": [
14+
{
15+
"name": "index",
16+
"title": "Format JSON",
17+
"description": "Formats JSON on the clipboard",
18+
"mode": "view"
19+
}
20+
],
21+
"dependencies": {
22+
"@raycast/api": "^1.55.2"
23+
},
24+
"devDependencies": {
25+
"@raycast/eslint-config": "1.0.5",
26+
"@types/node": "18.8.3",
27+
"@types/react": "18.0.9",
28+
"eslint": "^7.32.0",
29+
"prettier": "^2.5.1",
30+
"typescript": "^4.4.3"
31+
},
32+
"scripts": {
33+
"build": "ray build -e dist",
34+
"dev": "ray develop",
35+
"fix-lint": "ray lint --fix",
36+
"lint": "ray lint",
37+
"publish": "npx @raycast/api@latest publish"
38+
}
39+
}

src/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Detail } from "@raycast/api";
2+
3+
export default function Command() {
4+
return <Detail markdown="# Hello World" />;
5+
}

tsconfig.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"display": "Node 16",
4+
"include": ["src/**/*", "raycast-env.d.ts"],
5+
"compilerOptions": {
6+
"lib": ["es2021"],
7+
"module": "commonjs",
8+
"target": "es2021",
9+
"strict": true,
10+
"isolatedModules": true,
11+
"esModuleInterop": true,
12+
"skipLibCheck": true,
13+
"forceConsistentCasingInFileNames": true,
14+
"jsx": "react-jsx",
15+
"resolveJsonModule": true
16+
}
17+
}

0 commit comments

Comments
 (0)