Skip to content

Commit

Permalink
Implement eslint repo-wide (+ commit hook)
Browse files Browse the repository at this point in the history
  • Loading branch information
joekrill committed Jan 2, 2022
1 parent e1f4164 commit 565a526
Show file tree
Hide file tree
Showing 178 changed files with 5,226 additions and 340 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage/
build/
packages/client-web/storybook-static/
3,412 changes: 3,218 additions & 194 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ packageExtensions:
"@storybook/theming@*":
dependencies:
"@emotion/react": "*"
"babel-preset-react-app@*":
dependencies:
"@babel/plugin-proposal-private-property-in-object": "*"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
Expand Down
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"packages/*"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@yarnpkg/pnpify": "^3.1.1-rc.8",
"eslint": "^8.5.0",
"eslint": "^7.5.0",
"eslint-config-react-app": "^7.0.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.4",
"prettier": "2.5.1",
Expand All @@ -25,9 +27,15 @@
"test": "yarn workspaces foreach run test",
"yarn:upgrade": "yarn set version latest && yarn dlx @yarnpkg/sdks && yarn plugin import @yarnpkg/plugin-interactive-tools && yarn plugin import @yarnpkg/plugin-typescript && yarn plugin import @yarnpkg/plugin-workspace-tools"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown",
"*.js": "eslint --cache --fix",
"*.{js,jsx,ts,tsx}": "eslint --cache --fix",
"*.{js,css,md}": "prettier --write"
},
"dependenciesMeta": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { KratosBaseEntity } from "./KratosBaseEntity";

@Entity({ tableName: "courier_messages", abstract: false })
export class KratosCourierMessages extends KratosBaseEntity {
constructor() {
super();
}

static readonly modelName = "KratosCourierMessages";

@Property({ type: "integer", nullable: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ describe("lazyLoadSession()", () => {
describe("`context.state.session()`", () => {
test("is a Promise", async () => {
instance(contextMock, nextMock);
expect(contextMock.state.session()).resolves.toBeUndefined();
const session = await contextMock.state.session();
expect(session).toBeUndefined();
});

test("is lazy-loaded", async () => {
Expand Down
16 changes: 8 additions & 8 deletions packages/client-web/src/@types/react-table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ declare module "react-table" {
D extends Record<string, unknown> = Record<string, unknown>
> extends UseSortByColumnProps<D> {}

export interface Cell<
D extends Record<string, unknown> = Record<string, unknown>,
V = any
> {}

export interface Row<
D extends Record<string, unknown> = Record<string, unknown>
> {}
// export interface Cell<
// D extends Record<string, unknown> = Record<string, unknown>,
// V = any
// > {}

// export interface Row<
// D extends Record<string, unknown> = Record<string, unknown>
// > {}
}

This file was deleted.

Loading

0 comments on commit 565a526

Please sign in to comment.