From 6278e826a57f3a63123f2d2720f594367ce8e357 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Wed, 13 Mar 2019 16:33:57 +0200 Subject: [PATCH] Added linting script --- .eslintrc.json | 4 ++-- package.json | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index fe5448a..c5a5f5e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,5 @@ { + "extends": "airbnb", "rules": { "comma-dangle": ["error", "never"], "no-console": "off", @@ -10,6 +11,5 @@ "ExportDeclaration": "never" }], "object-curly-spacing": ["error", "always"] - }, - "extends": "airbnb" + } } diff --git a/package.json b/package.json index c809467..c31bb8c 100644 --- a/package.json +++ b/package.json @@ -20,5 +20,8 @@ "eslint-plugin-import": "2.16.0", "eslint-plugin-jsx-a11y": "6.2.1", "eslint-plugin-react": "7.12.4" + }, + "scripts": { + "lint": "eslint app/src --format table" } }