Skip to content
This repository was archived by the owner on Dec 10, 2021. It is now read-only.

Switch to eslint #16

Merged
merged 2 commits into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/*
test/project/node_modules
build
21 changes: 21 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
env:
node: true
parser: "@typescript-eslint/parser"
extends:
- "plugin:@typescript-eslint/recommended"
- "prettier/@typescript-eslint"
- "plugin:prettier/recommended"
parserOptions:
ecmaVersion: 2018
sourceType: module
project: tsconfig.json
rules:
"@typescript-eslint/array-type": [error, generic]
"@typescript-eslint/interface-name-prefix": [error, never]
"@typescript-eslint/promise-function-async": warning
"@typescript-eslint/explicit-function-return-type": false
overrides:
- files: ["src/**/*.test.ts"]
env:
node: true
jest: true
13 changes: 12 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
"typescript.tsdk": "./node_modules/typescript/lib"
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,
"prettier.eslintIntegration": true,
"eslint.enable": true,
"eslint.validate": [
"javascript",
{
"language": "typescript",
"autoFix": true
}
]
}
Loading