eslint-plugin-ember-template-lint 0.17.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-teplate-lint/config').registerPlugin('ember-template-lint-plugin-prettier');
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-teplate-lint/config').registerPlugin('ember-template-lint-plugin-prettier');
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 = {
@@ -1,4 +1,4 @@
1
- const info = require('../ember-teplate-lint/info');
1
+ const info = require('../ember-template-lint/info');
2
2
  const base = require('./base');
3
3
 
4
4
  const configs = {};
@@ -1,7 +1,7 @@
1
1
  const synckit = require('synckit');
2
2
  const syncFn = synckit.createSyncFn(require.resolve('./worker'));
3
3
  const { runTemplateLint } = require('../rules/lint');
4
- const { registerRule, templateLintConfig } = require('../ember-teplate-lint/config');
4
+ const { registerRule, templateLintConfig } = require('../ember-template-lint/config');
5
5
 
6
6
  const lintWithEslintConfigs = syncFn({ config: templateLintConfig });
7
7
  const lintConfigs = syncFn();
@@ -93,9 +93,12 @@ Object.values(configs).forEach((config) => {
93
93
 
94
94
  const configuredRules = {};
95
95
  Object.entries(lintConfigs.configuredRules).forEach(([name, conf]) => {
96
- configuredRules['ember-template-lint/' + name] = conf.config && [conf.severity];
97
- if (typeof conf.config !== 'boolean') {
98
- configuredRules['ember-template-lint/' + name].push(conf.config);
96
+ if (conf.severity) {
97
+ configuredRules['ember-template-lint/' + name] = configuredRules['ember-template-lint/' + name] || [];
98
+ configuredRules['ember-template-lint/' + name].push(conf.severity);
99
+ if (typeof conf.config !== 'boolean') {
100
+ configuredRules['ember-template-lint/' + name].push(conf.config);
101
+ }
99
102
  }
100
103
  });
101
104
 
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-teplate-lint/info');
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-teplate-lint/config');
4
+ const { templateLintConfig } = require('../ember-template-lint/config');
5
5
 
6
6
  function runTemplateLint(node, context) {
7
7
  const sourceCode = context.getSourceCode();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-ember-template-lint",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Provide linting for ember template",
5
5
  "keywords": [
6
6
  "eslint",