Skip to content

Commit

Permalink
Add URL Pattern standard
Browse files Browse the repository at this point in the history
This includes support for overriding the .editorconfig max_line_length in the spec's Bikeshed file.
  • Loading branch information
domenic committed Oct 19, 2023
1 parent 86b3c4f commit e12decd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .editorconfig.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ max_line_length = 100
indent_style = tab

[*.bs]
indent_size = @@bikeshed_indent_size@@
indent_size = @@bikeshed_indent_size@@@@bikeshed_max_line_length@@

[*.py]
indent_size = 4
8 changes: 8 additions & 0 deletions factory.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@
"extra_implementers": ["Deno", "Node.js"],
"readme": "README.md.anne.template-part"
},
"urlpattern": {
"extra_implementers": [
"Deno",
"kenchris/urlpattern-polyfill"
],
"bikeshed_indent_size": 2,
"bikeshed_max_line_length": "off"
},
"webidl": {
".gitignore": ["/node_modules/"],
"bikeshed_indent_size": 4,
Expand Down
3 changes: 3 additions & 0 deletions factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def fill_template(contents, variables):
data = "\n\tEXTRA_FILES=\"{}\" \\".format(data)
elif variable == "bikeshed_indent_size":
data = str(data)
elif variable == "bikeshed_max_line_length" and data != "":
data = "\nmax_line_length = {}".format(data)
elif variable == "build_with_node" and data != "":
data = """
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -91,6 +93,7 @@ def update_files(shortname, name, in_main=False):
"h1": name,
"extra_files": "",
"bikeshed_indent_size": 1,
"bikeshed_max_line_length": "",
"build_with_node": "",
"post_build_step": "",
".gitignore": [],
Expand Down

0 comments on commit e12decd

Please sign in to comment.