mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-23 09:54:28 -06:00
Set indent style to 4 spaces
This commit is contained in:
parent
8a44ba70fb
commit
de26368ad1
6
.editorconfig
Normal file
6
.editorconfig
Normal file
@ -0,0 +1,6 @@
|
||||
[*]
|
||||
charset=utf-8
|
||||
end_of_line=lf
|
||||
insert_final_newline=true
|
||||
indent_style=space
|
||||
indent_size=4
|
@ -1,9 +1,5 @@
|
||||
{
|
||||
"rules": {
|
||||
"indent": [
|
||||
2,
|
||||
"tab"
|
||||
],
|
||||
"strict": 0,
|
||||
"no-console": 0,
|
||||
"quotes": [
|
||||
@ -17,7 +13,7 @@
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node":true
|
||||
"node": true
|
||||
},
|
||||
"extends": "eslint:recommended"
|
||||
}
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,8 +1,7 @@
|
||||
localtesting/
|
||||
# NPM files
|
||||
node_modules/
|
||||
bower_components/
|
||||
|
||||
#For IDE
|
||||
# IDE files
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
|
@ -465,7 +465,7 @@ span.CodeMirror-selectedtext { background: none; }
|
||||
background: transparent;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
text-decoration: none!important;
|
||||
text-decoration: none !important;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
margin: 0;
|
||||
@ -600,8 +600,8 @@ span.CodeMirror-selectedtext { background: none; }
|
||||
display: block
|
||||
}
|
||||
|
||||
.editor-preview>p,
|
||||
.editor-preview-side>p {
|
||||
.editor-preview > p,
|
||||
.editor-preview-side > p {
|
||||
margin-top: 0
|
||||
}
|
||||
|
||||
@ -675,6 +675,7 @@ span.CodeMirror-selectedtext { background: none; }
|
||||
.CodeMirror .CodeMirror-placeholder {
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
|
||||
background: rgba(255, 0, 0, .15);
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
14
gulpfile.js
14
gulpfile.js
@ -21,7 +21,7 @@ var banner = ["/**",
|
||||
" */",
|
||||
""].join("\n");
|
||||
|
||||
gulp.task("lint", function() {
|
||||
gulp.task("lint", function () {
|
||||
gulp.src("./src/js/**/*.js")
|
||||
.pipe(debug())
|
||||
.pipe(eslint())
|
||||
@ -34,23 +34,23 @@ function taskBrowserify(opts) {
|
||||
.bundle();
|
||||
}
|
||||
|
||||
gulp.task("browserify:debug", ["lint"], function() {
|
||||
return taskBrowserify({debug:true, standalone:"SimpleMDE"})
|
||||
gulp.task("browserify:debug", ["lint"], function () {
|
||||
return taskBrowserify({debug: true, standalone: "SimpleMDE"})
|
||||
.pipe(source("simplemde.debug.js"))
|
||||
.pipe(buffer())
|
||||
.pipe(header(banner, {pkg: pkg}))
|
||||
.pipe(gulp.dest("./debug/"));
|
||||
});
|
||||
|
||||
gulp.task("browserify", ["lint"], function() {
|
||||
return taskBrowserify({standalone:"SimpleMDE"})
|
||||
gulp.task("browserify", ["lint"], function () {
|
||||
return taskBrowserify({standalone: "SimpleMDE"})
|
||||
.pipe(source("simplemde.js"))
|
||||
.pipe(buffer())
|
||||
.pipe(header(banner, {pkg: pkg}))
|
||||
.pipe(gulp.dest("./debug/"));
|
||||
});
|
||||
|
||||
gulp.task("scripts", ["browserify:debug", "browserify", "lint"], function() {
|
||||
gulp.task("scripts", ["browserify:debug", "browserify", "lint"], function () {
|
||||
var js_files = ["./debug/simplemde.js"];
|
||||
|
||||
return gulp.src(js_files)
|
||||
@ -61,7 +61,7 @@ gulp.task("scripts", ["browserify:debug", "browserify", "lint"], function() {
|
||||
.pipe(gulp.dest("./dist/"));
|
||||
});
|
||||
|
||||
gulp.task("styles", function() {
|
||||
gulp.task("styles", function () {
|
||||
var css_files = [
|
||||
"./node_modules/codemirror/lib/codemirror.css",
|
||||
"./src/css/*.css",
|
||||
|
@ -112,7 +112,7 @@
|
||||
background: transparent;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
text-decoration: none!important;
|
||||
text-decoration: none !important;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
margin: 0;
|
||||
@ -247,8 +247,8 @@
|
||||
display: block
|
||||
}
|
||||
|
||||
.editor-preview>p,
|
||||
.editor-preview-side>p {
|
||||
.editor-preview > p,
|
||||
.editor-preview-side > p {
|
||||
margin-top: 0
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user