Skip to content

Commit

Permalink
Backport of [ui] Prettify ember-cli-build into release/1.19.x (#21733)
Browse files Browse the repository at this point in the history
[ui] Prettify ember-cli-build (#21731)

* Missed prettification at a pre-merge step earlier

* Missed lint-removal

Co-authored-by: Phil Renaud <[email protected]>
  • Loading branch information
hc-github-team-consul-core and philrenaud committed Sep 13, 2024
1 parent b6784bf commit 4203ba6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 54 deletions.
1 change: 0 additions & 1 deletion ui/packages/consul-ui/app/components/code-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default Component.extend({

const editor = this.editor;
editor.setOption('mode', mode.mime);
this.helper.lint(editor, mode.mode);
set(this, 'mode', mode);
}
},
Expand Down
5 changes: 0 additions & 5 deletions ui/packages/consul-ui/app/services/code-mirror/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/

import Service, { inject as service } from '@ember/service';
import lint from 'consul-ui/utils/editor/lint';
const MODES = [
{
name: 'JSON',
Expand Down Expand Up @@ -41,10 +40,6 @@ export default class LinterService extends Service {
return MODES;
}

lint() {
return lint(...arguments);
}

getEditor(element) {
return this.dom.element('textarea + div', element).CodeMirror;
}
Expand Down
43 changes: 0 additions & 43 deletions ui/packages/consul-ui/app/utils/editor/lint.js

This file was deleted.

6 changes: 1 addition & 5 deletions ui/packages/consul-ui/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,7 @@ module.exports = function (defaults, $ = process.env) {
},
codemirror: {
keyMaps: ['sublime'],
addonFiles: [
'lint/lint.css',
'lint/yaml-lint.js',
'mode/loadmode.js',
],
addonFiles: ['lint/lint.css', 'lint/yaml-lint.js', 'mode/loadmode.js'],
},
sassOptions: {
implementation: require('sass'),
Expand Down

0 comments on commit 4203ba6

Please sign in to comment.