Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/apps/dashboard/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^9.27.0",
"eslint": "^9.39.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.4.0",
"eslint-plugin-react": "^7.37.5",
Expand Down
25 changes: 0 additions & 25 deletions packages/apps/dashboard/server/.eslintrc.js

This file was deleted.

57 changes: 57 additions & 0 deletions packages/apps/dashboard/server/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// @ts-check
import eslint from '@eslint/js';
import globals from 'globals';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import jestPlugin from 'eslint-plugin-jest';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['dist', 'node_modules'],
},
eslint.configs.recommended,
tseslint.configs.recommended,
eslintPluginPrettierRecommended,
{
files: ['**/*.ts', '**/*.js'],
languageOptions: {
globals: {
...globals.node,
...globals.es2022,
},
ecmaVersion: 2022,
sourceType: 'module',
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
jest: jestPlugin,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
"@/quotes": [
"error",
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
],
},
},
{
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'],
languageOptions: {
globals: {
...globals.jest,
},
},
plugins: {
jest: jestPlugin,
},
},
);
2 changes: 1 addition & 1 deletion packages/apps/dashboard/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/node": "22.10.5",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"eslint": "^9.39.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "29.5.0",
Expand Down
67 changes: 0 additions & 67 deletions packages/apps/faucet/client/.eslintrc.json

This file was deleted.

54 changes: 54 additions & 0 deletions packages/apps/faucet/client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import eslint from '@eslint/js';
import globals from 'globals';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import jestPlugin from 'eslint-plugin-jest';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['dist', 'node_modules', 'vite.config.ts'],
},
eslint.configs.recommended,
tseslint.configs.recommended,
eslintPluginPrettierRecommended,
{
files: ['**/*.ts', '**/*.js'],
languageOptions: {
globals: {
...globals.node,
...globals.es2022,
},
ecmaVersion: 2022,
sourceType: 'module',
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
jest: jestPlugin,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@/quotes': [
'error',
'single',
{ 'avoidEscape': true, 'allowTemplateLiterals': true }
],
},
},
{
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'],
languageOptions: {
globals: {
...globals.jest,
},
},
plugins: {
jest: jestPlugin,
},
}
);
2 changes: 1 addition & 1 deletion packages/apps/faucet/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"dotenv": "^17.2.2",
"eslint": "^8.55.0",
"eslint": "^9.39.1",
"eslint-config-react-app": "^7.0.1",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.29.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/apps/faucet/client/src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { FC, PropsWithChildren } from 'react';
import { Footer } from '../Footer';
import { Header } from '../Header';

export const Layout: FC<PropsWithChildren<{}>> = ({ children }) => (
type LayoutProps = PropsWithChildren<Record<string, never>>;

export const Layout: FC<LayoutProps> = ({ children }) => (
<Box
sx={{
marginTop: '88px',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import Box from '@mui/material/Box';
import { FC, PropsWithChildren } from 'react';

export const PageWrapper: FC<PropsWithChildren<{}>> = ({ children }) => (
type PageWrapperProps = PropsWithChildren<Record<string, never>>;

export const PageWrapper: FC<PageWrapperProps> = ({ children }) => (
<Box sx={{ px: { xs: 0, md: 3, lg: 5, xl: 7 } }}>
<Box
sx={{
Expand Down
50 changes: 24 additions & 26 deletions packages/apps/faucet/client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,29 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills';
dotenv.config();

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
return {
plugins: [
react(),
nodePolyfills({
// Whether to polyfill `node:` protocol imports.
protocolImports: true,
}),
],
worker: {
plugins: () => react(),
export default defineConfig({
plugins: [
react(),
nodePolyfills({
// Whether to polyfill `node:` protocol imports.
protocolImports: true,
}),
],
worker: {
plugins: () => react(),
},
resolve: {
alias: [{ find: 'src', replacement: path.resolve(__dirname, 'src') }],
},
optimizeDeps: {
include: ['@human-protocol/sdk'],
},
build: {
commonjsOptions: {
include: [/human-protocol-sdk/, /node_modules/],
},
resolve: {
alias: [{ find: 'src', replacement: path.resolve(__dirname, 'src') }],
},
optimizeDeps: {
include: ['@human-protocol/sdk'],
},
build: {
commonjsOptions: {
include: [/human-protocol-sdk/, /node_modules/],
},
},
server: {
port: 3006,
},
};
},
server: {
port: 3006,
},
});
3 changes: 0 additions & 3 deletions packages/apps/faucet/server/.eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions packages/apps/faucet/server/.eslintrc

This file was deleted.

51 changes: 51 additions & 0 deletions packages/apps/faucet/server/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import eslint from '@eslint/js';
import globals from 'globals';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import jestPlugin from 'eslint-plugin-jest';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['build/', 'dist/', 'node_modules/'],
},
eslint.configs.recommended,
tseslint.configs.recommended,
eslintPluginPrettierRecommended,
{
files: ['**/*.ts', '**/*.js'],
languageOptions: {
globals: {
...globals.node,
...globals.es2022,
},
ecmaVersion: 2022,
sourceType: 'module',
parserOptions: {
projectService: true,
},
},
plugins: {
jest: jestPlugin,
},
rules: {
'no-console': 'warn',
'prettier/prettier': 'error',
'@/quotes': [
'error',
'single',
{ 'avoidEscape': true, 'allowTemplateLiterals': true }
],
},
},
{
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'],
languageOptions: {
globals: {
...globals.jest,
},
},
plugins: {
jest: jestPlugin,
},
}
);
2 changes: 1 addition & 1 deletion packages/apps/faucet/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@types/express": "^4.17.14",
"@types/node": "^22.15.16",
"concurrently": "^9.1.2",
"eslint": "^8.55.0",
"eslint": "^9.39.1",
"hardhat": "^2.26.0",
"jest": "^29.7.0",
"ts-node": "^10.9.2",
Expand Down
Loading
Loading