eslint: Add support for Typescript
This commit adds eslint support for .ts and .tsx files. The recommended Typescript rules are applied only to .ts and .tsx files and not to existing .js or .jsx files. This is accomplished by creating a separate .eslintrc-typescript.yml file and pointing to it in the .eslintrc.yml overrides parameter. A .eslintignore file was added. This file has syntax similiar to .gitignore and is used to ignore the programatically generated API slices so that we do not have to deal with a massive diff whenever we update one of them.
This commit is contained in:
parent
320066e0ea
commit
13b02eca7e
11 changed files with 648 additions and 21 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import React from 'react';
|
||||
|
||||
import {useGetSourceUploadInfoQuery} from "../../../store/provisioningApi";
|
||||
import { useGetSourceUploadInfoQuery } from '../../../store/provisioningApi';
|
||||
|
||||
type AwsAccountIdProps = {
|
||||
sourceId: number
|
||||
}
|
||||
sourceId: number;
|
||||
};
|
||||
|
||||
export const AwsAccountId = ({ sourceId }: AwsAccountIdProps) => {
|
||||
const { data } = useGetSourceUploadInfoQuery({ id: sourceId });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue