@ijlee2-frontend-configs/ember-template-lint 1.1.0 → 2.0.1
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 +4 -10
- package/index.cjs +1 -17
- package/package.json +5 -15
package/README.md
CHANGED
|
@@ -13,7 +13,6 @@ Install these packages as development dependencies:
|
|
|
13
13
|
|
|
14
14
|
- `@ijlee2-frontend-configs/ember-template-lint`
|
|
15
15
|
- `ember-template-lint`
|
|
16
|
-
- `prettier`
|
|
17
16
|
|
|
18
17
|
Afterwards, create the file `.template-lintrc.cjs`.
|
|
19
18
|
|
|
@@ -35,15 +34,10 @@ const baseConfiguration = require('@ijlee2-frontend-configs/ember-template-lint'
|
|
|
35
34
|
|
|
36
35
|
module.exports = {
|
|
37
36
|
...baseConfiguration,
|
|
38
|
-
|
|
39
|
-
...baseConfiguration.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
rules: {
|
|
43
|
-
prettier: true,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
],
|
|
37
|
+
rules: {
|
|
38
|
+
...baseConfiguration.rules,
|
|
39
|
+
'no-bare-strings': true,
|
|
40
|
+
},
|
|
47
41
|
};
|
|
48
42
|
```
|
|
49
43
|
|
package/index.cjs
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
extends: ['recommended', 'ember-template-lint-plugin-prettier:recommended'],
|
|
4
|
+
extends: ['recommended'],
|
|
6
5
|
rules: {
|
|
7
6
|
'sort-invocations': true,
|
|
8
7
|
},
|
|
9
|
-
overrides: [
|
|
10
|
-
{
|
|
11
|
-
files: ['**/*.{gjs,gts}'],
|
|
12
|
-
rules: {
|
|
13
|
-
'no-implicit-this': 'off',
|
|
14
|
-
prettier: 'off',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
files: ['tests/**/*-test.{js,ts}'],
|
|
19
|
-
rules: {
|
|
20
|
-
prettier: 'off',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ijlee2-frontend-configs/ember-template-lint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Configuration for ember-template-lint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,33 +9,23 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"main": "index.cjs",
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"ember-template-lint-plugin-prettier": "^5.0.0"
|
|
14
|
-
},
|
|
15
12
|
"devDependencies": {
|
|
16
|
-
"concurrently": "^9.1.2",
|
|
17
13
|
"prettier": "^3.5.3",
|
|
18
|
-
"@ijlee2-frontend-configs/prettier": "
|
|
14
|
+
"@ijlee2-frontend-configs/prettier": "2.0.0"
|
|
19
15
|
},
|
|
20
16
|
"peerDependencies": {
|
|
21
|
-
"ember-template-lint": "^7.7.0"
|
|
22
|
-
"prettier": "^3.0.0"
|
|
17
|
+
"ember-template-lint": "^7.7.0"
|
|
23
18
|
},
|
|
24
19
|
"peerDependenciesMeta": {
|
|
25
20
|
"ember-template-lint": {
|
|
26
21
|
"optional": false
|
|
27
|
-
},
|
|
28
|
-
"prettier": {
|
|
29
|
-
"optional": false
|
|
30
22
|
}
|
|
31
23
|
},
|
|
32
24
|
"engines": {
|
|
33
25
|
"node": "20.* || >= 22"
|
|
34
26
|
},
|
|
35
27
|
"scripts": {
|
|
36
|
-
"lint": "
|
|
37
|
-
"lint:fix": "
|
|
38
|
-
"lint:js": "prettier \"**/*.{cjs,mjs}\" --check",
|
|
39
|
-
"lint:js:fix": "prettier \"**/*.{cjs,mjs}\" --write"
|
|
28
|
+
"lint": "prettier \"**/*.{cjs,mjs}\" --cache --check",
|
|
29
|
+
"lint:fix": "prettier \"**/*.{cjs,mjs}\" --cache --write"
|
|
40
30
|
}
|
|
41
31
|
}
|