Skip to content

Commit

Permalink
chore: change eslint package
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Jun 21, 2023
1 parent 5d24291 commit ac55285
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 2 additions & 4 deletions editor/js/Codemirror.js
Expand Up @@ -5,11 +5,10 @@ import { EditorState } from '@codemirror/state';
import { oneDark } from '@codemirror/theme-one-dark';
import { lintGutter, linter } from '@codemirror/lint';
import { indentWithTab } from '@codemirror/commands';
import Linter from 'eslint4b-prebuilt';
import * as eslint from "eslint-linter-browserify";

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

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

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

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

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -152,7 +152,7 @@
"@codemirror/view": "^6.2.1",
"acorn": "1.0.1",
"codemirror": "^6.0.1",
"eslint4b-prebuilt": "^6.7.2",
"eslint-linter-browserify": "^8.43.0",
"esprima": "^3.1.3",
"signals": "1.0.0"
},
Expand Down

0 comments on commit ac55285

Please sign in to comment.