Skip to content

Commit

Permalink
Build: Dogfood plugin without npm link (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
btmills committed Apr 30, 2017
1 parent cc7deea commit 48122eb
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 19 deletions.
31 changes: 31 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,31 @@
"use strict";

var fs = require("fs");
var path = require("path");
var PACKAGE_NAME = require("./package").name;
var SYMLINK_LOCATION = path.join(__dirname, "node_modules", PACKAGE_NAME);

// Symlink node_modules/eslint-plugin-markdown to this directory so that ESLint
// resolves this plugin name correctly.
if (!fs.existsSync(SYMLINK_LOCATION)) {
fs.symlinkSync(__dirname, SYMLINK_LOCATION);
}

module.exports = {
"root": true,

"plugins": [
PACKAGE_NAME
],

"env": {
"node": true
},

"extends": "eslint",

"rules": {
"strict": "off",
"eol-last": "off"
}
};
14 changes: 0 additions & 14 deletions .eslintrc.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .travis.yml
Expand Up @@ -10,6 +10,3 @@ node_js:
sudo: false
notifications:
email: false
install:
- npm link
- npm link eslint-plugin-markdown
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -113,8 +113,7 @@ Since code blocks are not files themselves but embedded inside a Markdown docume
```sh
$ git clone https://github.com/eslint/eslint-plugin-markdown.git
$ cd eslint-plugin-markdown
$ npm link
$ npm link eslint-plugin-markdown
$ npm install
$ npm test
```

Expand Down

0 comments on commit 48122eb

Please sign in to comment.