feat(svgr): create new Docusaurus SVGR plugin (#10677)

This commit is contained in:
Sébastien Lorber 2024-11-29 17:26:34 +01:00 committed by GitHub
parent 750edc78ff
commit df6f53a2f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 1247 additions and 149 deletions

9
.eslintrc.js vendored
View file

@ -380,7 +380,14 @@ module.exports = {
// We don't provide any escape hatches for this rule. Rest siblings and
// function placeholder params are always ignored, and any other unused
// locals must be justified with a disable comment.
'@typescript-eslint/no-unused-vars': [ERROR, {ignoreRestSiblings: true}],
'@typescript-eslint/no-unused-vars': [
ERROR,
{
ignoreRestSiblings: true,
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/prefer-optional-chain': ERROR,
'@docusaurus/no-html-links': ERROR,
'@docusaurus/prefer-docusaurus-heading': ERROR,