Skip to content

Commit f11d84f

Browse files
author
Excodibur
committed
improved logging, light settings, code formating
1 parent 06435db commit f11d84f

File tree

11 files changed

+2117
-758
lines changed

11 files changed

+2117
-758
lines changed

.eslintrc.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module.exports = {
2+
"ignorePatterns": ["*.min.js", "widgets/*/lib/*.js"],
3+
"env": {
4+
"browser": true,
5+
"es2021": true,
6+
"jquery": true
7+
},
8+
"extends": [
9+
"standard"
10+
],
11+
"parserOptions": {
12+
"ecmaVersion": 12
13+
},
14+
"rules": {
15+
"indent": ["warn", 4, { "SwitchCase": 1 }],
16+
"quotes": [
17+
"error",
18+
"double",
19+
{
20+
"avoidEscape": true,
21+
"allowTemplateLiterals": true
22+
}
23+
],
24+
"quote-props": ["error", "always"],
25+
"semi": [
26+
"error",
27+
"always"
28+
],
29+
"curly": ["warn", "multi-or-nest"],
30+
"space-before-function-paren": ["warn", "always"],
31+
"no-unused-vars": 0
32+
},
33+
"plugins": ["html"]
34+
};

.github/workflows/test-and-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ jobs:
3535

3636
- name: Install Dependencies
3737
run: npm ci
38-
38+
39+
- name: Lint TypeScript code
40+
run: npm run lint
41+
3942
- name: Test package files
4043
run: npm run test:package
4144

0 commit comments

Comments
 (0)