@discourse/lint-configs 2.2.1 → 2.2.3
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/eslint.mjs +9 -4
- package/package.json +10 -10
package/eslint.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { createConfigItem } from "@babel/core";
|
|
1
2
|
import BabelParser from "@babel/eslint-parser";
|
|
3
|
+
import PluginProposalDecorators from "@babel/plugin-proposal-decorators";
|
|
2
4
|
import js from "@eslint/js";
|
|
3
5
|
import stylisticJs from "@stylistic/eslint-plugin-js";
|
|
4
6
|
import EmberESLintParser from "ember-eslint-parser";
|
|
@@ -31,7 +33,13 @@ export default [
|
|
|
31
33
|
parserOptions: {
|
|
32
34
|
requireConfigFile: false,
|
|
33
35
|
babelOptions: {
|
|
34
|
-
plugins: [
|
|
36
|
+
plugins: [
|
|
37
|
+
createConfigItem([
|
|
38
|
+
PluginProposalDecorators,
|
|
39
|
+
{ legacy: true },
|
|
40
|
+
"@babel/plugin-proposal-decorators",
|
|
41
|
+
]),
|
|
42
|
+
],
|
|
35
43
|
},
|
|
36
44
|
},
|
|
37
45
|
|
|
@@ -193,13 +201,10 @@ export default [
|
|
|
193
201
|
"ember/route-path-style": "off",
|
|
194
202
|
"ember/routes-segments-snake-case": "off",
|
|
195
203
|
"ember/no-replace-test-comments": "error",
|
|
196
|
-
"qunit/no-assert-equal-boolean": "off",
|
|
197
204
|
"qunit/no-assert-equal": "off",
|
|
198
205
|
"qunit/no-conditional-assertions": "off",
|
|
199
206
|
"qunit/no-identical-names": "off",
|
|
200
207
|
"qunit/no-loose-assertions": "off",
|
|
201
|
-
"qunit/no-negated-ok": "off",
|
|
202
|
-
"qunit/no-ok-equality": "off",
|
|
203
208
|
"sort-class-members/sort-class-members": [
|
|
204
209
|
"error",
|
|
205
210
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discourse/lint-configs",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "Shareable lint configs for Discourse core, plugins, and themes",
|
|
5
5
|
"author": "Discourse",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,25 +29,25 @@
|
|
|
29
29
|
"test": "cd ../test && node test.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@babel/core": "^7.
|
|
33
|
-
"@babel/eslint-parser": "^7.25.
|
|
34
|
-
"@babel/plugin-proposal-decorators": "^7.25.
|
|
32
|
+
"@babel/core": "^7.26.0",
|
|
33
|
+
"@babel/eslint-parser": "^7.25.9",
|
|
34
|
+
"@babel/plugin-proposal-decorators": "^7.25.9",
|
|
35
35
|
"@stylistic/eslint-plugin-js": "^2.11.0",
|
|
36
36
|
"ember-template-lint": "^6.0.0",
|
|
37
|
-
"eslint": "^9.
|
|
37
|
+
"eslint": "^9.15.0",
|
|
38
38
|
"eslint-plugin-decorator-position": "^6.0.0",
|
|
39
|
-
"eslint-plugin-ember": "^12.3.
|
|
39
|
+
"eslint-plugin-ember": "^12.3.3",
|
|
40
40
|
"eslint-plugin-qunit": "^8.1.2",
|
|
41
41
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
42
|
-
"eslint-plugin-sort-class-members": "^1.
|
|
43
|
-
"globals": "^15.
|
|
42
|
+
"eslint-plugin-sort-class-members": "^1.21.0",
|
|
43
|
+
"globals": "^15.12.0",
|
|
44
44
|
"prettier": "^2.8.8",
|
|
45
45
|
"prettier-plugin-ember-template-tag": "^0.3.2",
|
|
46
|
-
"typescript": "^5.
|
|
46
|
+
"typescript": "^5.7.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"ember-template-lint": "6.0.0",
|
|
50
|
-
"eslint": "^9.
|
|
50
|
+
"eslint": "^9.15.0",
|
|
51
51
|
"prettier": "2.8.8"
|
|
52
52
|
}
|
|
53
53
|
}
|