Skip to content

Commit

Permalink
refactor: upgrade linter
Browse files Browse the repository at this point in the history
  • Loading branch information
will-stone committed Oct 7, 2023
1 parent 8e58e10 commit d05e8d7
Show file tree
Hide file tree
Showing 10 changed files with 270 additions and 197 deletions.
2 changes: 1 addition & 1 deletion __mocks__/fileMock.js → __mocks__/file-mock.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// __mocks__/fileMock.js
// __mocks__/file-mock.js

module.exports = 'test-file-stub'
File renamed without changes.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from '@will-stone/eslint-config'

export default [...config]
export default config()
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import type { Config } from '@jest/types'
// Sync object
const config: Config.InitialOptions = {
moduleNameMapper: {
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js',
'\\.(css|less)$': '<rootDir>/__mocks__/style-mock.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/__mocks__/fileMock.js',
'<rootDir>/__mocks__/file-mock.js',
},
modulePathIgnorePatterns: ['<rootDir>/out/'],
preset: 'ts-jest',
Expand Down
451 changes: 262 additions & 189 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"doctor": "npm run lint && npm run typecheck && npm run test",
"icns": "cd ./src/shared/static/icon && ../../../../scripts/png2icns.sh icon.png",
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
"list-apps": "ts-node ./scripts/listInstalledApps",
"list-apps": "ts-node ./scripts/list-installed-apps",
"make": "electron-forge make --arch=x64,arm64",
"make:arm": "electron-forge make --arch=arm64",
"make:intel": "electron-forge make --arch=x64",
Expand Down Expand Up @@ -60,7 +60,7 @@
"@types/react-dom": "^18.2.7",
"@types/react-redux": "^7.1.25",
"@vercel/webpack-asset-relocator-loader": "^1.7.3",
"@will-stone/eslint-config": "^0.1.0",
"@will-stone/eslint-config": "^0.5.1",
"@will-stone/prettier-config": "^7.0.1",
"app-exists": "^2.1.1",
"axios": "^1.4.0",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main/state/middleware.action-hub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { app, autoUpdater, shell } from 'electron'
import deepEqual from 'fast-deep-equal'

import { B_URL, ISSUES_URL } from '../../config/CONSTANTS'
import { B_URL, ISSUES_URL } from '../../config/constants'
import {
clickedApp,
clickedUpdateBar,
Expand Down
2 changes: 1 addition & 1 deletion src/shared/state/reducer.data.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createReducer } from '@reduxjs/toolkit'

import type { AppName } from '../../config/apps'
import { CARROT_URL } from '../../config/CONSTANTS'
import { CARROT_URL } from '../../config/constants'
import {
availableUpdate,
downloadedUpdate,
Expand Down

0 comments on commit d05e8d7

Please sign in to comment.