From 73548eafbbcbe5944bb9f41f223145d5c38a22b3 Mon Sep 17 00:00:00 2001 From: John Goh Date: Fri, 17 Sep 2021 19:13:41 +0800 Subject: [PATCH] fix: revert previous linting changes --- .eslintrc.js | 1 - package.json | 3 +-- src/components/Icon/index.js | 1 - src/icons/Makefile | 1 - src/icons/index.js | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3ee231dec..a7b52ec11 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,7 +5,6 @@ module.exports = { es2020: true, "jest/globals": true }, - parser: "@babel/eslint-parser", settings: { jest: { version: "27" diff --git a/package.json b/package.json index f3e7b058a..e8c90bbd0 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ }, "proxy": "https://canaries.canary.lab.flanksource.com", "scripts": { - "dev": "cross-env NODE_ENV=development craco start", + "dev": "cross-env DISABLE_ESLINT_PLUGIN=true NODE_ENV=development craco start", "build": "cross-env DISABLE_ESLINT_PLUGIN=true NODE_ENV=production craco build", "compile": "cross-env NODE_ENV=production babel src --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__", "test": "craco test --transformIgnorePatterns \"node_modules/(?!(history))/\"", @@ -57,7 +57,6 @@ }, "devDependencies": { "@babel/cli": "^7.14.8", - "@babel/eslint-parser": "^7.15.4", "@babel/preset-env": "^7.15.0", "@babel/preset-react": "^7.14.5", "autoprefixer": "^9.8.6", diff --git a/src/components/Icon/index.js b/src/components/Icon/index.js index 79908d385..aaf179000 100644 --- a/src/components/Icon/index.js +++ b/src/components/Icon/index.js @@ -1,4 +1,3 @@ -// eslint-disable-next-line import/named import { Icons } from "../../icons"; export function Icon({ size = "sm", name, className, alt = "", ...props }) { diff --git a/src/icons/Makefile b/src/icons/Makefile index 5165eace7..214398b0c 100644 --- a/src/icons/Makefile +++ b/src/icons/Makefile @@ -16,7 +16,6 @@ define VARS done endef index.js: - echo "/* eslint-disable */" > index.js echo "// this file is generated using make index.js" > index.js $(call IMPORTS) >> index.js @echo "export const Icons = {" >> index.js diff --git a/src/icons/index.js b/src/icons/index.js index f5ff4b859..2e33a3337 100644 --- a/src/icons/index.js +++ b/src/icons/index.js @@ -1,4 +1,3 @@ -/* eslint-disable */ // this file is generated using make index.js import acr from "./acr.svg"; import aks from "./aks.svg";