simple-icons/.xo-config.json

74 lines
1.8 KiB
JSON
Raw Normal View History

2024-03-24 20:38:18 +03:00
{
"prettier": true,
"space": 2,
"plugins": ["import"],
"extends": ["plugin:jsdoc/recommended-error"],
2024-03-24 20:38:18 +03:00
"rules": {
"sort-imports": [
"error",
{
"ignoreCase": false,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"],
"allowSeparatedGroups": false
}
],
"import/no-named-as-default": "off",
"import/extensions": "off",
"import/order": [
"error",
{
"groups": ["builtin", "external", "parent", "sibling", "index"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"warnOnUnassignedImports": true,
"newlines-between": "never"
}
2024-05-02 23:54:43 +03:00
],
2024-06-06 15:40:35 +03:00
"no-console": ["error", {"allow": ["warn", "error"]}],
"no-warning-comments": [
"warn",
{
"terms": ["fixme", "xxx"]
}
],
"jsdoc/require-file-overview": "error",
"jsdoc/require-description": "error",
"jsdoc/no-bad-blocks": "error",
"jsdoc/no-blank-blocks": "error",
"jsdoc/no-blank-block-descriptions": "error",
"jsdoc/check-syntax": "error",
"jsdoc/require-asterisk-prefix": "error",
"jsdoc/require-description-complete-sentence": "error",
"jsdoc/require-hyphen-before-param-description": ["error", "never"]
2024-03-24 20:38:18 +03:00
},
"overrides": [
{
"files": ["sdk.mjs", "sdk.d.ts"],
2024-09-17 04:46:48 +03:00
"nodeVersion": ">=14.13.1",
"rules": {
"eslint-comments/disable-enable-pair": "off",
"unicorn/no-abusive-eslint-disable": "off"
}
2024-03-24 20:38:18 +03:00
},
{
"files": [
"scripts/**/*",
"tests/**/*",
"svglint.config.mjs",
"svgo.config.mjs"
],
"nodeVersion": ">=18"
2024-06-06 15:40:35 +03:00
},
{
"files": ["svglint.config.mjs"],
"rules": {
"max-depth": "off"
}
2024-03-24 20:38:18 +03:00
}
]
}