From f95cf1d923ebb4a2fb7c0e8675c7ec54fb828671 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 10 Dec 2018 15:33:04 +0000 Subject: [PATCH] fix: wrong index file --- lib/index.js | 4 +++- package.json | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 30549ba..410b663 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,7 +1,9 @@ module.exports = { rules: { + 'no-env-in-context': require('./rules/no-env-in-context'), + 'no-globals-in-created': require('./rules/no-globals-in-created'), 'no-this-in-fetch-data': require('./rules/no-this-in-fetch-data'), - 'no-this-in-fetch': require('./rules/no-this-in-fetch') + 'no-timing-in-fetch-data': require('./rules/no-timing-in-fetch-data') }, configs: { 'base': require('./configs/base'), diff --git a/package.json b/package.json index d15ad70..264c65c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "ESLint plugin for Nuxt.js", "author": "Clark Du ", "license": "MIT", - "main": "index.js", + "main": "lib/index.js", "homepage": "https://github.com/nuxt/eslint-plugin-nuxt#readme", "bugs": { "url": "https://github.com/nuxt/eslint-plugin-nuxt/issues" @@ -18,6 +18,9 @@ "eslint", "eslintplugin" ], + "files": [ + "lib" + ], "scripts": { "test": "jest --silent", "lint": "eslint ./",