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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .github/workflows/npm-stage-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: npm Build

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [stage*]

jobs:
SFTP-deploy:
name: 🪛 Build
runs-on: ubuntu-latest

steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4

- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: "22"

- name: 🔨 Build Vite Admin - npm
run: |
cd admin
cd vite
npm i
npm run build
2 changes: 1 addition & 1 deletion admin/.env → admin/nextjs/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Version
NEXT_PUBLIC_VERSION=v1.2.0
NEXT_PUBLIC_VERSION=v1.3.0

## Public URL
NEXT_PUBLIC_PATH=
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion admin/.prettierrc → admin/nextjs/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"singleQuote": true,
"trailingComma": "none",
"tabWidth": 2,
"useTabs": false
"useTabs": false,
"endOfLine": "lf"
}
File renamed without changes.
75 changes: 30 additions & 45 deletions admin/eslint.config.mjs → admin/nextjs/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { fixupConfigRules } from '@eslint/compat';
import prettier from 'eslint-plugin-prettier';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import jsxA11y from 'eslint-plugin-jsx-a11y';
import js from '@eslint/js';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
Expand All @@ -15,36 +17,29 @@ const compat = new FlatCompat({
});

export default [
{
ignores: ['**/node_modules/*', '**/.next/*']
},
...compat.extends('next/core-web-vitals', 'prettier'),
...fixupConfigRules(compat.extends('prettier')),

{
plugins: {
prettier,
'@typescript-eslint': typescriptEslint
react,
'react-hooks': reactHooks,
'jsx-a11y': jsxA11y
},

languageOptions: {
parser: tsParser,
ecmaVersion: 5,
ecmaVersion: 2020,
sourceType: 'module',

parserOptions: {
project: './jsconfig.json',
createDefaultProgram: true
ecmaFeatures: {
jsx: true
}
}
},

settings: {
'import/resolver': {
node: {
moduleDirectory: ['node_modules', 'src/']
},

typescript: {
alwaysTryTypes: true
}
react: {
version: 'detect'
}
},

Expand All @@ -59,19 +54,15 @@ export default [
'import/order': 'off',
'no-console': 'off',
'no-shadow': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'import/no-cycle': 'off',
'prefer-destructuring': 'off',
'import/no-extraneous-dependencies': 'off',
'react/display-name': 'off',

'import/no-unresolved': [
'off',
{
caseSensitive: false
}
],
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/no-autofocus': 'off',
'react/jsx-uses-react': 'off',
'react/jsx-uses-vars': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-unused-vars': 'off',

'no-restricted-imports': [
'error',
Expand All @@ -80,25 +71,19 @@ export default [
}
],

'@typescript-eslint/no-unused-vars': [
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'none'
}
],

'prettier/prettier': [
'warn',
{
bracketSpacing: true,
printWidth: 140,
singleQuote: true,
trailingComma: 'none',
tabWidth: 2,
useTabs: false
}
]
'prettier/prettier': 'warn'
}
},
{
ignores: ['node_modules/**'],
files: ['src/**/*.{js,jsx}']
}
];
];
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading