eslint-config-decent 2.6.0-beta2 → 2.6.0
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 +6 -4
- package/dist/index.mjs +6 -4
- package/package.json +1 -1
- package/src/index.ts +6 -4
package/dist/index.cjs
CHANGED
|
@@ -942,12 +942,14 @@ function tsEslintConfig(options) {
|
|
|
942
942
|
files: ["**/*.js", "**/*.cjs", "**/*.mjs"],
|
|
943
943
|
extends: [tsEslint__default.configs.disableTypeChecked]
|
|
944
944
|
},
|
|
945
|
-
prettier__default,
|
|
946
945
|
{
|
|
947
|
-
|
|
948
|
-
files: ["**/*.ts", "**/*.js", "**/*.cjs", "**/*.mjs", "**/*.tsx"],
|
|
946
|
+
...prettier__default,
|
|
949
947
|
rules: {
|
|
950
|
-
|
|
948
|
+
...prettier__default.rules,
|
|
949
|
+
curly: ["error", "all"],
|
|
950
|
+
"prettier/prettier": "error",
|
|
951
|
+
"arrow-body-style": "off",
|
|
952
|
+
"prefer-arrow-callback": "off"
|
|
951
953
|
}
|
|
952
954
|
}
|
|
953
955
|
];
|
package/dist/index.mjs
CHANGED
|
@@ -919,12 +919,14 @@ function tsEslintConfig(options) {
|
|
|
919
919
|
files: ["**/*.js", "**/*.cjs", "**/*.mjs"],
|
|
920
920
|
extends: [tsEslint.configs.disableTypeChecked]
|
|
921
921
|
},
|
|
922
|
-
prettier,
|
|
923
922
|
{
|
|
924
|
-
|
|
925
|
-
files: ["**/*.ts", "**/*.js", "**/*.cjs", "**/*.mjs", "**/*.tsx"],
|
|
923
|
+
...prettier,
|
|
926
924
|
rules: {
|
|
927
|
-
|
|
925
|
+
...prettier.rules,
|
|
926
|
+
curly: ["error", "all"],
|
|
927
|
+
"prettier/prettier": "error",
|
|
928
|
+
"arrow-body-style": "off",
|
|
929
|
+
"prefer-arrow-callback": "off"
|
|
928
930
|
}
|
|
929
931
|
}
|
|
930
932
|
];
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -216,12 +216,14 @@ export function tsEslintConfig(options?: DefaultConfigOptions): ConfigWithExtend
|
|
|
216
216
|
files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
|
|
217
217
|
extends: [tsEslint.configs.disableTypeChecked],
|
|
218
218
|
},
|
|
219
|
-
prettier,
|
|
220
219
|
{
|
|
221
|
-
|
|
222
|
-
files: ['**/*.ts', '**/*.js', '**/*.cjs', '**/*.mjs', '**/*.tsx'],
|
|
220
|
+
...prettier,
|
|
223
221
|
rules: {
|
|
224
|
-
|
|
222
|
+
...prettier.rules,
|
|
223
|
+
curly: ['error', 'all'],
|
|
224
|
+
'prettier/prettier': 'error',
|
|
225
|
+
'arrow-body-style': 'off',
|
|
226
|
+
'prefer-arrow-callback': 'off',
|
|
225
227
|
},
|
|
226
228
|
},
|
|
227
229
|
];
|