Skip to content

Commit

Permalink
Add ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Jan 27, 2022
1 parent 24da889 commit 9c1292a
Show file tree
Hide file tree
Showing 7 changed files with 5,550 additions and 811 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,10 @@
{
"extends": [
// Base rules for every project
"peerigon",
"peerigon/node",
"prettier" // add this at the end of 'extends' if you're using Prettier
],
// Do not search for further eslint configs in upper directories
"root": true
}
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.idea
node_modules
.eslintcache
6,326 changes: 5,528 additions & 798 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion package.json
Expand Up @@ -8,7 +8,9 @@
"src"
],
"scripts": {
"test": "ava"
"test": "run-p test:*",
"test:suite": "ava",
"test:lint": "eslint --max-warnings 0 --cache --ext js,ts --ignore-path .gitignore ."
},
"repository": {
"type": "git",
Expand All @@ -26,13 +28,20 @@
"url": "https://github.com/peerigon/markdown-loader/issues"
},
"homepage": "https://github.com/peerigon/markdown-loader",
"engines": {
"node": ">=12.22.9"
},
"dependencies": {
"marked": "^4.0.12"
},
"devDependencies": {
"ava": "^4.0.1",
"eslint": "^8.7.0",
"eslint-config-peerigon": "^33.2.4",
"eslint-plugin-node": "^11.1.0",
"highlight.js": "^11.4.0",
"html-loader": "^3.1.0",
"npm-run-all": "^4.1.5",
"webpack": "^5.67.0"
}
}
1 change: 1 addition & 0 deletions src/loader.js
@@ -1,3 +1,4 @@
/* eslint-disable @babel/no-invalid-this */
import {parse} from "marked";

export function markdownLoader(markdown) {
Expand Down
7 changes: 0 additions & 7 deletions test/markdown-options.js

This file was deleted.

5 changes: 0 additions & 5 deletions test/markdown-renderer.js

This file was deleted.

0 comments on commit 9c1292a

Please sign in to comment.