Fix linting errors

This commit is contained in:
SleepWalker 2020-05-21 21:51:35 +03:00
parent a5404002fd
commit 0192f53932
8 changed files with 4 additions and 8 deletions

View File

@ -158,6 +158,8 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-unused-vars': [

View File

@ -21,7 +21,6 @@ class Finish extends React.Component<Props> {
render() {
const { appName, code, state, displayCode, success } = this.props;
const authData = JSON.stringify({
// eslint-disable-next-line @typescript-eslint/camelcase
auth_code: code,
state,
});

View File

@ -1,3 +1,3 @@
export type ApplicationType = 'application' | 'minecraft-server';
export const TYPE_APPLICATION: 'application' = 'application';
export const TYPE_MINECRAFT_SERVER: 'minecraft-server' = 'minecraft-server';
export const TYPE_APPLICATION = 'application' as const;
export const TYPE_MINECRAFT_SERVER = 'minecraft-server' as const;

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/camelcase */
import expect from 'app/test/unexpected';
import sinon, { SinonFakeServer } from 'sinon';

View File

@ -169,7 +169,6 @@ export async function requestToken(refreshToken: string): Promise<string> {
const response: OAuthResponse = await request.post(
'/api/authentication/refresh-token',
{
// eslint-disable-next-line @typescript-eslint/camelcase
refresh_token: refreshToken,
},
{

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/camelcase */
import { ApplicationType } from 'app/components/dev/apps';
import request from 'app/services/request';

View File

@ -1,4 +1,3 @@
/* eslint @typescript-eslint/camelcase: off */
import sinon, { SinonMock } from 'sinon';
import OAuthState from 'app/services/authFlow/OAuthState';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/camelcase */
import { account1 } from '../../fixtures/accounts.json';
const defaults = {