Skip to content

Commit ccc1810

Browse files
committed
rendering improvements, package updates
- switched to eslint - update molstar - better handling of small and fiber-like structures - one-based model index for naming model images
1 parent b339730 commit ccc1810

File tree

6 files changed

+1945
-872
lines changed

6 files changed

+1945
-872
lines changed

.eslintrc.json

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"project": "tsconfig.json",
9+
"sourceType": "module"
10+
},
11+
"plugins": [
12+
"@typescript-eslint"
13+
],
14+
"rules": {
15+
"@typescript-eslint/ban-types": "warn",
16+
"@typescript-eslint/class-name-casing": "off",
17+
"@typescript-eslint/indent": [
18+
"warn",
19+
4
20+
],
21+
"@typescript-eslint/member-delimiter-style": [
22+
"off",
23+
{
24+
"multiline": {
25+
"delimiter": "none",
26+
"requireLast": true
27+
},
28+
"singleline": {
29+
"delimiter": "semi",
30+
"requireLast": false
31+
}
32+
}
33+
],
34+
"@typescript-eslint/prefer-namespace-keyword": "warn",
35+
"@typescript-eslint/quotes": [
36+
"warn",
37+
"single",
38+
{
39+
"avoidEscape": true,
40+
"allowTemplateLiterals": true
41+
}
42+
],
43+
"@typescript-eslint/semi": [
44+
"off",
45+
null
46+
],
47+
"@typescript-eslint/type-annotation-spacing": "warn",
48+
"arrow-parens": [
49+
"off",
50+
"as-needed"
51+
],
52+
"comma-dangle": "off",
53+
"eqeqeq": [
54+
"warn",
55+
"smart"
56+
],
57+
"import/order": "off",
58+
"no-eval": "warn",
59+
"no-new-wrappers": "warn",
60+
"no-trailing-spaces": "warn",
61+
"no-unsafe-finally": "warn",
62+
"no-var": "warn",
63+
"spaced-comment": "warn"
64+
}
65+
}

0 commit comments

Comments
 (0)