Skip to content

Commit a86e4b3

Browse files
Merge pull request #2420 from ember-cli/nvp/add-strict-configs
Add strict-gjs and strict-gts configs so that users could opt in to these new rules from ember-template-lint before we do our next major
2 parents dbaf144 + da12e60 commit a86e4b3

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ rules in templates can be disabled with eslint directives with mustache or html
160160
|| `recommended` |
161161
| ![gjs logo](/docs/svgs/gjs.svg) | `recommended-gjs` |
162162
| ![gts logo](/docs/svgs/gts.svg) | `recommended-gts` |
163+
| | `strict-gjs` |
164+
| | `strict-gts` |
163165

164166
<!-- end auto-generated configs list -->
165167

lib/config-legacy/strict-gjs.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const base = require('./base');
2+
3+
module.exports = {
4+
...base,
5+
};

lib/config-legacy/strict-gts.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const base = require('./base');
2+
3+
module.exports = {
4+
...base,
5+
};

lib/config/strict-gjs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const base = require('./base');
2+
3+
module.exports = [...base];

lib/config/strict-gts.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const base = require('./base');
2+
3+
module.exports = [...base];

tests/plugin-exports.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const base = require('../lib/config-legacy/base');
66
const recommended = require('../lib/config-legacy/recommended');
77
const recommendedGjs = require('../lib/config-legacy/recommended-gjs');
88
const recommendedGts = require('../lib/config-legacy/recommended-gts');
9+
const strictGjs = require('../lib/config-legacy/strict-gjs');
10+
const strictGts = require('../lib/config-legacy/strict-gts');
911

1012
describe('plugin exports', () => {
1113
describe('utils', () => {
@@ -21,6 +23,8 @@ describe('plugin exports', () => {
2123
recommended,
2224
'recommended-gjs': recommendedGjs,
2325
'recommended-gts': recommendedGts,
26+
'strict-gjs': strictGjs,
27+
'strict-gts': strictGts,
2428
});
2529
});
2630
});

0 commit comments

Comments
 (0)