mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-17 21:53:03 +05:30
Fix linting errors
This commit is contained in:
parent
a5404002fd
commit
0192f53932
@ -158,6 +158,8 @@ module.exports = {
|
|||||||
'@typescript-eslint/no-explicit-any': 'off',
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
'@typescript-eslint/no-use-before-define': 'off',
|
'@typescript-eslint/no-use-before-define': 'off',
|
||||||
'@typescript-eslint/ban-ts-ignore': '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-empty-function': 'off',
|
||||||
'@typescript-eslint/no-inferrable-types': 'off',
|
'@typescript-eslint/no-inferrable-types': 'off',
|
||||||
'@typescript-eslint/no-unused-vars': [
|
'@typescript-eslint/no-unused-vars': [
|
||||||
|
@ -21,7 +21,6 @@ class Finish extends React.Component<Props> {
|
|||||||
render() {
|
render() {
|
||||||
const { appName, code, state, displayCode, success } = this.props;
|
const { appName, code, state, displayCode, success } = this.props;
|
||||||
const authData = JSON.stringify({
|
const authData = JSON.stringify({
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
auth_code: code,
|
auth_code: code,
|
||||||
state,
|
state,
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
export type ApplicationType = 'application' | 'minecraft-server';
|
export type ApplicationType = 'application' | 'minecraft-server';
|
||||||
export const TYPE_APPLICATION: 'application' = 'application';
|
export const TYPE_APPLICATION = 'application' as const;
|
||||||
export const TYPE_MINECRAFT_SERVER: 'minecraft-server' = 'minecraft-server';
|
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 expect from 'app/test/unexpected';
|
||||||
import sinon, { SinonFakeServer } from 'sinon';
|
import sinon, { SinonFakeServer } from 'sinon';
|
||||||
|
|
||||||
|
@ -169,7 +169,6 @@ export async function requestToken(refreshToken: string): Promise<string> {
|
|||||||
const response: OAuthResponse = await request.post(
|
const response: OAuthResponse = await request.post(
|
||||||
'/api/authentication/refresh-token',
|
'/api/authentication/refresh-token',
|
||||||
{
|
{
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
refresh_token: refreshToken,
|
refresh_token: refreshToken,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/camelcase */
|
|
||||||
import { ApplicationType } from 'app/components/dev/apps';
|
import { ApplicationType } from 'app/components/dev/apps';
|
||||||
import request from 'app/services/request';
|
import request from 'app/services/request';
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint @typescript-eslint/camelcase: off */
|
|
||||||
import sinon, { SinonMock } from 'sinon';
|
import sinon, { SinonMock } from 'sinon';
|
||||||
|
|
||||||
import OAuthState from 'app/services/authFlow/OAuthState';
|
import OAuthState from 'app/services/authFlow/OAuthState';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/camelcase */
|
|
||||||
import { account1 } from '../../fixtures/accounts.json';
|
import { account1 } from '../../fixtures/accounts.json';
|
||||||
|
|
||||||
const defaults = {
|
const defaults = {
|
||||||
|
Loading…
Reference in New Issue
Block a user