Skip to content

Commit

Permalink
chore(lint): use ember-template-lint-plugin-prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Oct 23, 2023
1 parent 2b835b7 commit af1371a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ember/.template-lintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
'use strict';

module.exports = {
extends: 'recommended',
extends: ['recommended', 'ember-template-lint-plugin-prettier:recommended'],
plugins: ['ember-template-lint-plugin-prettier'],
rules: {
'require-input-label': false,
'no-obsolete-elements': false,
},
};
3 changes: 2 additions & 1 deletion ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"ember-simple-auth-oidc": "^5.1.0",
"ember-source": "^5.1.1",
"ember-template-lint": "^5.11.0",
"ember-template-lint-plugin-prettier": "^5.0.0",
"ember-toggle": "^9.0.3",
"ember-truth-helpers": "^3.1.1",
"ember-uikit": "^8.0.0",
Expand Down Expand Up @@ -108,4 +109,4 @@
"resolutions": {
"ember-simple-auth": "^6.0.0-rc.1"
}
}
}
13 changes: 13 additions & 0 deletions ember/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2766,6 +2766,11 @@
"@pnpm/error" "5.0.2"
find-up "^5.0.0"

"@prettier/sync@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@prettier/sync/-/sync-0.2.1.tgz#00f628a394247cc18535b3cce0b9756b352a09e0"
integrity sha512-7ls1R6//+GPYD9vof1XaL5psViv83CwpdwlS8oUkWldYgbPhzZ3WgxIQMWqGyBmWPmoBfQg8C7jj7KI/ZuDHhQ==

"@simple-dom/document@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@simple-dom/document/-/document-1.4.0.tgz#af60855f957f284d436983798ef1006cca1a1678"
Expand Down Expand Up @@ -7653,6 +7658,14 @@ ember-template-imports@^3.4.2:
string.prototype.matchall "^4.0.6"
validate-peer-dependencies "^1.1.0"

ember-template-lint-plugin-prettier@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/ember-template-lint-plugin-prettier/-/ember-template-lint-plugin-prettier-5.0.0.tgz#1a2c8c87fee54347997c20017f7842b052a78f54"
integrity sha512-aXUYM4yuIdPZ80+AsAU8QBwGSJJ/aAkRsNcQ5vI5HmXiBjzHlDc/ZhmP6iVcYuCmoA/3iKcssMAYwIDbuby4pg==
dependencies:
"@prettier/sync" "^0.2.1"
prettier-linter-helpers "^1.0.0"

ember-template-lint@^5.11.0:
version "5.11.0"
resolved "https://registry.yarnpkg.com/ember-template-lint/-/ember-template-lint-5.11.0.tgz#539ed054a9040066fd2ad2a81ffb391e8b96ce71"
Expand Down

0 comments on commit af1371a

Please sign in to comment.