eslint-plugin-criteo
Version:
An opinionated collection of ESLint shared configs and rules used by Criteo.
20 lines (18 loc) • 712 B
JavaScript
import pluginAngular from 'angular-eslint';
import { buildConfig } from '../utils.js';
export const recommendedAngularTemplate = (plugins) =>
buildConfig([
pluginAngular.configs.templateRecommended,
{
plugins,
rules: {
'@angular-eslint/template/alt-text': 'error',
'@angular-eslint/template/elements-content': 'error',
'@angular-eslint/template/label-has-associated-control': 'error',
'@angular-eslint/template/no-duplicate-attributes': 'error',
'@angular-eslint/template/no-positive-tabindex': 'error',
'@angular-eslint/template/use-track-by-function': 'error',
'@angular-eslint/template/valid-aria': 'error',
},
},
]);