forked from ampproject/amphtml
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏗 Add VS Code auto-formatting support for JS and non-JS files (amppro…
- Loading branch information
1 parent
9b575b3
commit ff15cdf
Showing
8 changed files
with
93 additions
and
14 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
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ npm-debug.log | |
.idea | ||
.tm_properties | ||
.settings | ||
.vscode | ||
typings | ||
typings.json | ||
build-system/runner/dist | ||
|
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,10 @@ | ||
// For an explanation of the OWNERS rules and syntax, see: | ||
// https://github.com/ampproject/amp-github-apps/blob/master/owners/OWNERS.example | ||
|
||
{ | ||
rules: [ | ||
{ | ||
owners: [{name: 'ampproject/wg-infra'}, {name: 'rsimha', notify: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"files.associations": { | ||
// Enable JSON5 syntax highlighting and auto-formatting for OWNERS files. | ||
// Until VS Code adds native JSON5 support, this needs | ||
// https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-json5 | ||
"OWNERS": "json5", | ||
|
||
// Enable JSON auto-formatting for these files. | ||
".eslintrc": "json", | ||
".prettierrc": "json", | ||
".renovaterc.json": "json", | ||
".codecov.yml": "yaml", | ||
".lando.yml": "yaml", | ||
".lgtm.yml": "yaml", | ||
".travis.yml": "yaml" | ||
}, | ||
|
||
// Auto-fix JS files with ESLint using amphtml's custom settings. Needs | ||
// https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint | ||
"eslint.autoFixOnSave": true, | ||
"[js]": {"editor.formatOnSave": false}, | ||
|
||
// Auto-fix non-JS files with Prettier using amphtml's custom settings. Needs | ||
// https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode | ||
"[yaml]": {"editor.formatOnSave": true}, | ||
"[json]": {"editor.formatOnSave": true}, | ||
"[json5]": {"editor.formatOnSave": 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