From a61960a8168e449079dbb15a8ff538388d11d4b6 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Thu, 10 Sep 2020 20:19:55 +0300 Subject: [PATCH] configs cleanup --- .eslintrc | 8 -------- .gitignore | 1 + .npmignore | 6 ------ package.json | 31 +++++++++++++++---------------- 4 files changed, 16 insertions(+), 30 deletions(-) delete mode 100644 .npmignore diff --git a/.eslintrc b/.eslintrc index eacf1c3..ed7b400 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,9 +1,6 @@ env: node: true -plugins: - - nodeca - rules: block-scoped-var: 2 brace-style: [ 2, '1tbs', { allowSingleLine: true } ] @@ -110,8 +107,3 @@ rules: use-isnan: 2 yoda: 2 valid-typeof: 2 - - # - # Our custom rules - # - nodeca/indent: [ 2, spaces, 2 ] diff --git a/.gitignore b/.gitignore index 4c444c6..a52b700 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.nyc_output node_modules/ coverage/ *.log diff --git a/.npmignore b/.npmignore deleted file mode 100644 index a329090..0000000 --- a/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -coverage/ -support/ -test/ -Makefile -.* -*.log diff --git a/package.json b/package.json index 2ffcfac..8aa11ae 100644 --- a/package.json +++ b/package.json @@ -8,29 +8,28 @@ "markdown", "definition list" ], - "homepage": "https://github.com/markdown-it/markdown-it-deflist", - "repository": { - "type": "git", - "url": "git://github.com/markdown-it/markdown-it-deflist.git" - }, - "bugs": { - "url": "https://github.com/markdown-it/markdown-it-deflist/issues" - }, + "repository": "markdown-it/markdown-it-deflist.git", "license": "MIT", - "main": "index.js", "scripts": { - "test": "make test" + "lint": "eslint . --reset", + "test": "npm run lint && nyc mocha", + "coverage": "npm run test && nyc report --reporter=html", + "report-coveralls": "nyc report --reporter=text-lcov | coveralls" }, + "files": [ + "index.js", + "lib/", + "dist/" + ], "devDependencies": { - "browserify": "*", - "coveralls": "^2.11.2", + "browserify": "^16.5.2", + "coveralls": "^3.1.0", "eslint": "0.10.2", - "eslint-plugin-nodeca": "^1.0.0", - "istanbul": "*", - "lodash": "*", + "lodash": "^4.17.20", "markdown-it": "markdown-it/markdown-it", "markdown-it-testgen": "~0.1.0", - "mocha": "*", + "mocha": "^8.1.3", + "nyc": "^15.1.0", "uglify-js": "^2.7.3" } }