From 5dff230618932204b25dfe240a04a5404f21cba7 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Mon, 3 Jul 2023 15:07:21 +0800 Subject: [PATCH] Fix husky issue (#9201) * ci: add overrides attr to eslintrc * build: add ts to eslint script * ci: remove override attr * ci: add overrides to eslint config * build: remove ts from eslint script --- packages/components/.eslintrc.js | 8 ++++++++ packages/components/package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/components/.eslintrc.js b/packages/components/.eslintrc.js index 998e0b71b6f0..8c11f1834b9d 100644 --- a/packages/components/.eslintrc.js +++ b/packages/components/.eslintrc.js @@ -2,6 +2,14 @@ const webpackConfig = require('./webpack.config'); module.exports = { extends: '../../.eslintrc.js', + overrides: [ + { + files: ['*.ts', '*.tsx'], + rules: { + 'react/prop-types': 'off', + }, + }, + ], settings: { react: { version: '16', diff --git a/packages/components/package.json b/packages/components/package.json index a305e9ad9577..a86634a87a29 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -15,7 +15,7 @@ "build:icons-manifest": "node -e 'require(\"./utils/build-icons-manifest\").buildIconsManifest()'", "build:travis": "rimraf lib && webpack --mode=production", "test": "node \"./src/components/icon/__tests__/icons.js\"", - "test:eslint": "eslint \"./src/**/*.?(js|jsx|ts|tsx)\"", + "test:eslint": "eslint \"./src/**/*.?(js|jsx)\"", "deploy": "echo \"No deploy specified\"", "deploy:clean": "echo \"No deploy:clean specified\"", "deploy:folder": "echo \"No deploy:folder specified\"",