Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release - v1.0.0 #23

Merged
merged 18 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[*]
charset = utf-8
indent_size = 2
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
128 changes: 68 additions & 60 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,69 @@
{
"env": {
"browser": false,
"commonjs": true,
"es6": true,
"node": true,
"mocha": true
},
"plugins": [
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn",
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"eqeqeq": "off",
"no-trailing-spaces": "off",
"padded-blocks": "off",
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"tabWidth": 2,
"semi": false
}
]
}
}
"env": {
"browser": false,
"commonjs": true,
"es6": true,
"node": true,
"mocha": true
},
"plugins": [
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "commonjs"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn",
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"eqeqeq": "off",
"no-trailing-spaces": "off",
"padded-blocks": "off",
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"tabWidth": 2,
"semi": false,
"printWidth": 120
}
]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"semi": ["error", "never"]
}
}
]
}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
node_modules
/*.vsix
out
.DS_Store
.DS_Store
backup
*.vsix
*.zip
4 changes: 4 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ vsc-extension-quickstart.md
**/jsconfig.json
**/*.map
**/.eslintrc.json
.github
backup
*.vsix
*.zip
5 changes: 4 additions & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"module": "commonjs",
"target": "ES2020",
"checkJs": false, /* Typecheck .js files. */
"checkJs": true,
"lib": [
"ES2020"
]
Expand Down
83 changes: 83 additions & 0 deletions languages/blits-language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"comments": {
"lineComment": "//",
"blockComment": ["/*", "*/"]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"],
["<", ">"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
{ "open": "/**", "close": " */", "notIn": ["string"] },
{ "open": "<", "close": ">", "notIn": ["string", "comment"] },
{ "open": "<!--", "close": " -->", "notIn": ["string"] }
],
"autoCloseBefore": ";:.,=}])>` \n\t",
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["'", "'"],
["\"", "\""],
["`", "`"],
["<", ">"]
],
"folding": {
"markers": {
"start": "^<(template|script)\\b.*>",
"end": "^</(template|script)>"
}
},
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^`~!@#%^&*()\\-+=\\[\\]{\\}\\\\|;:'\",.<>/?\\s]+)",
"indentationRules": {
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*|<[^/>]*>)$",
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$|^\\s*<\\/[^>]+>"
},
"onEnterRules": [
{
"beforeText": "^\\s*<script[^>]*>$",
"action": { "indent": "indent" }
},
{
"beforeText": "^\\s*<template[^>]*>$",
"action": { "indent": "indent" }
},
{
"beforeText": "^\\s*</script>$",
"action": { "indent": "outdent" }
},
{
"beforeText": "^\\s*</template>$",
"action": { "indent": "outdent" }
},
{
"beforeText": "^\\s*/\\*.*$",
"action": { "indent": "indent" }
},
{
"beforeText": "^\\s*\\*/$",
"action": { "indent": "outdent" }
},
{
"beforeText": "^\\s*<([^/][^>]*[^/>])>\\s*$",
"afterText": "^\\s*</([^>]+)>\\s*$",
"action": { "indent": "indentOutdent" }
},
{
"beforeText": "^\\s*<([^/][^>]*[^/>])>\\s*$",
"action": { "indent": "none" }
},
{
"beforeText": "^\\s*<!--$",
"action": { "indent": "none" }
}
]
}
32 changes: 32 additions & 0 deletions languages/icons/blits-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading