eslint-plugin-ember-template-lint 0.16.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/lib/index.js +1 -1
- package/lib/rules/lint.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -42,7 +42,7 @@ to just use the `.template-lintrc.js` config file just use
|
|
42
42
|
|
43
43
|
to load ember-template-lint plugins in eslinrc you need to manually register them:
|
44
44
|
```js
|
45
|
-
require('eslint-plugin-ember-template-lint/lib/ember-
|
45
|
+
require('eslint-plugin-ember-template-lint/lib/ember-template-lint/config').registerPlugin('ember-template-lint-plugin-prettier');
|
46
46
|
```
|
47
47
|
|
48
48
|
## IMPORTANT
|
@@ -53,7 +53,7 @@ for typescript parser you can extend its base config, then it will work correctl
|
|
53
53
|
```js
|
54
54
|
// .eslintrc.js
|
55
55
|
// optional:
|
56
|
-
require('eslint-plugin-ember-template-lint/lib/ember-
|
56
|
+
require('eslint-plugin-ember-template-lint/lib/ember-template-lint/config').registerPlugin('ember-template-lint-plugin-prettier');
|
57
57
|
|
58
58
|
|
59
59
|
module.exports = {
|
package/lib/index.js
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
const configs = require('./config');
|
12
12
|
const base = require('./config/base');
|
13
|
-
const templateRules = require('./ember-
|
13
|
+
const templateRules = require('./ember-template-lint/info');
|
14
14
|
const processor = require('./processor');
|
15
15
|
|
16
16
|
//------------------------------------------------------------------------------
|
package/lib/rules/lint.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
const synckit = require('synckit');
|
3
3
|
const DocumentLines = require('../utils/document');
|
4
|
-
const { templateLintConfig } = require('../ember-
|
4
|
+
const { templateLintConfig } = require('../ember-template-lint/config');
|
5
5
|
|
6
6
|
function runTemplateLint(node, context) {
|
7
7
|
const sourceCode = context.getSourceCode();
|