Skip to content

Commit

Permalink
fix lint in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedElywa committed Nov 17, 2022
1 parent 0090d53 commit 36d0100
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Run Build
run: pnpm run build
run: pnpm build

- name: Run Format
run: pnpm run format:ci
run: pnpm format:ci

- name: Run Lint
run: pnpm lint

- name: Run Tests
env:
Expand Down
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module.exports = {
testEnvironment: 'node',
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname', 'jest-watch-select-projects'],
projects: [
'./jest.lint.js',
'./packages/schema/jest.config.js',
'./packages/utils/jest.config.js',
'./packages/plugins/jest.config.js',
Expand Down
8 changes: 0 additions & 8 deletions jest.lint.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/admin/src/PrismaTable/Form/Inputs.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @typescript-eslint/no-non-null-assertion: 0 */
import React, { useContext, useState } from 'react';
import { useQuery } from '@apollo/client';
import { SearchIcon, XCircleIcon } from '@heroicons/react/outline';
Expand Down
1 change: 1 addition & 0 deletions packages/admin/src/PrismaTable/Form/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @typescript-eslint/no-non-null-assertion: 0 */
import React, { useContext } from 'react';
import { useForm } from 'react-hook-form';

Expand Down
1 change: 1 addition & 0 deletions packages/admin/src/PrismaTable/Form/useActions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @typescript-eslint/no-non-null-assertion: 0 */
import { useMutation } from '@apollo/client';
import { useContext } from 'react';

Expand Down
5 changes: 3 additions & 2 deletions packages/admin/src/Settings/UpdateModel.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @typescript-eslint/no-non-null-assertion: 0 */
import React, { useRef, useState } from 'react';
import { useMutation } from '@apollo/client';

Expand Down Expand Up @@ -61,10 +62,10 @@ const UpdateModel: React.FC<{

const values: { id: string; name: string }[] = [];
const allOptions: Option[] = [];
const modelsList: string[] = [];
//const modelsList: string[] = [];
const getOptions = (model: AdminSchemaModel, parent = '') => {
const options: Option[] = [];
modelsList.push(model.id);
//modelsList.push(model.id);
model.fields
.filter((item) => !item.list)
.slice()
Expand Down

0 comments on commit 36d0100

Please sign in to comment.