eslint-config-decent 2.6.0-beta1 → 2.6.0-beta3
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.cjs +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +1 -1
- package/src/index.ts +13 -1
package/dist/index.cjs
CHANGED
|
@@ -942,7 +942,19 @@ function tsEslintConfig(options) {
|
|
|
942
942
|
files: ["**/*.js", "**/*.cjs", "**/*.mjs"],
|
|
943
943
|
extends: [tsEslint__default.configs.disableTypeChecked]
|
|
944
944
|
},
|
|
945
|
-
|
|
945
|
+
{
|
|
946
|
+
name: "eslint-config-decent/prettier",
|
|
947
|
+
plugins: {
|
|
948
|
+
...prettier__default.plugins
|
|
949
|
+
},
|
|
950
|
+
rules: {
|
|
951
|
+
...prettier__default.rules,
|
|
952
|
+
curly: ["error", "all"],
|
|
953
|
+
"prettier/prettier": "error",
|
|
954
|
+
"arrow-body-style": "off",
|
|
955
|
+
"prefer-arrow-callback": "off"
|
|
956
|
+
}
|
|
957
|
+
}
|
|
946
958
|
];
|
|
947
959
|
}
|
|
948
960
|
function config(options) {
|
package/dist/index.mjs
CHANGED
|
@@ -919,7 +919,19 @@ function tsEslintConfig(options) {
|
|
|
919
919
|
files: ["**/*.js", "**/*.cjs", "**/*.mjs"],
|
|
920
920
|
extends: [tsEslint.configs.disableTypeChecked]
|
|
921
921
|
},
|
|
922
|
-
|
|
922
|
+
{
|
|
923
|
+
name: "eslint-config-decent/prettier",
|
|
924
|
+
plugins: {
|
|
925
|
+
...prettier.plugins
|
|
926
|
+
},
|
|
927
|
+
rules: {
|
|
928
|
+
...prettier.rules,
|
|
929
|
+
curly: ["error", "all"],
|
|
930
|
+
"prettier/prettier": "error",
|
|
931
|
+
"arrow-body-style": "off",
|
|
932
|
+
"prefer-arrow-callback": "off"
|
|
933
|
+
}
|
|
934
|
+
}
|
|
923
935
|
];
|
|
924
936
|
}
|
|
925
937
|
function config(options) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -216,7 +216,19 @@ export function tsEslintConfig(options?: DefaultConfigOptions): ConfigWithExtend
|
|
|
216
216
|
files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
|
|
217
217
|
extends: [tsEslint.configs.disableTypeChecked],
|
|
218
218
|
},
|
|
219
|
-
|
|
219
|
+
{
|
|
220
|
+
name: 'eslint-config-decent/prettier',
|
|
221
|
+
plugins: {
|
|
222
|
+
...prettier.plugins,
|
|
223
|
+
},
|
|
224
|
+
rules: {
|
|
225
|
+
...prettier.rules,
|
|
226
|
+
curly: ['error', 'all'],
|
|
227
|
+
'prettier/prettier': 'error',
|
|
228
|
+
'arrow-body-style': 'off',
|
|
229
|
+
'prefer-arrow-callback': 'off',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
220
232
|
];
|
|
221
233
|
}
|
|
222
234
|
|