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:
lucasgarfield 2023-08-01 16:49:26 +02:00 committed by Lucas Garfield
parent 320066e0ea
commit 13b02eca7e
11 changed files with 648 additions and 21 deletions

View file

@ -1,6 +1,4 @@
import React from 'react';
import {Distributions} from '../../store/imageBuilderApi';
import { Distributions } from '../../store/imageBuilderApi';
type ReleaseProps = {
release: Distributions;