Skip to content

Commit 793d1bb

Browse files
committed
chore: eslint fix
1 parent cd05cff commit 793d1bb

File tree

5 files changed

+67
-1
lines changed

5 files changed

+67
-1
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**/*.js
2+
examples/
3+
dist/
4+
build/

.eslintrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"project": "tsconfig.json",
10+
"sourceType": "module"
11+
},
12+
"plugins": [
13+
"@typescript-eslint",
14+
"jest"
15+
],
16+
"extends": [
17+
"eslint:recommended",
18+
"plugin:@typescript-eslint/eslint-recommended",
19+
"plugin:@typescript-eslint/recommended",
20+
"plugin:jest/recommended",
21+
"prettier",
22+
"prettier/@typescript-eslint"
23+
],
24+
"rules": {}
25+
}

package-lock.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"@types/enzyme": "^3.10.8",
3838
"@types/jest": "^26.0.15",
3939
"@types/react": "^16.9.56",
40+
"@typescript-eslint/eslint-plugin": "^4.7.0",
41+
"@typescript-eslint/parser": "^4.7.0",
4042
"enzyme": "^3.11.0",
4143
"enzyme-adapter-react-16": "^1.15.5",
4244
"eslint": "~7.13.0",

src/grid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from "react";
22
import { Component, createRef, RefObject } from "react";
33
import { Grid as Gridjs, UserConfig } from "gridjs";
44

5-
class Grid extends Component<Partial<UserConfig>, {}> {
5+
class Grid extends Component<Partial<UserConfig>, any> {
66
private wrapper: RefObject<HTMLDivElement> = createRef();
77
// Grid.js instance
88
private readonly instance = null;

0 commit comments

Comments
 (0)