@discourse/lint-configs 2.35.1 → 2.35.2
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/.prettierrc.cjs +4 -10
- package/eslint.mjs +6 -9
- package/package.json +6 -6
package/.prettierrc.cjs
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const templateTagPluginPath =
|
|
2
|
+
require.resolve("prettier-plugin-ember-template-tag");
|
|
2
3
|
|
|
3
4
|
module.exports = {
|
|
4
|
-
plugins: [
|
|
5
|
+
plugins: [templateTagPluginPath],
|
|
5
6
|
trailingComma: "es5",
|
|
6
7
|
overrides: [
|
|
7
8
|
{
|
|
8
|
-
files: "*.gjs",
|
|
9
|
-
options: {
|
|
10
|
-
parser: "ember-template-tag",
|
|
11
|
-
templateExportDefault: true,
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
files: "*.gts",
|
|
9
|
+
files: ["*.gjs", "*.gts"],
|
|
16
10
|
options: {
|
|
17
11
|
parser: "ember-template-tag",
|
|
18
12
|
templateExportDefault: true,
|
package/eslint.mjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createConfigItem } from "@babel/core";
|
|
2
1
|
import BabelParser from "@babel/eslint-parser";
|
|
3
|
-
import PluginProposalDecorators from "@babel/plugin-proposal-decorators";
|
|
4
2
|
import js from "@eslint/js";
|
|
5
3
|
import EmberESLintParser from "ember-eslint-parser";
|
|
6
4
|
import DecoratorPosition from "eslint-plugin-decorator-position";
|
|
@@ -34,6 +32,10 @@ import templateTagNoSelfThis from "./eslint-rules/template-tag-no-self-this.mjs"
|
|
|
34
32
|
import themeImports from "./eslint-rules/theme-imports.mjs";
|
|
35
33
|
import truthHelpersImports from "./eslint-rules/truth-helpers-imports.mjs";
|
|
36
34
|
|
|
35
|
+
let decoratorsPluginPath = import.meta
|
|
36
|
+
.resolve("@babel/plugin-proposal-decorators")
|
|
37
|
+
.replace(/^file:\/\//, "");
|
|
38
|
+
|
|
37
39
|
// Copied from "ember-template-imports/lib/utils"
|
|
38
40
|
const TEMPLATE_TAG_PLACEHOLDER = "__GLIMMER_TEMPLATE";
|
|
39
41
|
|
|
@@ -50,15 +52,10 @@ export default [
|
|
|
50
52
|
sourceType: "module",
|
|
51
53
|
parser: BabelParser,
|
|
52
54
|
parserOptions: {
|
|
55
|
+
useBabel: true,
|
|
53
56
|
requireConfigFile: false,
|
|
54
57
|
babelOptions: {
|
|
55
|
-
plugins: [
|
|
56
|
-
createConfigItem([
|
|
57
|
-
PluginProposalDecorators,
|
|
58
|
-
{ legacy: true },
|
|
59
|
-
"@babel/plugin-proposal-decorators",
|
|
60
|
-
]),
|
|
61
|
-
],
|
|
58
|
+
plugins: [[decoratorsPluginPath, { legacy: true }]],
|
|
62
59
|
},
|
|
63
60
|
},
|
|
64
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discourse/lint-configs",
|
|
3
|
-
"version": "2.35.
|
|
3
|
+
"version": "2.35.2",
|
|
4
4
|
"description": "Shareable lint configs for Discourse core, plugins, and themes",
|
|
5
5
|
"author": "Discourse",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
42
42
|
"eslint-plugin-sort-class-members": "^1.21.0",
|
|
43
43
|
"globals": "^16.5.0",
|
|
44
|
-
"prettier": "^3.7.
|
|
45
|
-
"prettier-plugin-ember-template-tag": "^2.1.
|
|
46
|
-
"stylelint": "^16.26.
|
|
44
|
+
"prettier": "^3.7.3",
|
|
45
|
+
"prettier-plugin-ember-template-tag": "^2.1.2",
|
|
46
|
+
"stylelint": "^16.26.1",
|
|
47
47
|
"stylelint-config-standard": "^39.0.1",
|
|
48
48
|
"stylelint-config-standard-scss": "^16.0.0",
|
|
49
49
|
"stylelint-scss": "^6.12.1",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"ember-template-lint": "7.9.3",
|
|
54
54
|
"eslint": "9.39.1",
|
|
55
|
-
"prettier": "3.7.
|
|
56
|
-
"stylelint": "16.26.
|
|
55
|
+
"prettier": "3.7.3",
|
|
56
|
+
"stylelint": "16.26.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"lint": "eslint --no-error-on-unmatched-pattern \"**/*.{cjs,mjs,js}\" && pnpm prettier --check \"**/*.{cjs,mjs,js}\"",
|