Skip to content

Commit bf4915a

Browse files
author
ldubos
committed
move from js to eslint ts
1 parent 4229031 commit bf4915a

10 files changed

+2081
-442
lines changed

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ indent_style = space
66
indent_size = 2
77
insert_final_newline = false
88
trim_trailing_whitespace = true
9+
10+
[*.{js,json,ts}]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.{md,markdown}]
15+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"ecmaVersion": 2018,
9+
"sourceType": "module",
10+
"project": "./tsconfig.json",
11+
"tsconfigRootDir": "./",
12+
"ecmaFeatures": {
13+
"jsx": false
14+
}
15+
},
16+
"extends": ["standard", "prettier", "prettier/@typescript-eslint"],
17+
"plugins": ["prettier", "@typescript-eslint"],
18+
"globals": {
19+
"Atomics": "readonly",
20+
"SharedArrayBuffer": "readonly"
21+
},
22+
"settings": {
23+
"import/resolver": {
24+
"typescript": {}
25+
}
26+
},
27+
"rules": {
28+
"prettier/prettier": "error",
29+
"@typescript-eslint/no-unused-vars": "error"
30+
}
31+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# OS
2+
.DS_Store
3+
.DS_Store?
4+
._*
5+
.Spotlight-V100
6+
.Trashes
7+
ehthumbs.db
8+
Thumbs.db
9+
10+
# IDE
11+
nbproject
12+
.~lock.*
13+
.buildpath
14+
.idea
15+
.project
16+
.settings
17+
.vscode
18+
composer.lock
19+
*.sublime-workspace
20+
*.swp
21+
*.swo
22+
23+
# Project
24+
*.log
25+
*.cache
26+
/.eslintcache
27+
/.nyc_output
28+
/.stryker-tmp
29+
/node_modules
30+
/dist

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 2,
3+
"singleQuote": true
4+
}

0 commit comments

Comments
 (0)