Eslint - disable rule max-classes-per-file (#9483)

pull/9773/head
LB (Ben Johnston) 2022-12-09 17:14:49 +10:00 zatwierdzone przez GitHub
rodzic 7fe09f65bb
commit a3fa3b86be
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -4,7 +4,6 @@ const legacyCode = {
'class-methods-use-this': 'off',
'constructor-super': 'off',
'default-param-last': 'off',
'max-classes-per-file': 'off',
'no-continue': 'off',
'no-else-return': 'off',
'no-restricted-syntax': 'off',
@ -49,6 +48,7 @@ module.exports = {
'always',
{ exceptAfterSingleLine: true },
],
'max-classes-per-file': 'off',
// note you must disable the base rule as it can report incorrect errors
'no-use-before-define': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.tsx'] }],
@ -67,7 +67,6 @@ module.exports = {
// Legacy Code - remove from `files` when adopting desired rules in new code progressively
{
files: [
'client/src/entrypoints/admin/comments.js',
'client/src/entrypoints/admin/core.js',
'client/src/entrypoints/admin/page-chooser.js',
'client/src/entrypoints/admin/page-editor.js',

Wyświetl plik

@ -1,4 +1,3 @@
/* eslint-disable max-classes-per-file */
import $ from 'jquery';
import { initTabs } from './tabs';
import { initTooltips } from './initTooltips';