Skip to content

Commit

Permalink
IGNORE until new eslint processor API used eslint#126 (comment) / htt…
Browse files Browse the repository at this point in the history
…ps://github.com/eslint/rfcs/tree/master/designs/2018-processors-improvements / eslint/eslint#11552

Upgrade: Update deps. and devDeps; istanbul -> nyc

Update object-assign, unified, remark-parse for deps and eslint-release, chai, mocha, eslint for devDeps.
In process of updating:

1. Get plugins tests to work with eslint 6
2. In whitespace processor test, add an extra line break for the expected since `remark-parse@7` started preserving them (see remarkjs/remark#351 )
  • Loading branch information
brettz9 committed Oct 31, 2019
1 parent 1c1fa6e commit 6fd8934
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ coverage/
node_modules/
npm-debug.log
.eslint-release-info.json
.nyc_output
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -22,7 +22,7 @@
"scripts": {
"lint": "eslint .",
"test": "npm run lint && npm run test-cov",
"test-cov": "istanbul cover _mocha -- -c tests/lib/**/*.js",
"test-cov": "nyc _mocha -- -c tests/lib/**/*.js",
"generate-release": "eslint-generate-release",
"generate-alpharelease": "eslint-generate-prerelease alpha",
"generate-betarelease": "eslint-generate-prerelease beta",
Expand All @@ -36,18 +36,18 @@
"lib/processor.js"
],
"devDependencies": {
"chai": "^3.0.0",
"eslint": "^4.19.1",
"chai": "^4.2.0",
"eslint": "^6.6.0",
"eslint-config-eslint": "^5.0.1",
"eslint-plugin-node": "^6.0.1",
"eslint-release": "^1.0.0",
"istanbul": "^0.4.5",
"mocha": "^2.2.5"
"eslint-release": "^1.2.0",
"mocha": "^6.2.2",
"nyc": "^14.1.1"
},
"dependencies": {
"object-assign": "^4.0.1",
"remark-parse": "^5.0.0",
"unified": "^6.1.2"
"object-assign": "^4.1.1",
"remark-parse": "^7.0.1",
"unified": "^8.4.1"
},
"engines": {
"node": "^6.14.0 || ^8.10.0 || >=9.10.0"
Expand Down
1 change: 1 addition & 0 deletions tests/lib/plugin.js
Expand Up @@ -20,6 +20,7 @@ function initCLI(isAutofixEnabled) {
const cli = new CLIEngine({
envs: ["browser"],
extensions: ["md", "mkdn", "mdown", "markdown"],
plugins: ["markdown"],
fix,
ignore: false,
rules: {
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/processor.js
Expand Up @@ -188,7 +188,7 @@ describe("processor", () => {
const blocks = processor.preprocess(code);

assert.strictEqual(blocks.length, 1);
assert.strictEqual(blocks[0], "\n\n \n \n");
assert.strictEqual(blocks[0], "\n\n\n \n \n");
});

it("should ignore code fences with unspecified info string", () => {
Expand Down

0 comments on commit 6fd8934

Please sign in to comment.