Skip to content

Commit

Permalink
Merge branch 'release/1.14.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
allohamora committed Mar 16, 2024
2 parents a47e694 + c6bfcc2 commit 6d9abbe
Show file tree
Hide file tree
Showing 20 changed files with 341 additions and 61 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
"sourceType": "module"
},
"plugins": ["@typescript-eslint/eslint-plugin", "beautiful-sort"],
"extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
"extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "plugin:deprecation/recommended"],
"root": true,
"env": {
"node": true,
"jest": true
},
"ignorePatterns": [".eslintrc.js"],
"rules": {
"no-use-before-define": "error",
"object-shorthand": "warn",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.14.0](https://github.com/allohamora/cli/compare/1.12.0...1.14.0) (2024-03-16)

### Features

- add better output for install warnings ([16cf67c](https://github.com/allohamora/cli/commit/16cf67c61ed38609b29508c3590b3953cc4617ba))
- add eslint-plugin-deprecation to configs ([7e0924b](https://github.com/allohamora/cli/commit/7e0924b55ae379b1e894400e1b877bf44f5f3684))
- add more eslint rules ([13fca82](https://github.com/allohamora/cli/commit/13fca82bdb21349845ed8c822c4f207e5279f0c9))
- migrate to husky v9 ([396cdec](https://github.com/allohamora/cli/commit/396cdec3c68b29241759bae918699efb7c1f248d))
- replace @typescript-eslint/no-use-before-define with no-use-before-define ([f46441f](https://github.com/allohamora/cli/commit/f46441f8666ca768e1af990765366a5560b01d3c))

## [1.13.0](https://github.com/allohamora/cli/compare/1.12.0...1.13.0) (2024-02-18)

### Features
Expand Down
4 changes: 2 additions & 2 deletions __tests__/categories/js/docker/docker.config.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { getConfig } from 'src/categories/js/docker/docker.config';
import { expectJsConfig } from '__tests__/test-utils/js-config';

interface ExpectDockerConfigArgs {
type ExpectDockerConfigArgs = {
getDockerFile: ({ version }: { version: string }) => string;
dockerIgnore: string;
}
};

const expectDockerConfig = ({ getDockerFile, dockerIgnore }: ExpectDockerConfigArgs) => {
const version = '16.14.2';
Expand Down
4 changes: 2 additions & 2 deletions __tests__/test-utils/cjs-module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import vm from 'node:vm';

interface Context {
type Context = {
module: {
exports?: Record<string, unknown>;
};
[key: string]: unknown;
}
};

export const parse = (script: string) => {
const context: Context = { module: { exports: {} } };
Expand Down
2 changes: 1 addition & 1 deletion __tests__/utils/run-command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const spawnMock = <EV>(event: 'exit' | 'error' = 'exit', emitValue?: EV, delayMs
const child = new ChildMock();

const exitHandler = () => child.emit(event, emitValue);
delay(delayMs).then(exitHandler);
void delay(delayMs).then(exitHandler);

childProcessMocked.spawn.mockReturnValueOnce(child as ReturnType<typeof childProcess.spawn>);

Expand Down
4 changes: 2 additions & 2 deletions __tests__/utils/state.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ describe('createConfigState', () => {
const types = ['1', '2', '3'];
const createNewTypeState = () => createTypeState(types);
let state = createNewTypeState();
let [getType, setType] = state;
let [, setType] = state;

const configValues = { default: 'default', '1': '1' };
const createNewConfigState = () => createConfigState(state, configValues);
let [getConfig] = createNewConfigState();

afterEach(() => {
state = createNewTypeState();
[getType, setType] = state;
[, setType] = state;
[getConfig] = createNewConfigState();
});

Expand Down
Loading

0 comments on commit 6d9abbe

Please sign in to comment.