Skip to content

Commit c7d2de7

Browse files
committed
Lint config files
- Set ESLint to not ignore `jest.config.js` & `webpack.config.js`. - Fix linting errors on both config files.
1 parent 7c1d758 commit c7d2de7

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ dist
33
coverage
44
out
55
public
6-
jest.config.js
7-
webpack.config.js

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const { pathsToModuleNameMapper } = require('ts-jest')
2-
const { compilerOptions } = require('./tsconfig.json')
1+
const { pathsToModuleNameMapper } = require('ts-jest');
2+
const { compilerOptions } = require('./tsconfig.json');
33

44
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
5-
module.exports = config = {
5+
module.exports = {
66
testEnvironment: 'node',
77
globals: {
88
'ts-jest': {

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const lodash = require('lodash');
1+
const path = require('path');
22
const CopyPlugin = require('copy-webpack-plugin');
33
const HtmlWebpackPlugin = require('html-webpack-plugin');
4+
const lodash = require('lodash');
45
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
5-
const path = require('path');
66

77
function srcPaths(src) {
88
return path.join(__dirname, src);
@@ -68,7 +68,7 @@ mainConfig.plugins = [
6868

6969
jsonContent.main = './main.bundle.js';
7070
jsonContent.scripts = { start: 'electron ./main.bundle.js' };
71-
jsonContent.devDependencies = { electron: electronVersion }
71+
jsonContent.devDependencies = { electron: electronVersion };
7272

7373
return JSON.stringify(jsonContent, undefined, 2);
7474
},

0 commit comments

Comments
 (0)