Skip to content

Instantly share code, notes, and snippets.

@devdilson
Last active June 28, 2021 13:17
Show Gist options
  • Save devdilson/5cb94a2125dcefe2d473d225f6c958f2 to your computer and use it in GitHub Desktop.
Save devdilson/5cb94a2125dcefe2d473d225f6c958f2 to your computer and use it in GitHub Desktop.
BlockLint
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
},
{
"files": [
"**/*.spec.ts"
],
"rules": {
"quotes": [
2,
"single"
]
}
},
{
"files": [
"*.ts"
],
"excludedFiles": "*.spec.ts",
"rules": {
"no-restricted-imports": [
"error",
"faker"
]
}
}
]
}
@devdilson
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment