Skip to content

Commit 1cb95a7

Browse files
committed
chore: fix git hooks and lint
1 parent ea16554 commit 1cb95a7

4 files changed

Lines changed: 11 additions & 14 deletions

File tree

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"no-plusplus": 0,
1010
"max-len": ["error", { "code": 120 }],
1111
"@typescript-eslint/no-unused-vars": "warn",
12-
"import/no-extraneous-dependencies": "off"
12+
"import/no-extraneous-dependencies": "off",
13+
"@typescript-eslint/no-use-before-define": "off",
14+
"react/require-default-props": "off",
15+
"react/no-unused-prop-types": "off"
1316
}
1417
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@
5858
"typescript": "5.1"
5959
},
6060
"simple-git-hooks": {
61-
"pre-commit": "npm run lint && npm run test && npm run build"
61+
"pre-commit": "npm run lint && npm run build"
6262
}
6363
}

scripts.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ function build() {
1818
};
1919

2020
function prepare() {
21+
if [[ $CI == true ]]; then
22+
echo "👋 CI detected, skipping git hooks installation...";
23+
build;
24+
else
2125
echo "👋 Installing git hooks...";
22-
npx simple-git-hooks >> /dev/null;
23-
build;
26+
npx simple-git-hooks >> /dev/null;
27+
fi
2428
};
2529

2630
function lint() {
@@ -33,11 +37,6 @@ function clean() {
3337
rm -rf dist;
3438
};
3539

36-
function postinstall() {
37-
echo "👋 Running patches...";
38-
npx patch-package;
39-
};
40-
4140
function hello() {
4241
echo "👋 Hello!" $args;
4342
};

src/Flex.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ export type FlexProps = React.PropsWithChildren<{
4242
style?: ViewProps['style'];
4343
}>;
4444

45-
/**
46-
*
47-
* @param props {FlexProps}
48-
* @returns
49-
*/
5045
export function Flex(props: FlexProps) {
5146
const { children } = props;
5247
const s = useMemo(() => getStyles(props), [props]);

0 commit comments

Comments
 (0)