forked from starkware-libs/cairo
-
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 TS formatter and linter for VSCode extension (starkware-libs#2762)
- Loading branch information
Showing
11 changed files
with
2,406 additions
and
278 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,30 @@ | ||
name: VSCode Cairo Extension CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'vscode-cairo/**' | ||
pull_request: | ||
paths: | ||
- 'vscode-cairo/**' | ||
merge_group: | ||
|
||
jobs: | ||
fmt-and-lint: | ||
name: format and lint | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./vscode-cairo | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
cache: npm | ||
cache-dependency-path: vscode-cairo/package-lock.json | ||
- run: npm ci | ||
- run: npm run fmt:check | ||
- run: npm run lint |
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,9 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
] | ||
} |
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,4 +1,3 @@ | ||
/node_modules | ||
/out | ||
/package-lock.json | ||
/*.vsix |
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 @@ | ||
out |
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 @@ | ||
{} |
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,27 +1,27 @@ | ||
{ | ||
"comments": { | ||
// Symbol used for single line comment. | ||
"lineComment": "//", | ||
}, | ||
// Symbols used as brackets. | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
], | ||
// Symbols that are auto closed when typing. | ||
"autoClosingPairs": [ | ||
{ "open": "{", "close": "}" }, | ||
{ "open": "[", "close": "]" }, | ||
{ "open": "(", "close": ")" }, | ||
{ "open": "\"", "close": "\"", "notIn": ["string"] }, | ||
{ "open": "'", "close": "'", "notIn": ["string"] }, | ||
], | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["'", "'"], | ||
] | ||
"comments": { | ||
// Symbol used for single line comment. | ||
"lineComment": "//" | ||
}, | ||
// Symbols used as brackets. | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"] | ||
], | ||
// Symbols that are auto closed when typing. | ||
"autoClosingPairs": [ | ||
{ "open": "{", "close": "}" }, | ||
{ "open": "[", "close": "]" }, | ||
{ "open": "(", "close": ")" }, | ||
{ "open": "\"", "close": "\"", "notIn": ["string"] }, | ||
{ "open": "'", "close": "'", "notIn": ["string"] } | ||
], | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["'", "'"] | ||
] | ||
} |
Oops, something went wrong.