feat(medusa,dashboard,admin-sdk): Run admin dashboard from Medusa instance (#7330)
This commit is contained in:
committed by
GitHub
parent
ec5415ea1a
commit
490586f566
51
.eslintrc.js
51
.eslintrc.js
@@ -83,6 +83,8 @@ module.exports = {
|
||||
"./packages/medusa/tsconfig.json",
|
||||
|
||||
"./packages/admin-next/dashboard/tsconfig.json",
|
||||
"./packages/admin-next/admin-sdk/tsconfig.json",
|
||||
"./packages/admin-next/admin-vite-plugin/tsconfig.json",
|
||||
|
||||
"./packages/inventory/tsconfig.spec.json",
|
||||
"./packages/stock-location/tsconfig.spec.json",
|
||||
@@ -267,5 +269,54 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: [
|
||||
"packages/admin-next/app/**/*.ts",
|
||||
"packages/admin-next/app/**/*.tsx",
|
||||
],
|
||||
plugins: ["unused-imports", "react-refresh"],
|
||||
extends: [
|
||||
"plugin:react/recommended",
|
||||
"plugin:react/jsx-runtime",
|
||||
"plugin:react-hooks/recommended",
|
||||
],
|
||||
parser: "@typescript-eslint/parser",
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
|
||||
sourceType: "module", // Allows for the use of imports
|
||||
project: "./packages/admin-next/app/tsconfig.json",
|
||||
},
|
||||
globals: {
|
||||
__BASE__: "readonly",
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
},
|
||||
rules: {
|
||||
"prettier/prettier": "error",
|
||||
"react/prop-types": "off",
|
||||
"new-cap": "off",
|
||||
"require-jsdoc": "off",
|
||||
"valid-jsdoc": "off",
|
||||
"react-refresh/only-export-components": [
|
||||
"warn",
|
||||
{ allowConstantExport: true },
|
||||
],
|
||||
"no-unused-expressions": "off",
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
"unused-imports/no-unused-vars": [
|
||||
"warn",
|
||||
{
|
||||
vars: "all",
|
||||
varsIgnorePattern: "^_",
|
||||
args: "after-used",
|
||||
argsIgnorePattern: "^_",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user