Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Nov 27, 2023
1 parent 88f2a48 commit 0840653
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
3 changes: 3 additions & 0 deletions docs/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@

# ember-try
/.node_modules.ember-try/

# Snippets
/app/templates/snippets/
10 changes: 10 additions & 0 deletions docs/.template-lintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,14 @@

module.exports = {
extends: 'recommended',
rules: {
'attribute-indentation': { 'open-invocation-max-len': 110 },
'no-inline-styles': false,
'no-partial': false,
'no-positive-tabindex': false,
'no-quoteless-attributes': false,
'require-input-label': false,
'no-unbalanced-curlies': false,
'no-duplicate-landmark-elements': false,
},
};
4 changes: 2 additions & 2 deletions docs/app/templates/snippets/test-helpers-2-js.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
clickTrigger();
assert.equal(
$('.ember-basic-dropdown-content').length,
document.querySelectorAll('.ember-basic-dropdown-content').length,
1,
'The content is shown now'
'The content is shown now',
);
4 changes: 2 additions & 2 deletions docs/app/templates/snippets/test-helpers-3-js.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tapTrigger();
assert.equal(
$('.ember-basic-dropdown-content').length,
document.querySelectorAll('.ember-basic-dropdown-content').length,
1,
'The content is shown now'
'The content is shown now',
);
5 changes: 1 addition & 4 deletions docs/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ const crawl = require('prember-crawler');
module.exports = function (defaults) {
let app = new EmberApp(defaults, {
'ember-cli-babel': { enableTypeScriptTransform: true },
snippetPaths: [
'app/components/snippets',
'app/templates/snippets',
],
snippetPaths: ['app/components/snippets', 'app/templates/snippets'],
'ember-prism': {
components: ['scss', 'javascript'], //needs to be an array, or undefined.
},
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"build": "ember build --environment=production",
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
"lint:css": "stylelint \"**/*.css\"",
"lint:css": "stylelint \"**/*.css\" --allow-empty-input",
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
"lint:hbs": "ember-template-lint .",
Expand Down
2 changes: 1 addition & 1 deletion docs/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import '@glint/environment-ember-loose';
import '@glint/environment-ember-loose';

0 comments on commit 0840653

Please sign in to comment.