Skip to content

Commit

Permalink
Fix husky issue (binary-com#9201)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ali-hosseini-deriv committed Jul 3, 2023
1 parent d112c0d commit 5dff230
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/components/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down

0 comments on commit 5dff230

Please sign in to comment.