kopia lustrzana https://github.com/wagtail/wagtail
eslint - move 'prefer-destructuring' disabling to core rules
- this rule does not align with preferred code approachpull/9258/head
rodzic
458b77e5ae
commit
eb398a5f9b
|
|
@ -11,7 +11,6 @@ const legacyCode = {
|
|||
'no-prototype-builtins': 'off',
|
||||
'no-restricted-syntax': 'off',
|
||||
'no-this-before-super': 'off',
|
||||
'prefer-destructuring': 'off',
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -59,6 +58,8 @@ module.exports = {
|
|||
'error',
|
||||
{ allow: ['__REDUX_DEVTOOLS_EXTENSION__'] },
|
||||
],
|
||||
// this rule can be confusing as it forces some non-intuitive code for variable assignment
|
||||
'prefer-destructuring': 'off',
|
||||
},
|
||||
settings: {
|
||||
'import/core-modules': ['jquery'],
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import $ from 'jquery';
|
||||
import { initCollapsiblePanels } from './panels';
|
||||
|
||||
// eslint-disable-next-line prefer-destructuring
|
||||
const buildExpandingFormset = window.buildExpandingFormset;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue