kopia lustrzana https://github.com/wagtail/wagtail
clean up eslint for test files
- disable general rules to make writing tests simplerpull/8542/merge
rodzic
b66d2232d0
commit
d57021e1cc
|
@ -116,9 +116,12 @@ module.exports = {
|
|||
],
|
||||
rules: {
|
||||
'@typescript-eslint/no-empty-function': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-var-requires': 'off',
|
||||
'global-require': 'off',
|
||||
'import/first': 'off',
|
||||
'import/no-extraneous-dependencies': 'off',
|
||||
'no-unused-expressions': 'off',
|
||||
'react/function-component-definition': 'off',
|
||||
'react/jsx-props-no-spreading': 'off',
|
||||
},
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { FieldBlockDefinition } from './FieldBlock';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { FieldBlock, FieldBlockDefinition } from './FieldBlock';
|
||||
import { ListBlockDefinition, ListBlockValidationError } from './ListBlock';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { FieldBlockDefinition } from './FieldBlock';
|
||||
import {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { FieldBlockDefinition } from './FieldBlock';
|
||||
import {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
import '../../admin/telepath/telepath';
|
||||
import $ from 'jquery';
|
||||
import { TypedTableBlockDefinition } from './typed_table_block';
|
||||
|
|
|
@ -10,7 +10,6 @@ describe('escapeHtml', () => {
|
|||
});
|
||||
|
||||
describe('cleanForSlug', () => {
|
||||
// eslint-disable-next-line no-unused-expressions, global-require
|
||||
require('../../../wagtail/admin/static_src/wagtailadmin/js/vendor/urlify')
|
||||
.default;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue