Skip to content

Commit

Permalink
chore: remove lint
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Jun 21, 2023
1 parent ac55285 commit 616f59f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
8 changes: 4 additions & 4 deletions editor/js/Codemirror.js
@@ -1,14 +1,14 @@
import { basicSetup } from 'codemirror';
import { EditorView, keymap } from '@codemirror/view';
import { javascript, esLint } from '@codemirror/lang-javascript';
import { javascript } from '@codemirror/lang-javascript';
import { EditorState } from '@codemirror/state';
import { oneDark } from '@codemirror/theme-one-dark';
import { lintGutter, linter } from '@codemirror/lint';
import { lintGutter } from '@codemirror/lint';
import { indentWithTab } from '@codemirror/commands';
import * as eslint from "eslint-linter-browserify";

const doc = '';
export const Codemirror = ( { container, extensions = [], ...other } ) => {

return new EditorView( {
state: EditorState.create( {
doc,
Expand All @@ -17,12 +17,12 @@ export const Codemirror = ( { container, extensions = [], ...other } ) => {
javascript(),
oneDark,
keymap.of( [ indentWithTab ] ),
linter( esLint( new eslint.Linter() ) ),
lintGutter(),
...extensions
]
} ),
parent: container,
...other
} );

};
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Expand Up @@ -152,7 +152,6 @@
"@codemirror/view": "^6.2.1",
"acorn": "1.0.1",
"codemirror": "^6.0.1",
"eslint-linter-browserify": "^8.43.0",
"esprima": "^3.1.3",
"signals": "1.0.0"
},
Expand Down

0 comments on commit 616f59f

Please sign in to comment.