Skip to content

Commit

Permalink
chore: Remove Admin v1 (medusajs#7214)
Browse files Browse the repository at this point in the history
* chore: Remove v1 admin

* update eslint
  • Loading branch information
olivermrbl authored May 3, 2024
1 parent 46ded00 commit c41e90f
Show file tree
Hide file tree
Showing 965 changed files with 147 additions and 154,701 deletions.
100 changes: 0 additions & 100 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ module.exports = {
project: [
"./packages/medusa/tsconfig.json",

"./packages/admin-ui/tsconfig.json",
"./packages/admin-ui/tsconfig.spec.json",
"./packages/admin-next/dashboard/tsconfig.json",

"./packages/inventory/tsconfig.spec.json",
Expand Down Expand Up @@ -214,48 +212,6 @@ module.exports = {
project: "./packages/design-system/icons/tsconfig.json",
},
},
{
files: ["packages/admin-ui/ui/**/*.ts", "packages/admin-ui/ui/**/*.tsx"],
plugins: ["unused-imports"],
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-ui/ui/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",
"no-unused-expressions": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
},
],
},
},
{
files: [
"packages/admin-next/dashboard/**/*.ts",
Expand Down Expand Up @@ -305,61 +261,5 @@ module.exports = {
],
},
},
{
files: ["packages/admin-ui/lib/**/*.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./packages/admin-ui/tsconfig.json",
},
},
{
files: ["packages/admin/**/*.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./packages/admin/tsconfig.json",
},
},
{
files: [
"packages/medusa-payment-stripe/src/admin/**/*.ts",
"packages/medusa-payment-stripe/src/admin/**/*.tsx",
],
plugins: ["unused-imports"],
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/medusa-payment-stripe/tsconfig.admin.json",
},
env: {
browser: true,
},
rules: {
"prettier/prettier": "error",
"react/prop-types": "off",
"new-cap": "off",
"require-jsdoc": "off",
"valid-jsdoc": "off",
"no-unused-expressions": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
},
],
},
},
],
}
5 changes: 0 additions & 5 deletions packages/admin-ui/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions packages/admin-ui/.npmignore

This file was deleted.

686 changes: 0 additions & 686 deletions packages/admin-ui/CHANGELOG.md

This file was deleted.

38 changes: 0 additions & 38 deletions packages/admin-ui/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions packages/admin-ui/jest.config.js

This file was deleted.

139 changes: 0 additions & 139 deletions packages/admin-ui/package.json

This file was deleted.

23 changes: 0 additions & 23 deletions packages/admin-ui/scripts/create-dev-entry.js

This file was deleted.

16 changes: 0 additions & 16 deletions packages/admin-ui/src/client/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/admin-ui/src/index.ts

This file was deleted.

Loading

0 comments on commit c41e90f

Please sign in to comment.