From b78afe029235d640f5303c165be3697b0136fba1 Mon Sep 17 00:00:00 2001 From: Ihor Date: Mon, 4 Nov 2024 11:53:32 +0100 Subject: [PATCH] move eslint-plugin-gene to eslint-plugin --- docs/docs-site/package.json | 3 +- packages/create/bin/create-gene-workspace.js | 2 +- packages/eslint-plugin-gene/README.md | 7 ----- .../.babelrc | 0 .../.eslintrc.json | 0 packages/eslint-plugin/README.md | 7 +++++ .../executors.json | 0 .../generators.json | 2 +- .../package.json | 2 +- .../project.json | 28 +++++++++---------- .../src/configs/basic.ts | 0 .../src/configs/jest.ts | 0 .../src/configs/react.ts | 0 .../src/configs/strict.ts | 0 .../src/index.ts | 0 .../src/rules/index.ts | 0 .../src/rules/use-listener.ts | 0 .../tsconfig.json | 0 .../tsconfig.lib.json | 0 19 files changed, 26 insertions(+), 25 deletions(-) delete mode 100644 packages/eslint-plugin-gene/README.md rename packages/{eslint-plugin-gene => eslint-plugin}/.babelrc (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/.eslintrc.json (100%) create mode 100644 packages/eslint-plugin/README.md rename packages/{eslint-plugin-gene => eslint-plugin}/executors.json (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/generators.json (73%) rename packages/{eslint-plugin-gene => eslint-plugin}/package.json (89%) rename packages/{eslint-plugin-gene => eslint-plugin}/project.json (51%) rename packages/{eslint-plugin-gene => eslint-plugin}/src/configs/basic.ts (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/src/configs/jest.ts (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/src/configs/react.ts (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/src/configs/strict.ts (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/src/index.ts (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/src/rules/index.ts (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/src/rules/use-listener.ts (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/tsconfig.json (100%) rename packages/{eslint-plugin-gene => eslint-plugin}/tsconfig.lib.json (100%) diff --git a/docs/docs-site/package.json b/docs/docs-site/package.json index ce0c621..fbc2970 100644 --- a/docs/docs-site/package.json +++ b/docs/docs-site/package.json @@ -1,3 +1,4 @@ { - "name": "docs-site" + "name": "docs-site", + "private": true } diff --git a/packages/create/bin/create-gene-workspace.js b/packages/create/bin/create-gene-workspace.js index aa14021..cf09d7f 100755 --- a/packages/create/bin/create-gene-workspace.js +++ b/packages/create/bin/create-gene-workspace.js @@ -97,7 +97,7 @@ async function runCommands() { await execCommand('pnpm', [ 'install', `@brainly-gene/tools@${packageVersion}`, - `@brainly-gene/eslint-plugin-gene@${packageVersion}`, + `@brainly-gene/eslint-plugin@${packageVersion}`, '-D', ]); diff --git a/packages/eslint-plugin-gene/README.md b/packages/eslint-plugin-gene/README.md deleted file mode 100644 index 8f23916..0000000 --- a/packages/eslint-plugin-gene/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# eslint-plugin-gene - -This library was generated with [Nx](https://nx.dev). - -## Building - -Run `nx build eslint-plugin-gene` to build the library. diff --git a/packages/eslint-plugin-gene/.babelrc b/packages/eslint-plugin/.babelrc similarity index 100% rename from packages/eslint-plugin-gene/.babelrc rename to packages/eslint-plugin/.babelrc diff --git a/packages/eslint-plugin-gene/.eslintrc.json b/packages/eslint-plugin/.eslintrc.json similarity index 100% rename from packages/eslint-plugin-gene/.eslintrc.json rename to packages/eslint-plugin/.eslintrc.json diff --git a/packages/eslint-plugin/README.md b/packages/eslint-plugin/README.md new file mode 100644 index 0000000..a8ad42b --- /dev/null +++ b/packages/eslint-plugin/README.md @@ -0,0 +1,7 @@ +# eslint-plugin + +This library was generated with [Nx](https://nx.dev). + +## Building + +Run `nx build eslint-plugin` to build the library. diff --git a/packages/eslint-plugin-gene/executors.json b/packages/eslint-plugin/executors.json similarity index 100% rename from packages/eslint-plugin-gene/executors.json rename to packages/eslint-plugin/executors.json diff --git a/packages/eslint-plugin-gene/generators.json b/packages/eslint-plugin/generators.json similarity index 73% rename from packages/eslint-plugin-gene/generators.json rename to packages/eslint-plugin/generators.json index 9a410b7..54e4c42 100644 --- a/packages/eslint-plugin-gene/generators.json +++ b/packages/eslint-plugin/generators.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/schema", - "name": "eslint-plugin-gene", + "name": "eslint-plugin", "version": "0.0.1", "generators": {} } diff --git a/packages/eslint-plugin-gene/package.json b/packages/eslint-plugin/package.json similarity index 89% rename from packages/eslint-plugin-gene/package.json rename to packages/eslint-plugin/package.json index bf6b91f..4cb423d 100644 --- a/packages/eslint-plugin-gene/package.json +++ b/packages/eslint-plugin/package.json @@ -1,5 +1,5 @@ { - "name": "@brainly-gene/eslint-plugin-gene", + "name": "@brainly-gene/eslint-plugin", "version": "0.1.0", "license": "Apache-2.0", "main": "src/index.js", diff --git a/packages/eslint-plugin-gene/project.json b/packages/eslint-plugin/project.json similarity index 51% rename from packages/eslint-plugin-gene/project.json rename to packages/eslint-plugin/project.json index da32e72..724cbf6 100644 --- a/packages/eslint-plugin-gene/project.json +++ b/packages/eslint-plugin/project.json @@ -1,35 +1,35 @@ { - "name": "packages-eslint-plugin-gene", + "name": "packages-eslint-plugin", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "packages/eslint-plugin-gene/src", + "sourceRoot": "packages/eslint-plugin/src", "projectType": "library", "targets": { "build": { "executor": "@nrwl/js:tsc", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/packages/eslint-plugin-gene", - "main": "packages/eslint-plugin-gene/src/index.ts", - "tsConfig": "packages/eslint-plugin-gene/tsconfig.lib.json", + "outputPath": "dist/packages/eslint-plugin", + "main": "packages/eslint-plugin/src/index.ts", + "tsConfig": "packages/eslint-plugin/tsconfig.lib.json", "assets": [ - "packages/eslint-plugin-gene/*.md", + "packages/eslint-plugin/*.md", { - "input": "./packages/eslint-plugin-gene/src", + "input": "./packages/eslint-plugin/src", "glob": "**/!(*.ts)", "output": "./src" }, { - "input": "./packages/eslint-plugin-gene/src", + "input": "./packages/eslint-plugin/src", "glob": "**/*.d.ts", "output": "./src" }, { - "input": "./packages/eslint-plugin-gene", + "input": "./packages/eslint-plugin", "glob": "generators.json", "output": "." }, { - "input": "./packages/eslint-plugin-gene", + "input": "./packages/eslint-plugin", "glob": "executors.json", "output": "." } @@ -41,10 +41,10 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "packages/eslint-plugin-gene/**/*.ts", - "packages/eslint-plugin-gene/generators.json", - "packages/eslint-plugin-gene/executors.json", - "packages/eslint-plugin-gene/package.json" + "packages/eslint-plugin/**/*.ts", + "packages/eslint-plugin/generators.json", + "packages/eslint-plugin/executors.json", + "packages/eslint-plugin/package.json" ] } } diff --git a/packages/eslint-plugin-gene/src/configs/basic.ts b/packages/eslint-plugin/src/configs/basic.ts similarity index 100% rename from packages/eslint-plugin-gene/src/configs/basic.ts rename to packages/eslint-plugin/src/configs/basic.ts diff --git a/packages/eslint-plugin-gene/src/configs/jest.ts b/packages/eslint-plugin/src/configs/jest.ts similarity index 100% rename from packages/eslint-plugin-gene/src/configs/jest.ts rename to packages/eslint-plugin/src/configs/jest.ts diff --git a/packages/eslint-plugin-gene/src/configs/react.ts b/packages/eslint-plugin/src/configs/react.ts similarity index 100% rename from packages/eslint-plugin-gene/src/configs/react.ts rename to packages/eslint-plugin/src/configs/react.ts diff --git a/packages/eslint-plugin-gene/src/configs/strict.ts b/packages/eslint-plugin/src/configs/strict.ts similarity index 100% rename from packages/eslint-plugin-gene/src/configs/strict.ts rename to packages/eslint-plugin/src/configs/strict.ts diff --git a/packages/eslint-plugin-gene/src/index.ts b/packages/eslint-plugin/src/index.ts similarity index 100% rename from packages/eslint-plugin-gene/src/index.ts rename to packages/eslint-plugin/src/index.ts diff --git a/packages/eslint-plugin-gene/src/rules/index.ts b/packages/eslint-plugin/src/rules/index.ts similarity index 100% rename from packages/eslint-plugin-gene/src/rules/index.ts rename to packages/eslint-plugin/src/rules/index.ts diff --git a/packages/eslint-plugin-gene/src/rules/use-listener.ts b/packages/eslint-plugin/src/rules/use-listener.ts similarity index 100% rename from packages/eslint-plugin-gene/src/rules/use-listener.ts rename to packages/eslint-plugin/src/rules/use-listener.ts diff --git a/packages/eslint-plugin-gene/tsconfig.json b/packages/eslint-plugin/tsconfig.json similarity index 100% rename from packages/eslint-plugin-gene/tsconfig.json rename to packages/eslint-plugin/tsconfig.json diff --git a/packages/eslint-plugin-gene/tsconfig.lib.json b/packages/eslint-plugin/tsconfig.lib.json similarity index 100% rename from packages/eslint-plugin-gene/tsconfig.lib.json rename to packages/eslint-plugin/tsconfig.lib.json