Last active
June 28, 2021 13:17
-
-
Save devdilson/5cb94a2125dcefe2d473d225f6c958f2 to your computer and use it in GitHub Desktop.
BlockLint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://eslint.org/docs/rules/no-restricted-imports