From 39da735f17258180629b228e336889bd7009ac32 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sun, 17 May 2020 20:27:51 -0700 Subject: [PATCH] Use --rulesdir --- .eslintrc | 3 +-- modern/src/runtime/.eslintrc | 6 +++--- package.json | 3 +-- yarn.lock | 5 ----- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.eslintrc b/.eslintrc index 5e1fe9b0..8316f091 100644 --- a/.eslintrc +++ b/.eslintrc @@ -13,8 +13,7 @@ "prettier", "import", "@typescript-eslint", - "react-hooks", - "eslint-plugin-local-rules" + "react-hooks" ], "settings": { "react": { diff --git a/modern/src/runtime/.eslintrc b/modern/src/runtime/.eslintrc index 8cdc3f29..99ef957c 100644 --- a/modern/src/runtime/.eslintrc +++ b/modern/src/runtime/.eslintrc @@ -3,8 +3,8 @@ // TODO: Turn these all back on // For now we want to be able to define maki method arguments even though we don't use them. "@typescript-eslint/no-unused-vars": "off", - "local-rules/maki-missing-methods": "error", - "local-rules/maki-class": "error", - "local-rules/maki-method-types": "error" + "maki-missing-methods": "error", + "maki-class": "error", + "maki-method-types": "error" } } diff --git a/package.json b/package.json index 0a5279a2..cca1719a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ ], "scripts": { "lint-fix": "eslint . --ext ts,tsx,js --fix", - "lint": "eslint . --ext ts,tsx,js", + "lint": "eslint . --ext ts,tsx,js --rulesdir=modern/eslint", "type-check": "tsc", "build": "webpack --config=demo/config/webpack.prod.js", "build-library": "webpack --config=config/webpack.library.js", @@ -97,7 +97,6 @@ "data-uri-to-buffer": "^2.0.0", "eslint": "^6.5.1", "eslint-plugin-import": "^2.18.2", - "eslint-plugin-local-rules": "^0.1.1", "eslint-plugin-prettier": "^3.1.0", "eslint-plugin-react": "^7.16.0", "file-loader": "^2.0.0", diff --git a/yarn.lock b/yarn.lock index c0e3f842..4e41785e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4390,11 +4390,6 @@ eslint-plugin-import@^2.18.2: read-pkg-up "^2.0.0" resolve "^1.11.0" -eslint-plugin-local-rules@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-local-rules/-/eslint-plugin-local-rules-0.1.1.tgz#4fa5921389383f10cc1e6cfeb1c24e11597e8cef" - integrity sha512-+Wlic7MSxhVeGJT7a8vf7thVnzlRiessyHNaaOFT7PFlQS6Ff1oMO9vD803CSI5y6Nhu/+f+bVWGUDf8SRDxvg== - eslint-plugin-prettier@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.0.tgz#8695188f95daa93b0dc54b249347ca3b79c4686d"