mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
aaed8d9cf4
* replace `isEditing` observers with `didReceiveAttrs` hook * 🐛 Fix HTML card not launching in edit mode closes https://github.com/TryGhost/Ghost/issues/8310 - adds `autofocus=true` attribute to `gh-cm-editor` that will use CodeMirror's built-in autofocus behaviour - set HTML card's launch mode to `edit` and ensure that the `autofocus` attribute is passed - refactor `gh-cm-editor` for more robust event handling - re-work `ch-cm-editor` tests to take into account CMs events not being triggered within a single run-loop and to still work when the browser window isn't focused (should fix the random test failures on Travis and the issues where the CM tests will fail locally)
29 lines
752 B
JavaScript
29 lines
752 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
ecmaVersion: 8,
|
|
sourceType: 'module'
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:ember-suave/recommended'
|
|
],
|
|
env: {
|
|
browser: true
|
|
},
|
|
rules: {
|
|
indent: ['error', 4],
|
|
'space-before-function-paren': ['error', {anonymous: 'ignore', named: 'never'}],
|
|
'object-curly-spacing': ['error', 'never'],
|
|
'array-bracket-spacing': ['error', 'never'],
|
|
'key-spacing': ['error', {mode: 'minimum'}],
|
|
'keyword-spacing': ['error', {overrides: {
|
|
'catch': {'after': true}
|
|
}}],
|
|
'ember-suave/require-access-in-comments': 'off'
|
|
},
|
|
globals: {
|
|
validator: false
|
|
}
|
|
};
|