mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2026-09-01 16:25:19 +08:00
Issue templates, also bumped packages
This commit is contained in:
@@ -1,110 +0,0 @@
|
||||
import js from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import reactPlugin from 'eslint-plugin-react';
|
||||
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
||||
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
|
||||
import prettierConfig from 'eslint-config-prettier';
|
||||
import prettierPlugin from 'eslint-plugin-prettier';
|
||||
|
||||
export default tseslint.config(
|
||||
// Base recommended configs
|
||||
js.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
|
||||
// Global ignores
|
||||
{
|
||||
ignores: [
|
||||
'**/dist/**',
|
||||
'**/node_modules/**',
|
||||
'**/build/**',
|
||||
'**/.git/**',
|
||||
],
|
||||
},
|
||||
|
||||
// Main configuration
|
||||
{
|
||||
files: ['**/*.{js,mjs,cjs,jsx,ts,tsx}'],
|
||||
|
||||
plugins: {
|
||||
react: reactPlugin,
|
||||
'react-hooks': reactHooksPlugin,
|
||||
'jsx-a11y': jsxA11yPlugin,
|
||||
prettier: prettierPlugin,
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
globals: {
|
||||
// Browser globals
|
||||
window: 'readonly',
|
||||
document: 'readonly',
|
||||
navigator: 'readonly',
|
||||
console: 'readonly',
|
||||
setTimeout: 'readonly',
|
||||
setInterval: 'readonly',
|
||||
clearTimeout: 'readonly',
|
||||
clearInterval: 'readonly',
|
||||
fetch: 'readonly',
|
||||
// Node globals
|
||||
process: 'readonly',
|
||||
__dirname: 'readonly',
|
||||
__filename: 'readonly',
|
||||
module: 'readonly',
|
||||
require: 'readonly',
|
||||
// Test globals
|
||||
describe: 'readonly',
|
||||
it: 'readonly',
|
||||
test: 'readonly',
|
||||
expect: 'readonly',
|
||||
beforeEach: 'readonly',
|
||||
afterEach: 'readonly',
|
||||
jest: 'readonly',
|
||||
},
|
||||
},
|
||||
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect',
|
||||
},
|
||||
},
|
||||
|
||||
rules: {
|
||||
// Prettier
|
||||
'prettier/prettier': 'error',
|
||||
|
||||
// Import rules
|
||||
'import/prefer-default-export': 'off',
|
||||
|
||||
// React rules
|
||||
'react/function-component-definition': 'off',
|
||||
'react/jsx-props-no-spreading': 'off',
|
||||
'react/no-unused-prop-types': 'warn',
|
||||
'react/require-default-props': 'off',
|
||||
'react/prop-types': 'off',
|
||||
|
||||
// React Hooks rules
|
||||
'react-hooks/rules-of-hooks': 'error',
|
||||
'react-hooks/exhaustive-deps': 'warn',
|
||||
|
||||
// General rules
|
||||
'consistent-return': 'off',
|
||||
'no-param-reassign': ['error', {
|
||||
props: true,
|
||||
ignorePropertyModificationsFor: ['draft']
|
||||
}],
|
||||
'arrow-body-style': ['error', 'always'],
|
||||
|
||||
// TypeScript rules
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
},
|
||||
},
|
||||
|
||||
// Prettier config (must be last to override other configs)
|
||||
prettierConfig,
|
||||
);
|
||||
Generated
+111
-3873
File diff suppressed because it is too large
Load Diff
+6
-1
@@ -32,7 +32,7 @@
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"conventional-changelog-conventionalcommits": "^9.1.0",
|
||||
"cross-env": "^10.1.0",
|
||||
"semantic-release": "^25.0.2",
|
||||
"semantic-release": "^25.0.3",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
"engines": {
|
||||
@@ -41,5 +41,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"dom-to-image-more": "^3.7.1"
|
||||
},
|
||||
"overrides": {
|
||||
"lodash": "^4.17.23",
|
||||
"lodash-es": "^4.17.23",
|
||||
"tar": "^7.5.7"
|
||||
}
|
||||
}
|
||||
|
||||
+8
-10
@@ -9,7 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"next": "^15.5.9",
|
||||
"next": "^15.5.10",
|
||||
"nextra": "^4.3.0",
|
||||
"nextra-theme-docs": "^4.3.0",
|
||||
"react": "^18.2.0",
|
||||
@@ -868,10 +868,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/env": {
|
||||
"version": "15.5.9",
|
||||
"resolved": "https://registry.npmjs.org/@next/env/-/env-15.5.9.tgz",
|
||||
"integrity": "sha512-4GlTZ+EJM7WaW2HEZcyU317tIQDjkQIyENDLxYJfSWlfqguN+dHkZgyQTV/7ykvobU7yEH5gKvreNrH4B6QgIg==",
|
||||
"license": "MIT"
|
||||
"version": "15.5.11",
|
||||
"resolved": "https://registry.npmjs.org/@next/env/-/env-15.5.11.tgz",
|
||||
"integrity": "sha512-g9s5SS9gC7GJCEOR3OV3zqs7C5VddqxP9X+/6BpMbdXRkqsWfFf2CJPBZNvNEtAkKTNuRgRXAgNxSAXzfLdaTg=="
|
||||
},
|
||||
"node_modules/@next/swc-darwin-arm64": {
|
||||
"version": "15.5.7",
|
||||
@@ -4787,12 +4786,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/next": {
|
||||
"version": "15.5.9",
|
||||
"resolved": "https://registry.npmjs.org/next/-/next-15.5.9.tgz",
|
||||
"integrity": "sha512-agNLK89seZEtC5zUHwtut0+tNrc0Xw4FT/Dg+B/VLEo9pAcS9rtTKpek3V6kVcVwsB2YlqMaHdfZL4eLEVYuCg==",
|
||||
"license": "MIT",
|
||||
"version": "15.5.11",
|
||||
"resolved": "https://registry.npmjs.org/next/-/next-15.5.11.tgz",
|
||||
"integrity": "sha512-L2KPiKmqTDpRdeVDdPjhf43g2/VPe0NCNndq7OKDCgOLWtxe1kbr/zXGIZtYY7kZEAjRf7Bj/mwUFSr+tYC2Yg==",
|
||||
"dependencies": {
|
||||
"@next/env": "15.5.9",
|
||||
"@next/env": "15.5.11",
|
||||
"@swc/helpers": "0.5.15",
|
||||
"caniuse-lite": "^1.0.30001579",
|
||||
"postcss": "8.4.31",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"next": "^15.5.9",
|
||||
"next": "^15.5.10",
|
||||
"nextra": "^4.3.0",
|
||||
"nextra-theme-docs": "^4.3.0",
|
||||
"react": "^18.2.0",
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
"build": "rslib build && tsc --project tsconfig.declaration.json && tsc-alias",
|
||||
"build:watch": "rslib build --watch",
|
||||
"test": "jest",
|
||||
"lint": "tsc --noEmit && eslint ./src/**/* --ext .ts,.tsx",
|
||||
"lint:fix": "eslint --fix ./src/**/* --ext .ts,.tsx",
|
||||
"lint": "tsc --noEmit",
|
||||
"clean": "rm -rf dist",
|
||||
"prepublishOnly": "npm run clean && npm run build"
|
||||
},
|
||||
@@ -40,7 +39,7 @@
|
||||
"pathfinding": "^0.4.18",
|
||||
"react-hook-form": "^7.64.0",
|
||||
"react-quill-new": "^3.6.0",
|
||||
"react-router-dom": "^6.30.1",
|
||||
"react-router-dom": "^6.30.2",
|
||||
"uuid": "^9.0.1",
|
||||
"zod": "^3.25.76",
|
||||
"zustand": "^4.5.7"
|
||||
@@ -50,7 +49,6 @@
|
||||
"react-dom": ">=18"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.37.0",
|
||||
"@isoflow/isopacks": "^0.0.10",
|
||||
"@rsbuild/core": "^1.5.14",
|
||||
"@rsbuild/plugin-react": "^1.4.1",
|
||||
@@ -66,15 +64,7 @@
|
||||
"@types/pathfinding": "^0.0.6",
|
||||
"@types/quill": "^2.0.14",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@typescript-eslint/eslint-plugin": "^8.46.0",
|
||||
"@typescript-eslint/parser": "^8.46.0",
|
||||
"css-loader": "^6.11.0",
|
||||
"eslint": "^9.37.0",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-hooks": "^7.0.0",
|
||||
"jest": "^29.7.0",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
"jsdom": "^21.1.2",
|
||||
@@ -84,7 +74,6 @@
|
||||
"recharts": "^2.15.4",
|
||||
"style-loader": "^3.3.4",
|
||||
"ts-jest": "^29.4.4",
|
||||
"tsc-alias": "^1.8.16",
|
||||
"typescript-eslint": "^8.46.0"
|
||||
"tsc-alias": "^1.8.16"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user