mirror of
https://github.com/Raghu-Ch/angular-accessibility.git
synced 2026-02-10 12:53:03 -05:00
feat(app): initial commit!
This commit is contained in:
78
.eslintrc.json
Normal file
78
.eslintrc.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/explicit-member-accessibility": [
|
||||
"off",
|
||||
{
|
||||
"accessibility": "explicit"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-unused-vars": "error",
|
||||
"arrow-parens": [
|
||||
"off",
|
||||
"always"
|
||||
],
|
||||
"id-blacklist": "error",
|
||||
"import/order": "off",
|
||||
"no-bitwise": "off",
|
||||
"space-before-function-paren": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.html"
|
||||
],
|
||||
"extends": [
|
||||
"plugin:@angular-eslint/template/recommended"
|
||||
],
|
||||
"rules": {
|
||||
"@angular-eslint/template/accessibility-alt-text": 2,
|
||||
"@angular-eslint/template/accessibility-elements-content": 2,
|
||||
"@angular-eslint/template/accessibility-label-for": 2,
|
||||
"@angular-eslint/template/no-positive-tabindex": 2,
|
||||
"@angular-eslint/template/accessibility-table-scope": 2,
|
||||
"@angular-eslint/template/accessibility-valid-aria": 2,
|
||||
"@angular-eslint/template/click-events-have-key-events": 2,
|
||||
"@angular-eslint/template/mouse-events-have-key-events": 2,
|
||||
"@angular-eslint/template/no-autofocus": 2,
|
||||
"@angular-eslint/template/no-distracting-elements": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user