Skip to content

Commit

Permalink
chore: 馃敡 maintenance (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Can-Sahin committed Sep 5, 2020
1 parent 59d5cc4 commit 432f449
Show file tree
Hide file tree
Showing 9 changed files with 1,423 additions and 1,715 deletions.
7 changes: 1 addition & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ const prettierOptions = JSON.parse(
);

module.exports = {
extends: [
'react-app',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
],
extends: ['react-app', 'prettier', 'prettier/react'],
plugins: ['prettier'],
rules: {
'prettier/prettier': ['error', prettierOptions],
Expand Down
4 changes: 2 additions & 2 deletions internals/generators/component/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Component Generator
*/

import { Actions, PlopGenerator } from 'node-plop';
import { Actions, PlopGeneratorConfig } from 'node-plop';
import path from 'path';

import { componentExists } from '../utils';
Expand All @@ -17,7 +17,7 @@ export enum ComponentProptNames {
}
const componentsPath = path.join(__dirname, '../../../src/app/components');

export const componentGenerator: PlopGenerator = {
export const componentGenerator: PlopGeneratorConfig = {
description: 'Add an unconnected component',
prompts: [
{
Expand Down
6 changes: 3 additions & 3 deletions internals/generators/container/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Component Generator
* Container Generator
*/

import { Actions, PlopGenerator } from 'node-plop';
import { Actions, PlopGeneratorConfig } from 'node-plop';
import path from 'path';

import { containerExists } from '../utils';
Expand All @@ -22,7 +22,7 @@ export enum ContainerProptNames {
const containersPath = path.join(__dirname, '../../../src/app/containers');
const rootStatePath = path.join(__dirname, '../../../src/types/RootState.ts');

export const containerGenerator: PlopGenerator = {
export const containerGenerator: PlopGeneratorConfig = {
description: 'Add a container component',
prompts: [
{
Expand Down
2 changes: 1 addition & 1 deletion internals/testing/test-generators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ContainerProptNames } from '../generators/container';
import { PlopGenerator as PG } from 'node-plop';

interface PlopGenerator extends PG {
runActions?: <T extends string | number>(
runActions: <T extends string | number>(
props: { [P in T]: any },
) => Promise<{ changes: []; failures: [] }>;
}
Expand Down

0 comments on commit 432f449

Please sign in to comment.