From b489827f58eed7827ff4b487a118595b2d5f8e8f Mon Sep 17 00:00:00 2001 From: Alex LaFroscia Date: Thu, 7 Nov 2019 15:42:25 -0500 Subject: [PATCH] feat: add `base` configuration --- README.md | 7 ++++--- index.js | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 62319f9..011e7d3 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,10 @@ This is a collection of custom [`ember-template-lint`](https://github.com/ember- The following sets of rules are available for your `ember-template-lint` configuration to extend from: -| Name | Description | -| :--------------------- | :---------------------------------------------------- | -| `avoid-possible-typos` | Rules meant to catch possible typos in your templates | +| Name | Description | +| :--------------------- | :--------------------------------------------------------- | +| `avoid-possible-typos` | Rules meant to catch possible typos in your templates | +| `base` | The base set of rules used across all Movable Ink projects | ## Usage diff --git a/index.js b/index.js index 66ac593..6ec4ad5 100644 --- a/index.js +++ b/index.js @@ -12,6 +12,20 @@ module.exports = { rules: { 'no-expression-like-strings': true } + }, + + base: { + extends: [ + 'recommended', + '@movable/template-lint-plugin:avoid-possible-typos' + ], + rules: { + // Overrides to built-in "recommended" rules + 'no-inline-styles': { + allowDynamicStyles: true + }, + quotes: false + } } } };