Skip to content

Commit bea8932

Browse files
committed
build: format everything
1 parent ef420af commit bea8932

31 files changed

+1087
-1076
lines changed

.eslintrc.json

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"root": true,
3-
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
5-
"overrides": [
6-
{
7-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8-
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
10-
"error",
11-
{
12-
"enforceBuildableLibDependency": true,
13-
"allow": [],
14-
"depConstraints": [
15-
{
16-
"sourceTag": "*",
17-
"onlyDependOnLibsWithTags": ["*"]
18-
}
19-
]
20-
}
21-
]
22-
}
23-
},
24-
{
25-
"files": ["*.ts", "*.tsx"],
26-
"extends": ["plugin:@nrwl/nx/typescript"],
27-
"rules": {}
28-
},
29-
{
30-
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nrwl/nx/javascript"],
32-
"rules": {}
33-
}
34-
]
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nrwl/nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nrwl/nx/javascript"],
32+
"rules": {}
33+
}
34+
]
3535
}

.prettierrc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"tabWidth": 4,
3-
"trailingComma": "all",
4-
"bracketSpacing": false
2+
"tabWidth": 4,
3+
"trailingComma": "all",
4+
"bracketSpacing": false
55
}

.vscode/extensions.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"recommendations": [
3-
"nrwl.angular-console",
4-
"esbenp.prettier-vscode",
5-
"firsttris.vscode-jest-runner",
6-
"dbaeumer.vscode-eslint"
7-
]
2+
"recommendations": [
3+
"nrwl.angular-console",
4+
"esbenp.prettier-vscode",
5+
"firsttris.vscode-jest-runner",
6+
"dbaeumer.vscode-eslint"
7+
]
88
}

.yarnrc.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
nodeLinker: node-modules
22

33
plugins:
4-
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
5-
spec: "@yarnpkg/plugin-interactive-tools"
6-
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
7-
spec: "@yarnpkg/plugin-typescript"
8-
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
9-
spec: "@yarnpkg/plugin-workspace-tools"
4+
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
5+
spec: "@yarnpkg/plugin-interactive-tools"
6+
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
7+
spec: "@yarnpkg/plugin-typescript"
8+
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
9+
spec: "@yarnpkg/plugin-workspace-tools"
1010

1111
yarnPath: .yarn/releases/yarn-3.2.4.cjs

apps/nextjs-app-e2e/.eslintrc.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"extends": ["plugin:cypress/recommended", "../../.eslintrc.json"],
3-
"ignorePatterns": ["!**/*"],
4-
"overrides": [
5-
{
6-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7-
"rules": {}
8-
},
9-
{
10-
"files": ["src/plugins/index.js"],
11-
"rules": {
12-
"@typescript-eslint/no-var-requires": "off",
13-
"no-undef": "off"
14-
}
15-
}
16-
]
2+
"extends": ["plugin:cypress/recommended", "../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"rules": {}
8+
},
9+
{
10+
"files": ["src/plugins/index.js"],
11+
"rules": {
12+
"@typescript-eslint/no-var-requires": "off",
13+
"no-undef": "off"
14+
}
15+
}
16+
]
1717
}

apps/nextjs-app-e2e/cypress.config.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { defineConfig } from 'cypress';
2-
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset';
1+
import {defineConfig} from "cypress";
2+
import {nxE2EPreset} from "@nrwl/cypress/plugins/cypress-preset";
33

44
export default defineConfig({
5-
e2e: nxE2EPreset(__dirname),
5+
e2e: nxE2EPreset(__dirname),
66
});

apps/nextjs-app-e2e/project.json

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"name": "nextjs-app-e2e",
3-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4-
"sourceRoot": "apps/nextjs-app-e2e/src",
5-
"projectType": "application",
6-
"targets": {
7-
"e2e": {
8-
"executor": "@nrwl/cypress:cypress",
9-
"options": {
10-
"cypressConfig": "apps/nextjs-app-e2e/cypress.config.ts",
11-
"devServerTarget": "nextjs-app:serve:development",
12-
"testingType": "e2e"
13-
},
14-
"configurations": {
15-
"production": {
16-
"devServerTarget": "nextjs-app:serve:production"
2+
"name": "nextjs-app-e2e",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "apps/nextjs-app-e2e/src",
5+
"projectType": "application",
6+
"targets": {
7+
"e2e": {
8+
"executor": "@nrwl/cypress:cypress",
9+
"options": {
10+
"cypressConfig": "apps/nextjs-app-e2e/cypress.config.ts",
11+
"devServerTarget": "nextjs-app:serve:development",
12+
"testingType": "e2e"
13+
},
14+
"configurations": {
15+
"production": {
16+
"devServerTarget": "nextjs-app:serve:production"
17+
}
18+
}
19+
},
20+
"lint": {
21+
"executor": "@nrwl/linter:eslint",
22+
"outputs": ["{options.outputFile}"],
23+
"options": {
24+
"lintFilePatterns": ["apps/nextjs-app-e2e/**/*.{js,ts}"]
25+
}
1726
}
18-
}
1927
},
20-
"lint": {
21-
"executor": "@nrwl/linter:eslint",
22-
"outputs": ["{options.outputFile}"],
23-
"options": {
24-
"lintFilePatterns": ["apps/nextjs-app-e2e/**/*.{js,ts}"]
25-
}
26-
}
27-
},
28-
"tags": [],
29-
"implicitDependencies": ["nextjs-app"]
28+
"tags": [],
29+
"implicitDependencies": ["nextjs-app"]
3030
}

apps/nextjs-app-e2e/src/e2e/app.cy.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { getGreeting } from '../support/app.po';
1+
import {getGreeting} from "../support/app.po";
22

3-
describe('nextjs-app', () => {
4-
beforeEach(() => cy.visit('/'));
3+
describe("nextjs-app", () => {
4+
beforeEach(() => cy.visit("/"));
55

6-
it('should display welcome message', () => {
7-
// Custom command example, see `../support/commands.ts` file
8-
cy.login('[email protected]', 'myPassword');
6+
it("should display welcome message", () => {
7+
// Custom command example, see `../support/commands.ts` file
8+
cy.login("[email protected]", "myPassword");
99

10-
// Function helper example, see `../support/app.po.ts` file
11-
getGreeting().contains('Welcome nextjs-app');
12-
});
10+
// Function helper example, see `../support/app.po.ts` file
11+
getGreeting().contains("Welcome nextjs-app");
12+
});
1313
});
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "Using fixtures to represent data",
3-
"email": "[email protected]"
2+
"name": "Using fixtures to represent data",
3+
"email": "[email protected]"
44
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const getGreeting = () => cy.get('h1');
1+
export const getGreeting = () => cy.get("h1");

apps/nextjs-app-e2e/src/support/commands.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
// eslint-disable-next-line @typescript-eslint/no-namespace
1212
declare namespace Cypress {
13-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
14-
interface Chainable<Subject> {
15-
login(email: string, password: string): void;
16-
}
13+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
14+
interface Chainable<Subject> {
15+
login(email: string, password: string): void;
16+
}
1717
}
1818
//
1919
// -- This is a parent command --
20-
Cypress.Commands.add('login', (email, password) => {
21-
console.log('Custom command example: Login', email, password);
20+
Cypress.Commands.add("login", (email, password) => {
21+
console.log("Custom command example: Login", email, password);
2222
});
2323
//
2424
// -- This is a child command --

apps/nextjs-app-e2e/src/support/e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
// ***********************************************************
1515

1616
// Import commands.js using ES2015 syntax:
17-
import './commands';
17+
import "./commands";

apps/nextjs-app-e2e/tsconfig.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"extends": "../../tsconfig.base.json",
3-
"compilerOptions": {
4-
"sourceMap": false,
5-
"outDir": "../../dist/out-tsc",
6-
"allowJs": true,
7-
"types": ["cypress", "node"]
8-
},
9-
"include": ["src/**/*.ts", "src/**/*.js", "cypress.config.ts"]
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"sourceMap": false,
5+
"outDir": "../../dist/out-tsc",
6+
"allowJs": true,
7+
"types": ["cypress", "node"]
8+
},
9+
"include": ["src/**/*.ts", "src/**/*.js", "cypress.config.ts"]
1010
}

apps/nextjs-app/.eslintrc.json

+30-27
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
{
2-
"extends": [
3-
"plugin:@nrwl/nx/react-typescript",
4-
"next",
5-
"next/core-web-vitals",
6-
"../../.eslintrc.json"
7-
],
8-
"ignorePatterns": ["!**/*", ".next/**/*"],
9-
"overrides": [
10-
{
11-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
12-
"rules": {
13-
"@next/next/no-html-link-for-pages": ["error", "apps/nextjs-app/pages"]
14-
}
2+
"extends": [
3+
"plugin:@nrwl/nx/react-typescript",
4+
"next",
5+
"next/core-web-vitals",
6+
"../../.eslintrc.json"
7+
],
8+
"ignorePatterns": ["!**/*", ".next/**/*"],
9+
"overrides": [
10+
{
11+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
12+
"rules": {
13+
"@next/next/no-html-link-for-pages": [
14+
"error",
15+
"apps/nextjs-app/pages"
16+
]
17+
}
18+
},
19+
{
20+
"files": ["*.ts", "*.tsx"],
21+
"rules": {}
22+
},
23+
{
24+
"files": ["*.js", "*.jsx"],
25+
"rules": {}
26+
}
27+
],
28+
"rules": {
29+
"@next/next/no-html-link-for-pages": "off"
1530
},
16-
{
17-
"files": ["*.ts", "*.tsx"],
18-
"rules": {}
19-
},
20-
{
21-
"files": ["*.js", "*.jsx"],
22-
"rules": {}
31+
"env": {
32+
"jest": true
2333
}
24-
],
25-
"rules": {
26-
"@next/next/no-html-link-for-pages": "off"
27-
},
28-
"env": {
29-
"jest": true
30-
}
3134
}

apps/nextjs-app/index.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
declare module '*.svg' {
3-
const content: any;
4-
export const ReactComponent: any;
5-
export default content;
2+
declare module "*.svg" {
3+
const content: any;
4+
export const ReactComponent: any;
5+
export default content;
66
}

apps/nextjs-app/jest.config.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* eslint-disable */
22
export default {
3-
displayName: 'nextjs-app',
4-
preset: '../../jest.preset.js',
5-
transform: {
6-
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nrwl/react/plugins/jest',
7-
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nrwl/next/babel'] }],
8-
},
9-
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
10-
coverageDirectory: '../../coverage/apps/nextjs-app',
3+
displayName: "nextjs-app",
4+
preset: "../../jest.preset.js",
5+
transform: {
6+
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "@nrwl/react/plugins/jest",
7+
"^.+\\.[tj]sx?$": ["babel-jest", {presets: ["@nrwl/next/babel"]}],
8+
},
9+
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
10+
coverageDirectory: "../../coverage/apps/nextjs-app",
1111
};

0 commit comments

Comments
 (0)