forked from markdown-it/markdown-it
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replaced jshint with eslint for better style check
- Loading branch information
Vitaly Puzrin
committed
Sep 7, 2014
1 parent
8cf045d
commit a8f9ea5
Showing
20 changed files
with
89 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.git/ | ||
benchmark/implementations/ | ||
node_modules/ | ||
demo/ | ||
dist/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
env: | ||
node: true | ||
browser: false | ||
|
||
plugins: | ||
- nodeca | ||
|
||
rules: | ||
block-scoped-var: 2 | ||
brace-style: [ 2, '1tbs', { allowSingleLine: true } ] | ||
camelcase: 0 | ||
consistent-return: 2 | ||
consistent-this: [ 2, self ] | ||
curly: [ 2, all ] | ||
default-case: 2 | ||
eol-last: 2 | ||
eqeqeq: 2 | ||
guard-for-in: 2 | ||
handle-callback-err: 2 | ||
max-depth: [ 1, 3 ] | ||
max-nested-callbacks: [ 1, 4 ] | ||
# string can exceed 80 chars, but should not overflow github website :) | ||
max-len: [ 2, 120, 1000 ] | ||
no-alert: 2 | ||
no-bitwise: 2 | ||
no-comma-dangle: 2 | ||
no-console: 2 | ||
no-div-regex: 2 | ||
no-else-return: 2 | ||
no-eq-null: 2 | ||
no-floating-decimal: 2 | ||
no-lonely-if: 2 | ||
no-process-exit: 0 | ||
no-trailing-spaces: 2 | ||
no-underscore-dangle: 0 | ||
quotes: [ 2, single, avoid-escape ] | ||
radix: 2 | ||
space-after-keywords: [ 2, always ] # Fixed in master | ||
space-in-brackets: [ 1, always ] | ||
|
||
# temporary | ||
no-func-assign: 0 | ||
|
||
# | ||
# Our custom rules | ||
# | ||
nodeca/indent: [ 2, spaces, 2 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ demo: lint browserify | |
|
||
|
||
lint: | ||
jshint . --show-non-errors | ||
eslint ./ | ||
|
||
|
||
test: lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
'use strict'; | ||
|
||
var fs = require('fs'); | ||
var path = require('path'); | ||
var Remarkable = require('../'); | ||
|
||
var md = new Remarkable(); | ||
|
||
var data = fs.readFileSync(__dirname +'/samples/lorem1.txt', 'utf8'); | ||
var data = fs.readFileSync(path.join(__dirname, '/samples/lorem1.txt', 'utf8')); | ||
|
||
for (var i=0; i<20000; i++) { | ||
for (var i = 0; i < 20000; i++) { | ||
md.render(data); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,4 @@ module.exports = function code(state, startLine, endLine, silent) { | |
|
||
state.line = nextLine; | ||
return true; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.