-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: lint using
@youcan/lint
(#87)
- Loading branch information
Showing
59 changed files
with
1,770 additions
and
1,672 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 |
---|---|---|
@@ -1,3 +1,50 @@ | ||
{ | ||
"eslint.experimental.useFlatConfig": false | ||
// Disable the default formatter, use eslint instead | ||
"prettier.enable": false, | ||
"editor.formatOnSave": false, | ||
|
||
// Auto fix | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports": "never" | ||
}, | ||
|
||
// Silent the stylistic rules in you IDE, but still auto fix them | ||
"eslint.rules.customizations": [ | ||
{ "rule": "style/*", "severity": "off", "fixable": true }, | ||
{ "rule": "format/*", "severity": "off", "fixable": true }, | ||
{ "rule": "*-indent", "severity": "off", "fixable": true }, | ||
{ "rule": "*-spacing", "severity": "off", "fixable": true }, | ||
{ "rule": "*-spaces", "severity": "off", "fixable": true }, | ||
{ "rule": "*-order", "severity": "off", "fixable": true }, | ||
{ "rule": "*-dangle", "severity": "off", "fixable": true }, | ||
{ "rule": "*-newline", "severity": "off", "fixable": true }, | ||
{ "rule": "*quotes", "severity": "off", "fixable": true }, | ||
{ "rule": "*semi", "severity": "off", "fixable": true } | ||
], | ||
|
||
// Enable eslint for all supported languages | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"vue", | ||
"html", | ||
"markdown", | ||
"json", | ||
"json5", | ||
"jsonc", | ||
"yaml", | ||
"toml", | ||
"xml", | ||
"gql", | ||
"graphql", | ||
"astro", | ||
"css", | ||
"less", | ||
"scss", | ||
"pcss", | ||
"postcss" | ||
] | ||
} |
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,5 @@ | ||
import youcan from '@youcan/lint' | ||
|
||
export default youcan({ | ||
formatters: true, | ||
}) |
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
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
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
2 changes: 1 addition & 1 deletion
2
packages/app/lib/cli/services/dev/workers/theme-extension-worker.ts
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
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,99 +1,99 @@ | ||
export interface InitialAppConfig { | ||
[key: string]: unknown | ||
name: string | ||
[key: string]: unknown; | ||
name: string; | ||
} | ||
|
||
export type AppConfig = { | ||
id: string | ||
app_url: string | ||
redirect_urls: string[] | ||
id: string; | ||
app_url: string; | ||
redirect_urls: string[]; | ||
|
||
oauth: { | ||
client_id: string | ||
scopes: string[] | ||
} | ||
client_id: string; | ||
scopes: string[]; | ||
}; | ||
} & InitialAppConfig; | ||
|
||
export interface RemoteAppConfig { | ||
id: string | ||
name: string | ||
app_url: string | ||
owner_id: string | ||
client_id: string | ||
client_secret: string | ||
redirect_urls: string[] | ||
scopes: string[] | ||
id: string; | ||
name: string; | ||
app_url: string; | ||
owner_id: string; | ||
client_id: string; | ||
client_secret: string; | ||
redirect_urls: string[]; | ||
scopes: string[]; | ||
} | ||
|
||
export interface ExtensionConfig { | ||
[key: string]: unknown | ||
type: string | ||
name: string | ||
[key: string]: unknown; | ||
type: string; | ||
name: string; | ||
} | ||
|
||
export interface ExtensionFlavor { | ||
name: string | ||
path?: string | ||
value: 'liquid' | ||
name: string; | ||
path?: string; | ||
value: 'liquid'; | ||
} | ||
|
||
export interface ExtensionTemplateType { | ||
url: string | ||
type: string | ||
flavors: ExtensionFlavor[] | ||
url: string; | ||
type: string; | ||
flavors: ExtensionFlavor[]; | ||
} | ||
|
||
export interface ExtensionTemplate { | ||
identifier: string | ||
name: string | ||
description: string | ||
types: ExtensionTemplateType[] | ||
identifier: string; | ||
name: string; | ||
description: string; | ||
types: ExtensionTemplateType[]; | ||
} | ||
|
||
export interface Extension { | ||
// post boot | ||
id?: string | ||
metadata?: ExtensionMetadata | ||
id?: string; | ||
metadata?: ExtensionMetadata; | ||
|
||
root: string | ||
config: ExtensionConfig | ||
root: string; | ||
config: ExtensionConfig; | ||
} | ||
|
||
export interface WebConfig { | ||
name?: string | ||
name?: string; | ||
commands: { | ||
dev: string | ||
build?: string | ||
} | ||
dev: string; | ||
build?: string; | ||
}; | ||
} | ||
|
||
export interface Web { | ||
root: string | ||
config: WebConfig | ||
framework?: string | ||
root: string; | ||
config: WebConfig; | ||
framework?: string; | ||
} | ||
|
||
export interface App { | ||
root: string | ||
webs: Web[] | ||
config: AppConfig | ||
remote_config?: RemoteAppConfig | ||
root: string; | ||
webs: Web[]; | ||
config: AppConfig; | ||
remote_config?: RemoteAppConfig; | ||
network_config?: { | ||
app_url: string | ||
app_port: number | ||
} | ||
extensions: Extension[] | ||
app_url: string; | ||
app_port: number; | ||
}; | ||
extensions: Extension[]; | ||
} | ||
|
||
export interface ExtensionFileDescriptor { | ||
id: string | ||
type: string | ||
name: string | ||
file_name: string | ||
size: number | ||
hash: string | ||
id: string; | ||
type: string; | ||
name: string; | ||
file_name: string; | ||
size: number; | ||
hash: string; | ||
} | ||
|
||
export interface ExtensionMetadata { | ||
[key: string]: ExtensionFileDescriptor[] | ||
[key: string]: ExtensionFileDescriptor[]; | ||
} |
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
Oops, something went wrong.