Skip to content

Commit

Permalink
Externalize spec typings, use eslint.
Browse files Browse the repository at this point in the history
Tslint is deprecated, as such we have moved to eslint. Linted the project with more
stringent rules. The configuration will be changed as we figure out which rules we
should keep.
  • Loading branch information
dscalzi committed Jan 26, 2020
1 parent 8911f54 commit 064a664
Show file tree
Hide file tree
Showing 40 changed files with 2,154 additions and 526 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
42 changes: 42 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"semi": "off",
"@typescript-eslint/semi": [
"error",
"never"
],
"quotes": "off",
"@typescript-eslint/quotes": [
"error",
"single"
],
"indent": "off",
"@typescript-eslint/indent": [
"error",
4
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}
]
}
}
Loading

0 comments on commit 064a664

Please sign in to comment.