Skip to content

Commit 44e5cfc

Browse files
committed
move csslint to hint file
1 parent 10da30e commit 44e5cfc

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

client/modules/IDE/components/Editor/hinter.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ import Fuse from 'fuse.js';
22
import CodeMirror from 'codemirror';
33
import { JSHINT } from 'jshint';
44
import { HTMLHint } from 'htmlhint';
5-
import 'codemirror/addon/hint/css-hint';
5+
import { CSSLint } from 'csslint';
66

7+
import 'codemirror/addon/hint/css-hint';
78
import * as hinterDefinition from '../../../../utils/p5-hinter';
8-
import '../show-hint'; // Remove for codemirror v6?
9+
import '../show-hint'; // TODO: Remove for codemirror v6?
910

10-
// Are we using these?????
1111
window.JSHINT = JSHINT;
12+
window.CSSLint = CSSLint;
1213
window.HTMLHint = HTMLHint;
1314

1415
const hinter = new Fuse(hinterDefinition.p5Hinter, {

client/modules/IDE/components/Editor/index.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import 'codemirror/addon/edit/closebrackets';
3434
import 'codemirror/addon/selection/mark-selection';
3535
import 'codemirror-colorpicker';
3636

37-
import { CSSLint } from 'csslint';
3837
import classNames from 'classnames';
3938
import { debounce } from 'lodash';
4039
import { connect } from 'react-redux';
@@ -71,8 +70,6 @@ import { showHint, hideHinter } from './hinter';
7170

7271
emmet(CodeMirror);
7372

74-
window.CSSLint = CSSLint;
75-
7673
const INDENTATION_AMOUNT = 2;
7774

7875
class Editor extends React.Component {

0 commit comments

Comments
 (0)