Skip to content

Commit

Permalink
chore(react): remove react-axe deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Oct 3, 2023
1 parent 436b4f8 commit a14ed4a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 41 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"prettier": "^3.0.3",
"prop-types": "^15.7.2",
"raw-loader": "^4.0.2",
"react-axe": "^3.4.1",
"react-router-dom": "^5.3.4",
"regenerator-runtime": "^0.13.11",
"rimraf": "^4.1.2",
Expand Down
16 changes: 1 addition & 15 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,7 @@
* limitations under the License.
*/
import { App } from '@app/index';
import * as React from 'react';
import ReactDOM from 'react-dom';

if (process.env.NODE_ENV !== 'production') {
const config = {
rules: [
{
id: 'color-contrast',
enabled: false,
},
],
};
// eslint-disable-next-line @typescript-eslint/no-var-requires, no-undef
const axe = require('react-axe');
axe(React, ReactDOM, 1000, config);
}

ReactDOM.render(<App />, document.getElementById('root') as HTMLElement);

25 changes: 0 additions & 25 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3182,13 +3182,6 @@ __metadata:
languageName: node
linkType: hard

"axe-core@npm:^3.5.0":
version: 3.5.6
resolution: "axe-core@npm:3.5.6"
checksum: 000777d2b6bf1f390beb1fb4b8714ed9127797c021c345b032db0c144e07320dbbe8cb0bcb7688b90b79cfbd3cdc1f27a4dc857804e3c61d7e0defb34deeb830
languageName: node
linkType: hard

"axios@npm:^0.27.2":
version: 0.27.2
resolution: "axios@npm:0.27.2"
Expand Down Expand Up @@ -4150,7 +4143,6 @@ __metadata:
prop-types: ^15.7.2
raw-loader: ^4.0.2
react: ^17.0.2
react-axe: ^3.4.1
react-dom: ^17.0.2
react-i18next: ^12.3.1
react-joyride: ^2.5.3
Expand Down Expand Up @@ -11180,16 +11172,6 @@ __metadata:
languageName: node
linkType: hard

"react-axe@npm:^3.4.1":
version: 3.5.4
resolution: "react-axe@npm:3.5.4"
dependencies:
axe-core: ^3.5.0
requestidlecallback: ^0.3.0
checksum: d3f3bc6de6670911ce98d2c80e40ffe71dc798df7b4a7912c1727895886837c3d13dded64dc0387b1db77d55c487365b94cf17e761d0f0f48097b1a6321f09cf
languageName: node
linkType: hard

"react-dom@npm:^17.0.2":
version: 17.0.2
resolution: "react-dom@npm:17.0.2"
Expand Down Expand Up @@ -11617,13 +11599,6 @@ __metadata:
languageName: node
linkType: hard

"requestidlecallback@npm:^0.3.0":
version: 0.3.0
resolution: "requestidlecallback@npm:0.3.0"
checksum: 2405aef711b516e326ff18849b24ad2c0e623d2b60397bdc7919fa40d8575fce0a16a563a53f94ec89d255325a99e5deee952e6024584a5179cbbabb4469f0e8
languageName: node
linkType: hard

"require-directory@npm:^2.1.1":
version: 2.1.1
resolution: "require-directory@npm:2.1.1"
Expand Down

0 comments on commit a14ed4a

Please sign in to comment.