Skip to content

Commit

Permalink
fix: disable unicorn/prefer-export-from cause it breaks IDEA imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Nov 4, 2021
1 parent 40b1a72 commit f9a1445
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 11 deletions.
1 change: 1 addition & 0 deletions cfg/eslint-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,5 +369,6 @@ module.exports = {
'@typescript-eslint/restrict-plus-operands': 0,
'@typescript-eslint/unbound-method': 0,
'@typescript-eslint/no-unsafe-argument': 0, // prevents "legit" use of `any`
'unicorn/prefer-export-from': 0, // breaks auto-imports in IntelliJ Idea
},
}
36 changes: 32 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
export * from './util/git.util'
import { buildProdCommand } from './cmd/build-prod.command'
import type { BuildInfo } from './util/buildInfo.model'
import { generateBuildInfo } from './util/buildInfo.util'
import {
getLastGitCommitMsg,
gitCommitAll,
gitCurrentCommitSha,
gitCurrentCommitTimestamp,
gitCurrentBranchName,
gitCurrentRepoName,
commitMessageToTitleMessage,
gitIsAhead,
gitHasUncommittedChanges,
gitPush,
gitPull,
} from './util/git.util'

export { buildProdCommand } from './cmd/build-prod.command'
export type { BuildInfo } from './util/buildInfo.model'
export { generateBuildInfo } from './util/buildInfo.util'
export {
generateBuildInfo,
buildProdCommand,
getLastGitCommitMsg,
gitCommitAll,
gitCurrentCommitSha,
gitCurrentCommitTimestamp,
gitCurrentBranchName,
gitCurrentRepoName,
commitMessageToTitleMessage,
gitIsAhead,
gitHasUncommittedChanges,
gitPush,
gitPull,
}
export type { BuildInfo }
25 changes: 18 additions & 7 deletions src/testing/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
import * as timekeeper from 'timekeeper'
// eslint-disable-next-line unicorn/prefer-export-from
export { timekeeper }
export { jestOffline } from '../jestOffline.util'
export { expectResults } from './expect.util'
export { mockAllKindsOfThings } from './mockAllKindsOfThings'
export { deepFreeze, silentConsole } from './testing.util'
export { mockTime, mockTimeMillis, MOCK_TS_2018_06_21, resetTime } from './time.util'
import { jestOffline } from '../jestOffline.util'
import { expectResults } from './expect.util'
import { mockAllKindsOfThings } from './mockAllKindsOfThings'
import { deepFreeze, silentConsole } from './testing.util'
import { mockTime, mockTimeMillis, MOCK_TS_2018_06_21, resetTime } from './time.util'

export {
jestOffline,
deepFreeze,
silentConsole,
mockTime,
mockTimeMillis,
resetTime,
MOCK_TS_2018_06_21,
timekeeper,
mockAllKindsOfThings,
expectResults,
}

0 comments on commit f9a1445

Please sign in to comment.