Skip to content

Commit

Permalink
chore: fix git hooks and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoborges committed Nov 6, 2023
1 parent ea16554 commit 1cb95a7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"no-plusplus": 0,
"max-len": ["error", { "code": 120 }],
"@typescript-eslint/no-unused-vars": "warn",
"import/no-extraneous-dependencies": "off"
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-use-before-define": "off",
"react/require-default-props": "off",
"react/no-unused-prop-types": "off"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@
"typescript": "5.1"
},
"simple-git-hooks": {
"pre-commit": "npm run lint && npm run test && npm run build"
"pre-commit": "npm run lint && npm run build"
}
}
13 changes: 6 additions & 7 deletions scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ function build() {
};

function prepare() {
if [[ $CI == true ]]; then
echo "👋 CI detected, skipping git hooks installation...";
build;
else
echo "👋 Installing git hooks...";
npx simple-git-hooks >> /dev/null;
build;
npx simple-git-hooks >> /dev/null;
fi
};

function lint() {
Expand All @@ -33,11 +37,6 @@ function clean() {
rm -rf dist;
};

function postinstall() {
echo "👋 Running patches...";
npx patch-package;
};

function hello() {
echo "👋 Hello!" $args;
};
Expand Down
5 changes: 0 additions & 5 deletions src/Flex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ export type FlexProps = React.PropsWithChildren<{
style?: ViewProps['style'];
}>;

/**
*
* @param props {FlexProps}
* @returns
*/
export function Flex(props: FlexProps) {
const { children } = props;
const s = useMemo(() => getStyles(props), [props]);
Expand Down

0 comments on commit 1cb95a7

Please sign in to comment.