Skip to content

Commit

Permalink
feat(vue): Update generators to format without prettier
Browse files Browse the repository at this point in the history
feat(node): Update generators to format without prettier
  • Loading branch information
ndcunningham committed Oct 29, 2024
1 parent 6702883 commit 3d28201
Show file tree
Hide file tree
Showing 29 changed files with 131 additions and 201 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%_ if(displayBlock){ if(style != 'sass') { _%>:host {
<% if(displayBlock){ if(style != 'sass') { %>:host {
display: block;
}
<%_ } else { _%>\:host
<% } else { %>\:host
display: block
<%_ }} _%>
<% }} %>
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ describe('MyLibComponent', () => {
exports[`lib --standalone should generate a library with a standalone component and have it flat with routing setup 1`] = `
"export * from './lib/lib.routes';
export * from './lib/my-lib.component';"
`;
Expand Down Expand Up @@ -219,6 +220,7 @@ describe('MyLibComponent', () => {
exports[`lib --standalone should generate a library with a standalone component as entry point with routing setup 1`] = `
"export * from './lib/lib.routes';
export * from './lib/my-lib/my-lib.component';"
`;
Expand Down Expand Up @@ -274,6 +276,7 @@ describe('MyLibComponent', () => {
exports[`lib --standalone should generate a library with a standalone component as entry point with routing setup and attach it to parent module as a lazy child 1`] = `
"export * from './lib/lib.routes';
export * from './lib/my-lib/my-lib.component';"
`;
Expand All @@ -297,6 +300,7 @@ export const appRoutes: Route[] = [
exports[`lib --standalone should generate a library with a standalone component as entry point with routing setup and attach it to parent module as direct child 1`] = `
"export * from './lib/lib.routes';
export * from './lib/my-lib/my-lib.component';"
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ export * from './lib/+state/users.selectors';
export * from './lib/+state/users.reducer';
export * from './lib/+state/users.actions';
export * from './lib/lib.routes';
export * from './lib/feature/feature.component';"
`;
Expand All @@ -1124,5 +1125,6 @@ export * from './lib/+state/users.models';
export { UsersActions, UsersFeature, UsersSelectors };
export * from './lib/lib.routes';
export * from './lib/feature/feature.component';"
`;
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Test, TestingModule } from '@nestjs/testing';

import { AppController } from './app.controller';
import { AppService } from './app.service';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Controller, Get } from '@nestjs/common';

import { AppService } from './app.service';

@Controller()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Module } from '@nestjs/common';

import { AppController } from './app.controller';
import { AppService } from './app.service';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Test } from '@nestjs/testing';

import { AppService } from './app.service';

describe('AppService', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import { Logger } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';

import { AppModule } from './app/app.module';

async function bootstrap() {
Expand Down
4 changes: 3 additions & 1 deletion packages/next/src/generators/application/application.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,9 @@ describe('app', () => {
...baseConfig,
...nx.configs['flat/react-typescript'],
{ ignores: ['.next/**/*'] },
{
ignores: ['.next/**/*'],
},
];
"
`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ describe('updateEslint', () => {
...baseConfig,
...nx.configs["flat/react-typescript"],
{ ignores: [".next/**/*"] }
{
ignores: [
".next/**/*"
]
}
];
"
`);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if (webpackPluginOptions) { %>
<%_ if (webpackPluginOptions) { _%>
const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
const { join } = require('path');

Expand All @@ -19,7 +19,7 @@ module.exports = {
})
],
};
<% } else { %>
<%_ } else { _%>
const { composePlugins, withNx} = require('@nx/webpack');

// Nx plugins for webpack.
Expand All @@ -33,4 +33,4 @@ module.exports = composePlugins(
return config;
}
);
<% } %>
<%_ } _%>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable */

import axios from 'axios';

module.exports = async function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ module.exports = [
{
files: ['**/*.vue'],
languageOptions: {
parserOptions: { parser: require('@typescript-eslint/parser') },
parserOptions: {
parser: require('@typescript-eslint/parser'),
},
},
},
{ ignores: ['.nuxt/**', '.output/**', 'node_modules'] },
{
ignores: ['.nuxt/**', '.output/**', 'node_modules'],
},
];
"
`;
Expand All @@ -83,7 +87,6 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down Expand Up @@ -259,9 +262,7 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
css: ['~/assets/css/styles.css'],
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down Expand Up @@ -291,9 +292,7 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
css: ['~/assets/css/styles.less'],
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down Expand Up @@ -323,9 +322,7 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
css: ['~/assets/css/styles.scss'],
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down Expand Up @@ -355,7 +352,6 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down Expand Up @@ -416,10 +412,14 @@ module.exports = [
{
files: ['**/*.vue'],
languageOptions: {
parserOptions: { parser: require('@typescript-eslint/parser') },
parserOptions: {
parser: require('@typescript-eslint/parser'),
},
},
},
{ ignores: ['.nuxt/**', '.output/**', 'node_modules'] },
{
ignores: ['.nuxt/**', '.output/**', 'node_modules'],
},
];
"
`;
Expand All @@ -446,7 +446,6 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down Expand Up @@ -622,9 +621,7 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
css: ['~/assets/css/styles.css'],
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down Expand Up @@ -654,9 +651,7 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
css: ['~/assets/css/styles.less'],
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down Expand Up @@ -686,9 +681,7 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
css: ['~/assets/css/styles.scss'],
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down Expand Up @@ -718,7 +711,6 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
vite: {
plugins: [nxViteTsPaths()],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default defineNuxtConfig({
imports: {
autoImport: true,
},
<% if (style !== 'none') { %>
<%_ if (style !== 'none') { _%>
css: ['~/assets/css/styles.<%= style %>'],
<% } %>
<%_ } _%>
vite: {
plugins: [
nxViteTsPaths()
Expand Down
Loading

0 comments on commit 3d28201

Please sign in to comment.