forked from onlook-dev/onlook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add linting and formatting (onlook-dev#51)
* Add eslint, husky, and prettier * Remove vscode settings
- Loading branch information
Showing
99 changed files
with
21,671 additions
and
3,313 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 @@ | ||
cd app && npm run format |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
dist-electron | ||
dist | ||
node_modules | ||
release |
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,11 @@ | ||
{ | ||
"singleQuote": true, | ||
"printWidth": 100, | ||
"tabWidth": 4, | ||
"useTabs": false, | ||
"semi": true, | ||
"jsxSingleQuote": false, | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"endOfLine": "lf" | ||
} |
Binary file not shown.
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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
export enum EditorAttributes { | ||
ONLOOK_TOOLBAR = "onlook-toolbar", | ||
ONLOOK_RECT_ID = "onlook-rect", | ||
ONLOOK_TOOLBAR = 'onlook-toolbar', | ||
ONLOOK_RECT_ID = 'onlook-rect', | ||
ONLOOK_STYLESHEET_ID = 'onlook-stylesheet', | ||
|
||
DATA_ONLOOK_ID = "data-onlook-id", | ||
DATA_ONLOOK_IGNORE = "data-onlook-ignore", | ||
DATA_ONLOOK_SAVED = "data-onlook-saved", | ||
DATA_ONLOOK_SNAPSHOT = "data-onlook-snapshot", | ||
DATA_ONLOOK_OLD_VALS = "data-onlook-old-vals", | ||
DATA_ONLOOK_COMPONENT_ID = "data-onlook-component-id", | ||
DATA_ONLOOK_ID = 'data-onlook-id', | ||
DATA_ONLOOK_IGNORE = 'data-onlook-ignore', | ||
DATA_ONLOOK_SAVED = 'data-onlook-saved', | ||
DATA_ONLOOK_SNAPSHOT = 'data-onlook-snapshot', | ||
DATA_ONLOOK_OLD_VALS = 'data-onlook-old-vals', | ||
DATA_ONLOOK_COMPONENT_ID = 'data-onlook-component-id', | ||
} | ||
|
||
export enum WebviewChannels { | ||
STYLE_UPDATED = "style-updated", | ||
UPDATE_STYLE = "update-style", | ||
CLEAR_STYLE_SHEET = "clear-style-sheet", | ||
STYLE_UPDATED = 'style-updated', | ||
UPDATE_STYLE = 'update-style', | ||
CLEAR_STYLE_SHEET = 'clear-style-sheet', | ||
} | ||
|
||
export enum MainChannels { | ||
WEBVIEW_PRELOAD_PATH = 'webview-preload-path', | ||
OPEN_CODE_BLOCK = "open-code-block", | ||
WRITE_CODE_BLOCK = "write-code-block", | ||
GET_STYLE_CODE = "get-style-code", | ||
OPEN_TUNNEL = "open-tunnel", | ||
CLOSE_TUNNEL = "close-tunnel", | ||
OPEN_CODE_BLOCK = 'open-code-block', | ||
WRITE_CODE_BLOCK = 'write-code-block', | ||
GET_STYLE_CODE = 'get-style-code', | ||
OPEN_TUNNEL = 'open-tunnel', | ||
CLOSE_TUNNEL = 'close-tunnel', | ||
} | ||
|
||
export const APP_NAME = 'Onlook'; | ||
export const APP_NAME = 'Onlook'; |
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
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
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": false, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "src/index.css", | ||
"baseColor": "stone", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
} | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": false, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "src/index.css", | ||
"baseColor": "stone", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
/// <reference types="vite-electron-plugin/electron-env" /> | ||
|
||
declare namespace NodeJS { | ||
interface ProcessEnv { | ||
VSCODE_DEBUG?: 'true' | ||
/** | ||
* The built directory structure | ||
* | ||
* ```tree | ||
* ├─┬ dist-electron | ||
* │ ├─┬ main | ||
* │ │ └── index.js > Electron-Main | ||
* │ └─┬ preload | ||
* │ └── index.mjs > Preload-Scripts | ||
* ├─┬ dist | ||
* │ └── index.html > Electron-Renderer | ||
* ``` | ||
*/ | ||
APP_ROOT: string | ||
/** /dist/ or /public/ */ | ||
VITE_PUBLIC: string | ||
} | ||
interface ProcessEnv { | ||
VSCODE_DEBUG?: 'true'; | ||
/** | ||
* The built directory structure | ||
* | ||
* ```tree | ||
* ├─┬ dist-electron | ||
* │ ├─┬ main | ||
* │ │ └── index.js > Electron-Main | ||
* │ └─┬ preload | ||
* │ └── index.mjs > Preload-Scripts | ||
* ├─┬ dist | ||
* │ └── index.html > Electron-Renderer | ||
* ``` | ||
*/ | ||
APP_ROOT: string; | ||
/** /dist/ or /public/ */ | ||
VITE_PUBLIC: string; | ||
} | ||
} |
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
Oops, something went wrong.