refactor: remove eslint-disable monorepo/internal-import
This commit is contained in:
@@ -14,8 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line monorepo/no-internal-import
|
||||
import '@backstage/cli/asset-types';
|
||||
import '@backstage/cli/asset-types/asset-types';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import App from './App';
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.js",
|
||||
"description": "Provides code that can be shared between frontend- and backend-oriented packages"
|
||||
}
|
||||
@@ -19,8 +19,8 @@ import { TemplaterBase, TemplaterRunOptions } from '..';
|
||||
import path from 'path';
|
||||
import { TemplaterRunResult } from '../types';
|
||||
import * as yaml from 'yaml';
|
||||
// eslint-disable-next-line monorepo/no-internal-import
|
||||
import { GITHUB_ACTIONS_ANNOTATION } from '@backstage/plugin-github-actions/universal';
|
||||
import { resolvePackagePath } from '@backstage/backend-common';
|
||||
|
||||
export class CreateReactAppTemplater implements TemplaterBase {
|
||||
public async run(options: TemplaterRunOptions): Promise<TemplaterRunResult> {
|
||||
@@ -61,7 +61,9 @@ export class CreateReactAppTemplater implements TemplaterBase {
|
||||
await fs.promises.mkdir(`${finalDir}/.github`);
|
||||
await fs.promises.mkdir(`${finalDir}/.github/workflows`);
|
||||
await fs.promises.copyFile(
|
||||
`${__dirname}/templates/.github/workflows/main.yml`,
|
||||
`${resolvePackagePath(
|
||||
'@backstage/plugin-scaffolder-backend',
|
||||
)}/templates/.github/workflows/main.yml`,
|
||||
`${finalDir}/.github/workflows/main.yml`,
|
||||
);
|
||||
|
||||
|
||||
@@ -3801,17 +3801,10 @@
|
||||
dependencies:
|
||||
"@sinonjs/commons" "^1.7.0"
|
||||
|
||||
<<<<<<< HEAD
|
||||
"@spotify/eslint-config-base@^8.1.0":
|
||||
version "9.0.0"
|
||||
resolved "https://registry.npmjs.org/@spotify/eslint-config-base/-/eslint-config-base-9.0.0.tgz#e122b2e6d1a11750170badc5be6774ded95953d2"
|
||||
integrity sha512-LNGY6bBM0IlosvMIx9Ic5gqatpa5LPvrJhN4RnrUnP9oaXNLgPTKDE89p3eC5Tnh78ADdX4HD+rbHDSyP2tBgg==
|
||||
=======
|
||||
"@spotify/eslint-config-base@^8.0.0":
|
||||
version "8.0.0"
|
||||
resolved "https://registry.npmjs.org/@spotify/eslint-config-base/-/eslint-config-base-8.0.0.tgz#c3d10d8a05ad9129d579952cb80063e4c4fa216e"
|
||||
integrity sha512-07Fo+KoTMl4AaZJPD6deFnYmG634wzgeqfFcWdFlIrOLAasvWSH8Lp6ZE9cJBKuffOAy8kuEE1SwFo34+5X8bQ==
|
||||
>>>>>>> 88203b2fdd686da88b4d9f5ebe3564be90bcdd37
|
||||
|
||||
"@spotify/eslint-config-oss@^1.0.1":
|
||||
version "1.0.2"
|
||||
|
||||
Reference in New Issue
Block a user