Skip to content

Commit 7951ac1

Browse files
committed
Adding eslint fixes
1 parent 6d9b933 commit 7951ac1

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

.eslintrc

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
}],
99
"arrow-body-style": "off",
1010
},
11+
"settings": {
12+
"import/resolver": {
13+
"node": {
14+
"extensions": [".js", ".jsx", ".ts", ".tsx"]
15+
}
16+
}
17+
},
1118
"env": {
1219
"mocha": true,
1320
"node": true,

src/index.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ import * as React from 'react';
22
import * as PropTypes from 'prop-types';
33
import cn from 'classnames';
44

5-
import { computeLineInformation, LineInformation, DiffInformation, DiffType } from './compute-lines';
5+
import {
6+
computeLineInformation,
7+
LineInformation,
8+
DiffInformation,
9+
DiffType,
10+
} from './compute-lines';
611
import computeStyles, { ReactDiffViewerStylesOverride, ReactDiffViewerStyles } from './styles';
712

13+
// eslint-disable-next-line @typescript-eslint/no-var-requires
814
const m = require('memoize-one');
915

1016
const memoize = m.default || m;

webpack.config.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const path = require('path')
2-
const HtmlWebpackPlugin = require('html-webpack-plugin')
3-
const webpack = require('webpack')
4-
const css = require('mini-css-extract-plugin')
5-
const FaviconsWebpackPlugin = require('favicons-webpack-plugin')
1+
const path = require('path');
2+
const HtmlWebpackPlugin = require('html-webpack-plugin');
3+
const webpack = require('webpack');
4+
const css = require('mini-css-extract-plugin');
5+
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
66

77
module.exports = {
88
entry: {
@@ -63,5 +63,5 @@ module.exports = {
6363
new css({
6464
filename: 'main.css',
6565
}),
66-
]
67-
}
66+
],
67+
};

0 commit comments

Comments
 (0)