ember-template-lint
Advanced tools
Comparing version 0.7.0-beta.3 to 0.7.0
Changelog | ||
========= | ||
## 0.7.0-beta.3 | ||
## 0.7.0 | ||
@@ -13,3 +13,3 @@ - Add support for user supplied rules and configuration. Please review [the documentation](https://github.com/rwjblue/ember-template-lint/blob/master/docs/plugins.md) for more details. | ||
- Add support for globs in `.template-lintrc.js`'s `ignore` option. | ||
- Add `unless-helper` rule which forbids using `{{unless` with an inverse (or from an inverse), and with complex helper invocations as the predicate. | ||
- Add `simple-unless` rule which forbids using `{{unless` with an inverse (or from an inverse), and with complex helper invocations as the predicate. | ||
@@ -33,3 +33,3 @@ ```hbs | ||
``` | ||
- Add `unless-helper` to the recommended configuration. | ||
- Add `simple-unless` to the recommended configuration. | ||
- Allow `<form onsubmit={{action 'foo'}}></form>` from the `invalid-interactive` rule. | ||
@@ -36,0 +36,0 @@ - Remove `deprecated-each-syntax` from `recommended` config. |
@@ -153,4 +153,10 @@ ## Plugin Support | ||
There are a number of helper functions exported by [`ember-template-lint/lib/helpers/ast-node-info.js`](../lib/helpers/ast-node-info.js) that can be used with AST nodes in your rule's visitor functions. | ||
There are a number of helper functions exported by [`ember-template-lint`](../lib/helpers/ast-node-info.js) that can be used with AST nodes in your rule's visitor handlers. | ||
You can access these helpers via: | ||
```js | ||
const helpers = require('ember-template-lint').ASTHelpers; | ||
``` | ||
* `function isConfigurationHtmlComment(node): boolean` | ||
@@ -157,0 +163,0 @@ |
@@ -17,5 +17,5 @@ 'use strict'; | ||
'deprecated-inline-view-helper': true, | ||
'unless-helper': false, | ||
'simple-unless': true, | ||
'unused-block-params': true | ||
} | ||
}; |
@@ -167,1 +167,2 @@ 'use strict'; | ||
module.exports.Rule = require('./rules/base'); | ||
module.exports.ASTHelpers = require('./helpers/ast-node-info'); |
@@ -20,4 +20,4 @@ 'use strict'; | ||
'style-concatenation': require('./lint-style-concatenation'), | ||
'unless-helper': require('./lint-unless-helper'), | ||
'simple-unless': require('./lint-simple-unless'), | ||
'unused-block-params': require('./lint-unused-block-params') | ||
}; |
{ | ||
"name": "ember-template-lint", | ||
"version": "0.7.0-beta.3", | ||
"version": "0.7.0", | ||
"description": "Lint your templates.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -493,3 +493,3 @@ # ember-template-lint | ||
#### unless-helper (default === false) | ||
#### simple-unless (default === false) | ||
@@ -496,0 +496,0 @@ This rule strongly advises against `{{unless}}` blocks used in conjunction with other |
@@ -437,4 +437,4 @@ 'use strict'; | ||
}); | ||
}); | ||
}); | ||
describe('Linter using plugins (inline plugins)', function() { | ||
@@ -441,0 +441,0 @@ let basePath = path.join(fixturePath, 'with-inline-plugins'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
312984
100
6577