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

Commit 05efdfa

Browse files
committed
Switch to eslint
1 parent 2f671fb commit 05efdfa

File tree

5 files changed

+626
-113
lines changed

5 files changed

+626
-113
lines changed

Diff for: .eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/*
2+
test/project/node_modules
3+
build

Diff for: .eslintrc.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
env:
2+
node: true
3+
parser: "@typescript-eslint/parser"
4+
extends:
5+
- "plugin:@typescript-eslint/recommended"
6+
- "prettier/@typescript-eslint"
7+
- "plugin:prettier/recommended"
8+
parserOptions:
9+
ecmaVersion: 2018
10+
sourceType: module
11+
project: tsconfig.json
12+
rules:
13+
"@typescript-eslint/array-type": [error, generic]
14+
"@typescript-eslint/interface-name-prefix": [error, never]
15+
"@typescript-eslint/promise-function-async": warning
16+
"@typescript-eslint/explicit-function-return-type": false
17+
overrides:
18+
- files: ["src/**/*.test.ts"]
19+
env:
20+
node: true
21+
jest: true

Diff for: .vscode/settings.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
{
2-
"typescript.tsdk": "./node_modules/typescript/lib"
2+
"typescript.tsdk": "./node_modules/typescript/lib",
3+
"editor.formatOnSave": true,
4+
"eslint.autoFixOnSave": true,
5+
"prettier.eslintIntegration": true,
6+
"eslint.enable": true,
7+
"eslint.validate": [
8+
"javascript",
9+
{
10+
"language": "typescript",
11+
"autoFix": true
12+
}
13+
]
314
}

0 commit comments

Comments
 (0)