-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrates Prettier for formatting YAML, SCSS and JavaScript
- Loading branch information
1 parent
8aedb53
commit 93d8d23
Showing
43 changed files
with
939 additions
and
812 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 |
---|---|---|
@@ -1,20 +1,21 @@ | ||
env: | ||
browser: true | ||
es2021: true | ||
extends: 'airbnb-base' | ||
extends: | ||
- "airbnb-base" | ||
- "prettier" | ||
overrides: [] | ||
parserOptions: | ||
ecmaVersion: latest | ||
sourceType: module | ||
ignorePatterns: | ||
'app/javascript/entrypoints/vendor/**' | ||
ignorePatterns: "app/javascript/entrypoints/vendor/**" | ||
globals: | ||
$: readonly | ||
pdc: readonly # TODO: Used to pass datacite enums from Ruby to JS. When we move form construction to Ruby, should not be needed. | ||
pdc: readonly # TODO: Used to pass datacite enums from Ruby to JS. When we move form construction to Ruby, should not be needed. | ||
isOrcid: readonly # TODO: Clean this up by using ESM import/export. | ||
rules: | ||
no-alert: off # OK: A lot easier than coding up new UI. | ||
no-console: # OK: console.log is fine for debugging, but we don't want to keep it around indefinitely. | ||
- error # Also make sure that warnings and errors are marked as such. | ||
no-console: # OK: console.log is fine for debugging, but we don't want to keep it around indefinitely. | ||
- error # Also make sure that warnings and errors are marked as such. | ||
- { allow: ["warn", "error"] } | ||
no-restricted-syntax: off # TODO: Just one failure |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
README.md | ||
docs/ | ||
architecture-decisions/ | ||
.prettierrc | ||
vendor/ | ||
.yarn/ | ||
vite.config.mts | ||
spec/fixtures/**/*yaml |
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,22 @@ | ||
singleQuote: true | ||
proseWrap: never | ||
printWidth: 96 | ||
overrides: | ||
- files: | ||
- '*.md' | ||
- 'docs/**/*.md' | ||
options: | ||
proseWrap: preserve | ||
singleQuote: false | ||
- files: | ||
- 'config/**/*.yml' | ||
- '*.yml' | ||
- '*.yaml' | ||
options: | ||
proseWrap: preserve | ||
singleQuote: false | ||
- files: | ||
- 'app/assets/stylesheets/**/*.scss' | ||
options: | ||
proseWrap: preserve | ||
singleQuote: false |
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 @@ | ||
//= link_tree ../images | ||
//= link_directory ../stylesheets .css | ||
//= link edit_work_utils.js | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ header { | |
} | ||
|
||
.about, | ||
.groups, | ||
.groups, | ||
.how-to-submit, | ||
.help { | ||
background-color: #595959; | ||
|
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
Oops, something went wrong.