Skip to content

Commit e5c0d96

Browse files
committed
Add eslint
1 parent 4167f2d commit e5c0d96

6 files changed

+2623
-122
lines changed

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
sample

.eslintrc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
],
12+
"rules": {
13+
"@typescript-eslint/explicit-member-accessibility": "error",
14+
"@typescript-eslint/no-empty-function": "warn",
15+
"brace-style": [
16+
"error",
17+
"stroustrup"
18+
],
19+
"no-empty": "warn",
20+
"semi": "error"
21+
}
22+
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
build
2+
13

24
# Created by https://www.toptal.com/developers/gitignore/api/windows,linux,macos,node
35
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,linux,macos,node

0 commit comments

Comments
 (0)