@letscooee/web-sdk
Version:
Engage uniquely and boost conversions with AI-powered customer journeys driven by real-time intent
139 lines (138 loc) • 4.73 kB
JSON
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"plugins": [
"import"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "cooee",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "cooee",
"style": "kebab-case"
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true,
"allowDirectConstAssertionInArrowFunctions": true,
"allowConciseArrowFunctionExpressionsStartingWithVoid": false
}
],
"@typescript-eslint/indent": [
"error",
4,
{
"FunctionDeclaration": {
"body": 1,
"parameters": "first"
},
"FunctionExpression": {
"body": 1,
"parameters": "first"
},
"ignoredNodes": [
"Decorator"
],
"SwitchCase": 1
}
],
"max-len": [
"error",
{
"code": 120
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 0
}
],
"padded-blocks": [
"error",
{
"classes": "always",
"blocks": "never"
}
],
"prefer-promise-reject-errors": [
"error",
{
"allowEmptyReject": true
}
],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"import/no-restricted-paths": [
"error",
{
"zones": [
{
"target": "projects/**-lib/**/*",
"from": "projects/**-sdk/**/*",
"message": "Files from lib should not be imported in the sdk"
},
{
"target": "projects/analytics-sdk/**/*",
"from": "projects/widget-sdk/**/*"
},
{
"target": "projects/widget-sdk/**/*",
"from": "projects/analytics-sdk/**/*"
}
]
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {
"@angular-eslint/template/eqeqeq": "off"
}
}
]
}