Skip to content

Commit 7adfceb

Browse files
author
kanekotic
committed
ALVARO | moved to eslint
1 parent 6dc475f commit 7adfceb

File tree

7 files changed

+2365
-355
lines changed

7 files changed

+2365
-355
lines changed

.eslintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:import/recommended",
12+
"plugin:import/typescript"
13+
],
14+
"parser": "@typescript-eslint/parser",
15+
"parserOptions": {
16+
"ecmaVersion": 12,
17+
"sourceType": "module"
18+
}
19+
}

.npmignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
.travis.yml
88
jestconfig.json
99
README.md
10-
tsconfig.json
11-
tslint.json
1210
coverage
13-
.parcel-cache/
11+
.eslintrc.json
12+
.parcel-cache/

lib/Constructor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import { Actor } from 'tarant'
22

3+
/* eslint-disable @typescript-eslint/no-explicit-any */
34
export type Constructor<T extends Actor> = new (...args: any[]) => T

lib/decorate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Actor } from 'tarant'
22
import { Constructor } from './Constructor'
33

4+
/* eslint-disable @typescript-eslint/no-explicit-any */
45
export function decorate<T extends Actor>(SuperClass: Constructor<T>, ...decorators: any[]): Constructor<T> {
56
return class extends (SuperClass as Constructor<Actor>) {
67
constructor(params: any) {

0 commit comments

Comments
 (0)