@moso/eslint-config 1.0.0 → 1.0.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/dist/index.js +14 -15
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -145,8 +145,8 @@ var disables = () => {
|
|
|
145
145
|
files: [`**/scripts/${GLOB_SRC}`],
|
|
146
146
|
name: "moso/disables/scripts",
|
|
147
147
|
rules: {
|
|
148
|
-
"
|
|
149
|
-
"
|
|
148
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
149
|
+
"no-console": "off"
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{
|
|
@@ -168,8 +168,8 @@ var disables = () => {
|
|
|
168
168
|
files: ["**/*.d.?([cm])ts"],
|
|
169
169
|
name: "moso/disables/dts",
|
|
170
170
|
rules: {
|
|
171
|
-
"eslint-comments/no-unlimited-disable": "off",
|
|
172
|
-
"import/no-duplicates": "off",
|
|
171
|
+
"@eslint-community/eslint-comments/no-unlimited-disable": "off",
|
|
172
|
+
"import-x/no-duplicates": "off",
|
|
173
173
|
"no-restricted-syntax": "off",
|
|
174
174
|
"unused-imports/no-unused-vars": "off"
|
|
175
175
|
}
|
|
@@ -185,8 +185,8 @@ var disables = () => {
|
|
|
185
185
|
files: [`**/*.config.${GLOB_SRC_EXT}`, `**/*.config.*.${GLOB_SRC_EXT}`],
|
|
186
186
|
name: "moso/disables/config-files",
|
|
187
187
|
rules: {
|
|
188
|
-
"
|
|
189
|
-
"
|
|
188
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
189
|
+
"no-console": "off"
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
];
|
|
@@ -230,7 +230,7 @@ var imports = async (options = {}) => {
|
|
|
230
230
|
"antfu/no-import-node-modules-by-path": "error",
|
|
231
231
|
"import-x/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
232
232
|
"import-x/first": "error",
|
|
233
|
-
"import-x/no-duplicates": "error",
|
|
233
|
+
"import-x/no-duplicates": ["error", { "prefer-inline": true }],
|
|
234
234
|
"import-x/no-mutable-exports": "error",
|
|
235
235
|
"import-x/no-named-default": "off",
|
|
236
236
|
"import-x/no-self-import": "error",
|
|
@@ -1130,7 +1130,8 @@ var stylistic = async (options = {}) => {
|
|
|
1130
1130
|
{
|
|
1131
1131
|
SwitchCase: 1,
|
|
1132
1132
|
VariableDeclarator: 1,
|
|
1133
|
-
outerIIFEBody: 1
|
|
1133
|
+
outerIIFEBody: 1,
|
|
1134
|
+
MemberExpression: "off"
|
|
1134
1135
|
}
|
|
1135
1136
|
],
|
|
1136
1137
|
"@stylistic/key-spacing": [
|
|
@@ -1237,7 +1238,7 @@ var test = async (options = {}) => {
|
|
|
1237
1238
|
...{
|
|
1238
1239
|
"no-unused-expressions": "off",
|
|
1239
1240
|
"node/prefer-global/process": "off",
|
|
1240
|
-
"typescript/explicit-function-return-type": "off"
|
|
1241
|
+
"@typescript-eslint/explicit-function-return-type": "off"
|
|
1241
1242
|
},
|
|
1242
1243
|
...overrides
|
|
1243
1244
|
}
|
|
@@ -1281,7 +1282,6 @@ var typescript = async (options = {}) => {
|
|
|
1281
1282
|
"@typescript-eslint/no-implied-eval": "error",
|
|
1282
1283
|
"@typescript-eslint/no-misused-promises": "error",
|
|
1283
1284
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
1284
|
-
"@typescript-eslint/no-parameter-properties": "off",
|
|
1285
1285
|
"@typescript-eslint/no-var-requires": "off",
|
|
1286
1286
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
1287
1287
|
"@typescript-eslint/no-unsafe-argument": "error",
|
|
@@ -1289,7 +1289,8 @@ var typescript = async (options = {}) => {
|
|
|
1289
1289
|
"@typescript-eslint/no-unsafe-call": "error",
|
|
1290
1290
|
"@typescript-eslint/no-unsafe-member-access": "error",
|
|
1291
1291
|
"@typescript-eslint/no-unsafe-return": "error",
|
|
1292
|
-
"@typescript-eslint/only-throw-
|
|
1292
|
+
"@typescript-eslint/only-throw-error": "error",
|
|
1293
|
+
"@typescript-eslint/parameter-properties": "off",
|
|
1293
1294
|
"@typescript-eslint/restrict-plus-operands": "error",
|
|
1294
1295
|
"@typescript-eslint/restrict-template-expressions": "error",
|
|
1295
1296
|
"@typescript-eslint/unbound-method": "error"
|
|
@@ -1426,8 +1427,7 @@ var typescript = async (options = {}) => {
|
|
|
1426
1427
|
files: ["**/*.js", "**/*.cjs"],
|
|
1427
1428
|
name: "moso/typescript/disables/cjs",
|
|
1428
1429
|
rules: {
|
|
1429
|
-
"@
|
|
1430
|
-
"@stylistic/no-var-requires": "off"
|
|
1430
|
+
"@typescript-eslint/no-require-imports": "off"
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
];
|
|
@@ -1543,7 +1543,6 @@ var vue = async (options = {}) => {
|
|
|
1543
1543
|
}],
|
|
1544
1544
|
"vue/component-name-in-template-casing": ["error", "PascalCase"],
|
|
1545
1545
|
"vue/component-options-name-casing": ["error", "PascalCase"],
|
|
1546
|
-
"vue/component-tags-order": "off",
|
|
1547
1546
|
"vue/custom-event-name-casing": ["error", "camelCase"],
|
|
1548
1547
|
"vue/define-macros-order": ["error", {
|
|
1549
1548
|
order: ["defineOptions", "defineProps", "defineEmits", "defineSlots"]
|
|
@@ -1810,7 +1809,7 @@ var moso = (options = {}, ...userConfigs) => {
|
|
|
1810
1809
|
if (isInEditor) {
|
|
1811
1810
|
composer = composer.disableRulesFix([
|
|
1812
1811
|
"unused-imports/no-unused-imports",
|
|
1813
|
-
"
|
|
1812
|
+
"no-only-tests/no-only-tests",
|
|
1814
1813
|
"prefer-const"
|
|
1815
1814
|
], {
|
|
1816
1815
|
builtinRules: () => import(["eslint", "use-at-your-own-risk"].join("/")).then((x) => x.builtinRules)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moso/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"packageManager": "bun@1.2.5",
|
|
6
6
|
"description": "moso's shared ESLint config",
|
|
7
7
|
"author": {
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"bumpp": "^10.1.0",
|
|
91
91
|
"eslint": "^9.22.0",
|
|
92
92
|
"eslint-typegen": "^2.1.0",
|
|
93
|
+
"jiti": "^2.4.2",
|
|
93
94
|
"lint-staged": "^15.5.0",
|
|
94
95
|
"simple-git-hooks": "^2.11.1",
|
|
95
96
|
"tsup": "^8.4.0",
|