Skip to content

Commit 6b6864a

Browse files
authored
Merge pull request #23 from lightning-js/feat/blits-file-type
Release - v1.0.0
2 parents a0cc9e1 + f16d95f commit 6b6864a

31 files changed

+6036
-3533
lines changed

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*]
2+
charset = utf-8
3+
indent_size = 2
4+
indent_style = space
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true

.eslintrc.json

Lines changed: 68 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,69 @@
11
{
2-
"env": {
3-
"browser": false,
4-
"commonjs": true,
5-
"es6": true,
6-
"node": true,
7-
"mocha": true
8-
},
9-
"plugins": [
10-
"prettier"
11-
],
12-
"extends": [
13-
"eslint:recommended",
14-
"plugin:prettier/recommended",
15-
"prettier"
16-
],
17-
"parserOptions": {
18-
"ecmaVersion": 2018,
19-
"ecmaFeatures": {
20-
"jsx": true
21-
},
22-
"sourceType": "module"
23-
},
24-
"rules": {
25-
"no-const-assign": "warn",
26-
"no-this-before-super": "warn",
27-
"no-undef": "warn",
28-
"no-unreachable": "warn",
29-
"no-unused-vars": "warn",
30-
"constructor-super": "warn",
31-
"valid-typeof": "warn",
32-
"indent": [
33-
"error",
34-
2
35-
],
36-
"linebreak-style": [
37-
"error",
38-
"unix"
39-
],
40-
"quotes": [
41-
"error",
42-
"single"
43-
],
44-
"semi": [
45-
"error",
46-
"never"
47-
],
48-
"eqeqeq": "off",
49-
"no-trailing-spaces": "off",
50-
"padded-blocks": "off",
51-
"prettier/prettier": [
52-
"error",
53-
{
54-
"trailingComma": "es5",
55-
"singleQuote": true,
56-
"tabWidth": 2,
57-
"semi": false
58-
}
59-
]
60-
}
61-
}
2+
"env": {
3+
"browser": false,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true,
7+
"mocha": true
8+
},
9+
"plugins": [
10+
"prettier"
11+
],
12+
"extends": [
13+
"eslint:recommended",
14+
"plugin:prettier/recommended"
15+
],
16+
"parserOptions": {
17+
"ecmaVersion": 2021,
18+
"sourceType": "commonjs"
19+
},
20+
"rules": {
21+
"no-const-assign": "warn",
22+
"no-this-before-super": "warn",
23+
"no-undef": "warn",
24+
"no-unreachable": "warn",
25+
"no-unused-vars": "warn",
26+
"constructor-super": "warn",
27+
"valid-typeof": "warn",
28+
"indent": [
29+
"error",
30+
2,
31+
{
32+
"SwitchCase": 1
33+
}
34+
],
35+
"linebreak-style": [
36+
"error",
37+
"unix"
38+
],
39+
"quotes": [
40+
"error",
41+
"single"
42+
],
43+
"semi": [
44+
"error",
45+
"never"
46+
],
47+
"eqeqeq": "off",
48+
"no-trailing-spaces": "off",
49+
"padded-blocks": "off",
50+
"prettier/prettier": [
51+
"error",
52+
{
53+
"trailingComma": "es5",
54+
"singleQuote": true,
55+
"tabWidth": 2,
56+
"semi": false,
57+
"printWidth": 120
58+
}
59+
]
60+
},
61+
"overrides": [
62+
{
63+
"files": ["*.js"],
64+
"rules": {
65+
"semi": ["error", "never"]
66+
}
67+
}
68+
]
69+
}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
node_modules
22
/*.vsix
33
out
4-
.DS_Store
4+
.DS_Store
5+
backup
6+
*.vsix
7+
*.zip

.vscodeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ vsc-extension-quickstart.md
77
**/jsconfig.json
88
**/*.map
99
**/.eslintrc.json
10+
.github
11+
backup
12+
*.vsix
13+
*.zip

jsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
4+
"moduleResolution": "node",
5+
"resolveJsonModule": true,
36
"module": "commonjs",
47
"target": "ES2020",
5-
"checkJs": false, /* Typecheck .js files. */
8+
"checkJs": true,
69
"lib": [
710
"ES2020"
811
]
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": ["/*", "*/"]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"],
10+
["<", ">"]
11+
],
12+
"autoClosingPairs": [
13+
{ "open": "{", "close": "}" },
14+
{ "open": "[", "close": "]" },
15+
{ "open": "(", "close": ")" },
16+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
17+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
18+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
19+
{ "open": "/**", "close": " */", "notIn": ["string"] },
20+
{ "open": "<", "close": ">", "notIn": ["string", "comment"] },
21+
{ "open": "<!--", "close": " -->", "notIn": ["string"] }
22+
],
23+
"autoCloseBefore": ";:.,=}])>` \n\t",
24+
"surroundingPairs": [
25+
["{", "}"],
26+
["[", "]"],
27+
["(", ")"],
28+
["'", "'"],
29+
["\"", "\""],
30+
["`", "`"],
31+
["<", ">"]
32+
],
33+
"folding": {
34+
"markers": {
35+
"start": "^<(template|script)\\b.*>",
36+
"end": "^</(template|script)>"
37+
}
38+
},
39+
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^`~!@#%^&*()\\-+=\\[\\]{\\}\\\\|;:'\",.<>/?\\s]+)",
40+
"indentationRules": {
41+
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*|<[^/>]*>)$",
42+
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$|^\\s*<\\/[^>]+>"
43+
},
44+
"onEnterRules": [
45+
{
46+
"beforeText": "^\\s*<script[^>]*>$",
47+
"action": { "indent": "indent" }
48+
},
49+
{
50+
"beforeText": "^\\s*<template[^>]*>$",
51+
"action": { "indent": "indent" }
52+
},
53+
{
54+
"beforeText": "^\\s*</script>$",
55+
"action": { "indent": "outdent" }
56+
},
57+
{
58+
"beforeText": "^\\s*</template>$",
59+
"action": { "indent": "outdent" }
60+
},
61+
{
62+
"beforeText": "^\\s*/\\*.*$",
63+
"action": { "indent": "indent" }
64+
},
65+
{
66+
"beforeText": "^\\s*\\*/$",
67+
"action": { "indent": "outdent" }
68+
},
69+
{
70+
"beforeText": "^\\s*<([^/][^>]*[^/>])>\\s*$",
71+
"afterText": "^\\s*</([^>]+)>\\s*$",
72+
"action": { "indent": "indentOutdent" }
73+
},
74+
{
75+
"beforeText": "^\\s*<([^/][^>]*[^/>])>\\s*$",
76+
"action": { "indent": "none" }
77+
},
78+
{
79+
"beforeText": "^\\s*<!--$",
80+
"action": { "indent": "none" }
81+
}
82+
]
83+
}

languages/icons/blits-icon.svg

Lines changed: 32 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)