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 ./",