From ba1e312bbd62f3fb6bb0dce07302f3dfa0b8a46d Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 28 Oct 2021 07:19:21 -0700 Subject: [PATCH] [eslint] simplify eslint command --- flow/eslint-jsx.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/eslint-jsx.js b/flow/eslint-jsx.js index c30160bc9..4c98f6969 100644 --- a/flow/eslint-jsx.js +++ b/flow/eslint-jsx.js @@ -4,7 +4,7 @@ import type { JSXAttribute, JSXOpeningElement, - } from 'ast-types-flow'; +} from 'ast-types-flow'; export type ESLintJSXAttribute = { parent: JSXOpeningElement diff --git a/package.json b/package.json index f57bf143c..fb8e6d9f5 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "create": "node ./scripts/create-rule", "flow": "if [ ! -e ./.flowconfig ]; then echo \"Could not find .flowconfig\"; else flow; test $? -eq 0 -o $? -eq 2; fi", "lint:fix": "npm run lint -- --fix", - "lint": "eslint --config .eslintrc src __tests__ __mocks__ scripts", + "lint": "eslint .", "prepublish": "not-in-publish || npm run prepublishOnly", "prepublishOnly": "safe-publish-latest && npm run lint && npm run flow && npm run jest && npm run build", "pretest": "npm run lint:fix && npm run flow",