From b9db5d1bc2e760baeb29dffc469a0a0d82f9f598 Mon Sep 17 00:00:00 2001 From: Erik Arvidsson Date: Thu, 27 Oct 2016 11:51:55 -0700 Subject: [PATCH] Make our eslint setup less hacky (#2766) Rename the package to eslint-config-noms as documented on the eslint site. This allows other npm modules to use and `extends: 'noms'` in their eslint rc file. --- js/{eslintrc => eslint-config-noms}/.gitignore | 0 js/{eslintrc => eslint-config-noms}/index.js | 0 js/{eslintrc => eslint-config-noms}/package.json | 14 +++++++++++--- 3 files changed, 11 insertions(+), 3 deletions(-) rename js/{eslintrc => eslint-config-noms}/.gitignore (100%) rename js/{eslintrc => eslint-config-noms}/index.js (100%) rename js/{eslintrc => eslint-config-noms}/package.json (62%) diff --git a/js/eslintrc/.gitignore b/js/eslint-config-noms/.gitignore similarity index 100% rename from js/eslintrc/.gitignore rename to js/eslint-config-noms/.gitignore diff --git a/js/eslintrc/index.js b/js/eslint-config-noms/index.js similarity index 100% rename from js/eslintrc/index.js rename to js/eslint-config-noms/index.js diff --git a/js/eslintrc/package.json b/js/eslint-config-noms/package.json similarity index 62% rename from js/eslintrc/package.json rename to js/eslint-config-noms/package.json index 457dfb282e..2c4c95c060 100644 --- a/js/eslintrc/package.json +++ b/js/eslint-config-noms/package.json @@ -1,8 +1,8 @@ { - "name": "@attic/eslintrc", + "name": "eslint-config-noms", "description": "Shared eslintrc for noms", "license": "Apache-2.0", - "version": "4.3.0", + "version": "1.0.0", "main": "index.js", "dependencies": { "babel-eslint": "7.0.0", @@ -10,7 +10,15 @@ "eslint-plugin-flowtype": "2.25.0", "eslint-plugin-react": "6.3.0" }, + "peerDependency": { + "eslint": ">= 3" + }, "scripts": { "test": "exit 0" - } + }, + "keywords": [ + "eslint", + "eslintconfig", + "noms" + ] }