mirror of
				https://github.com/elyby/accounts-frontend.git
				synced 2025-05-31 14:11:58 +05:30 
			
		
		
		
	Fix linting errors
This commit is contained in:
		@@ -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': [
 | 
			
		||||
 
 | 
			
		||||
@@ -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,
 | 
			
		||||
    });
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,3 @@
 | 
			
		||||
/* eslint-disable @typescript-eslint/camelcase */
 | 
			
		||||
import expect from 'app/test/unexpected';
 | 
			
		||||
import sinon, { SinonFakeServer } from 'sinon';
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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,
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,3 @@
 | 
			
		||||
/* eslint-disable @typescript-eslint/camelcase */
 | 
			
		||||
import { ApplicationType } from 'app/components/dev/apps';
 | 
			
		||||
import request from 'app/services/request';
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,3 @@
 | 
			
		||||
/* eslint @typescript-eslint/camelcase: off */
 | 
			
		||||
import sinon, { SinonMock } from 'sinon';
 | 
			
		||||
 | 
			
		||||
import OAuthState from 'app/services/authFlow/OAuthState';
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,3 @@
 | 
			
		||||
/* eslint-disable @typescript-eslint/camelcase */
 | 
			
		||||
import { account1 } from '../../fixtures/accounts.json';
 | 
			
		||||
 | 
			
		||||
const defaults = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user