fix up CI

This commit is contained in:
fmtabbara
2024-07-08 17:53:18 +01:00
parent 9c85d51e34
commit 4c01ee0150
8 changed files with 47 additions and 28 deletions
@@ -1,5 +1,20 @@
{
"parserOptions": {
"project": "./tsconfig.eslint.json"
"root": true,
"env": {
"browser": true,
"es2020": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended"],
"ignorePatterns": ["dist", ".eslintrc.cjs"],
"parser": "@typescript-eslint/parser",
"plugins": ["react-refresh"],
"rules": {
"react-refresh/only-export-components": [
"warn",
{
"allowConstantExport": true
}
],
"@typescript-eslint/no-explicit-any": "warn"
}
}
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
@@ -38,7 +38,7 @@ export const CurrencyFormField = ({
showCoinMark = true,
denom = 'nym',
}: CurrencyFormFieldProps) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [value, setValue] = React.useState<string | undefined>(initialValue);
const [validationError, setValidationError] = React.useState<string | undefined>(validationErrorProp);
@@ -1,5 +1,3 @@
/* eslint-disable no-shadow,@typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-interface,import/no-extraneous-dependencies */
import { Theme, ThemeOptions, Palette, PaletteOptions } from '@mui/material/styles';
import { NymTheme, NymPaletteWithExtensions, NymPaletteWithExtensionsOptions } from '@nymproject/mui-theme';
/**
@@ -1 +1 @@
declare type FCWithChildren<P = {}> = React.FC<React.PropsWithChildren<P>>;
declare type FCWithChildren<P = object> = React.FC<React.PropsWithChildren<P>>;
@@ -1,19 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx",
"noEmit": true
},
"include": [
".storybook/*.js",
"src/**/*.js",
"src/**/*.jsx",
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.stories.*",
],
"exclude": [
"node_modules",
"dist"
]
}
@@ -3,7 +3,8 @@
"jsx": "react-jsx",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"noEmit": true
"noEmit": true,
"noImplicitAny": false
},
"files": [],
"references": [
@@ -9,11 +9,11 @@ rm -rf ../../dist || true
# Bundle application
yarn build
pnpm build
# Bundle types
yarn build:types
pnp, build:types
# Build package.json for bundle