eslint-config-decent 2.6.0-beta2 → 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 CHANGED
@@ -942,12 +942,17 @@ function tsEslintConfig(options) {
942
942
  files: ["**/*.js", "**/*.cjs", "**/*.mjs"],
943
943
  extends: [tsEslint__default.configs.disableTypeChecked]
944
944
  },
945
- prettier__default,
946
945
  {
947
- name: "eslint-config-decent/1tbs",
948
- files: ["**/*.ts", "**/*.js", "**/*.cjs", "**/*.mjs", "**/*.tsx"],
946
+ name: "eslint-config-decent/prettier",
947
+ plugins: {
948
+ ...prettier__default.plugins
949
+ },
949
950
  rules: {
950
- "@stylistic/brace-style": "error"
951
+ ...prettier__default.rules,
952
+ curly: ["error", "all"],
953
+ "prettier/prettier": "error",
954
+ "arrow-body-style": "off",
955
+ "prefer-arrow-callback": "off"
951
956
  }
952
957
  }
953
958
  ];
package/dist/index.mjs CHANGED
@@ -919,12 +919,17 @@ function tsEslintConfig(options) {
919
919
  files: ["**/*.js", "**/*.cjs", "**/*.mjs"],
920
920
  extends: [tsEslint.configs.disableTypeChecked]
921
921
  },
922
- prettier,
923
922
  {
924
- name: "eslint-config-decent/1tbs",
925
- files: ["**/*.ts", "**/*.js", "**/*.cjs", "**/*.mjs", "**/*.tsx"],
923
+ name: "eslint-config-decent/prettier",
924
+ plugins: {
925
+ ...prettier.plugins
926
+ },
926
927
  rules: {
927
- "@stylistic/brace-style": "error"
928
+ ...prettier.rules,
929
+ curly: ["error", "all"],
930
+ "prettier/prettier": "error",
931
+ "arrow-body-style": "off",
932
+ "prefer-arrow-callback": "off"
928
933
  }
929
934
  }
930
935
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "2.6.0-beta2",
3
+ "version": "2.6.0-beta3",
4
4
  "description": "A decent ESLint configuration",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
package/src/index.ts CHANGED
@@ -216,12 +216,17 @@ 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
- name: 'eslint-config-decent/1tbs',
222
- files: ['**/*.ts', '**/*.js', '**/*.cjs', '**/*.mjs', '**/*.tsx'],
220
+ name: 'eslint-config-decent/prettier',
221
+ plugins: {
222
+ ...prettier.plugins,
223
+ },
223
224
  rules: {
224
- '@stylistic/brace-style': 'error',
225
+ ...prettier.rules,
226
+ curly: ['error', 'all'],
227
+ 'prettier/prettier': 'error',
228
+ 'arrow-body-style': 'off',
229
+ 'prefer-arrow-callback': 'off',
225
230
  },
226
231
  },
227
232
  ];