Skip to content

Commit 9a7f950

Browse files
chore: update repository settings
1 parent a5f16e3 commit 9a7f950

File tree

11 files changed

+176
-3722
lines changed

11 files changed

+176
-3722
lines changed

.commitlintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
]
5+
}

.editorconfig

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

.eslintrc.json

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"plugin:@typescript-eslint/eslint-recommended"
6+
],
7+
"plugins": [
8+
"@typescript-eslint"
9+
],
10+
"parser": "@typescript-eslint/parser",
11+
"parserOptions": {
12+
"sourceType": "module",
13+
"ecmaVersion": 2018
14+
},
15+
"env": {
16+
"node": true,
17+
"jest": true,
18+
"es6": true
19+
},
20+
"settings": {
21+
"react": {
22+
"version": "latest"
23+
}
24+
},
25+
"rules": {
26+
"camelcase": [
27+
"error",
28+
{
29+
"properties": "always"
30+
}
31+
],
32+
"quotes": [
33+
"error",
34+
"single",
35+
"avoid-escape"
36+
],
37+
"key-spacing": [
38+
"error",
39+
{
40+
"singleLine": {
41+
"beforeColon": false,
42+
"afterColon": true
43+
},
44+
"multiLine": {
45+
"beforeColon": false,
46+
"afterColon": true
47+
}
48+
}
49+
],
50+
"no-magic-numbers": [
51+
"error",
52+
{
53+
"ignoreArrayIndexes": true
54+
}
55+
],
56+
"eqeqeq": "error",
57+
"block-scoped-var": "error",
58+
"complexity": [
59+
"error",
60+
{
61+
"maximum": 20
62+
}
63+
],
64+
"curly": "error",
65+
"default-case": "error",
66+
"dot-location": [
67+
"error",
68+
"property"
69+
],
70+
"guard-for-in": "error",
71+
"no-eval": "error",
72+
"block-spacing": "error",
73+
"brace-style": "error",
74+
"comma-spacing": [
75+
"error",
76+
{
77+
"before": false,
78+
"after": true
79+
}
80+
],
81+
"id-length": [
82+
"error",
83+
{
84+
"min": 2,
85+
"properties": "never",
86+
"exceptions": [
87+
"$"
88+
]
89+
}
90+
],
91+
"indent": [
92+
"error",
93+
2,
94+
{
95+
"SwitchCase": 1
96+
}
97+
],
98+
"space-before-function-paren": [
99+
"error",
100+
"never"
101+
],
102+
"space-before-blocks": "error",
103+
"prefer-const": "error",
104+
"no-var": "error",
105+
"arrow-body-style": "off",
106+
"arrow-spacing": "error",
107+
"strict": [
108+
"error"
109+
],
110+
"no-warning-comments": [
111+
"warn",
112+
{
113+
"terms": [
114+
"todo",
115+
"fixme",
116+
"hack"
117+
],
118+
"location": "anywhere"
119+
}
120+
],
121+
"semi": [
122+
"error",
123+
"always"
124+
],
125+
"@typescript-eslint/naming-convention": [
126+
"error",
127+
{
128+
"selector": "interface",
129+
"format": ["PascalCase"],
130+
"custom": {
131+
"regex": "^I[A-Z]",
132+
"match": true
133+
}
134+
}
135+
]
136+
}
137+
}

.gitignore

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
lib-cov
2-
*.seed
3-
*.log
4-
*.csv
5-
*.dat
6-
*.out
7-
*.pid
8-
*.gz
9-
10-
pids
11-
logs
12-
results
13-
14-
node_modules
15-
npm-debug.log
16-
samples
17-
tmp_samples
1+
/.idea
2+
/node_modules
3+
/coverage
4+
/build
5+
.eslintcache

.huskyrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
4+
"pre-commit": "lint-staged"
5+
}
6+
}

.lintstagedrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{js,jsx,ts,tsx}": "yarn lint:fix"
3+
}

.pre-commit-hooks.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

LICENSE

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
Copyright 2013 Thorsten Lorenz.
2-
All rights reserved.
1+
The MIT License (MIT)
2+
3+
Copyright 2013 Thorsten Lorenz.
4+
Copyright (c) 2020 Technote
35

46
Permission is hereby granted, free of charge, to any person
57
obtaining a copy of this software and associated documentation

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
theme: jekyll-theme-architect
2+
3+
# Google Analytics
4+
google_analytics: UA-78163306-3

0 commit comments

Comments
 (0)