Skip to content

Commit

Permalink
Merge pull request #23 from lightning-js/feat/blits-file-type
Browse files Browse the repository at this point in the history
Release - v1.0.0
  • Loading branch information
uguraslan authored Nov 4, 2024
2 parents a0cc9e1 + f16d95f commit 6b6864a
Show file tree
Hide file tree
Showing 31 changed files with 6,036 additions and 3,533 deletions.
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

0 comments on commit 6b6864a

Please sign in to comment.