зеркало из https://github.com/mozilla/treeherder.git
Few linting exceptions
This commit is contained in:
Родитель
f7680516a4
Коммит
31990b982d
|
@ -30,6 +30,7 @@ module.exports = {
|
|||
'consistent-return': 'off',
|
||||
'default-case': 'off',
|
||||
'jsx-a11y/click-events-have-key-events': 'off',
|
||||
'jsx-a11y/control-has-associated-label': 'off',
|
||||
'jsx-a11y/label-has-for': 'off',
|
||||
'jsx-a11y/no-noninteractive-element-interactions': 'off',
|
||||
'jsx-a11y/no-static-element-interactions': 'off',
|
||||
|
@ -42,6 +43,8 @@ module.exports = {
|
|||
'no-underscore-dangle': 'off',
|
||||
'prefer-promise-reject-errors': 'off',
|
||||
'react/destructuring-assignment': 'off',
|
||||
'react/jsx-fragments': 'off',
|
||||
'react/jsx-props-no-spreading': 'off',
|
||||
'react/forbid-prop-types': 'off',
|
||||
'react/prop-types': 'off',
|
||||
// Override AirBnB's config for this rule to make it more strict.
|
||||
|
|
|
@ -15,6 +15,7 @@ export default class AuthService {
|
|||
_fetchUser(userSession) {
|
||||
const loginUrl = getApiUrl('/auth/login/');
|
||||
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
return new Promise(async (resolve, reject) => {
|
||||
const userResponse = await fetch(loginUrl, {
|
||||
headers: {
|
||||
|
|
|
@ -180,7 +180,7 @@ async function fetchTests(store, fetchParams) {
|
|||
Object.entries(testFailureLines).forEach(([testName, test]) => {
|
||||
// Make a copy of the job that is just for this single testName because each test
|
||||
// needs its own job copy that contains the failureLines for only that test.
|
||||
const flJob = Object.assign({}, job);
|
||||
const flJob = { ...job };
|
||||
test.jobs = [flJob];
|
||||
test.name = testName;
|
||||
// set the failureLines of this test to this test's job
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable max-classes-per-file */
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
|
Загрузка…
Ссылка в новой задаче