forked from HealthCatalyst/Fabric.Cashmere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
29 lines (29 loc) · 820 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
parser: '@typescript-eslint/parser',
plugins: ['@angular-eslint', '@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
ignorePatterns: ['node_modules/**', 'dist/**', 'tools/**', 'scripts/**', '**/*.generated.ts'],
rules: {
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'hc',
style: 'kebab-case'
}
],
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'hc',
style: 'camelCase'
}
]
}
};