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 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
- name: "eslint-config-decent/1tbs",
948
- files: ["**/*.ts", "**/*.js", "**/*.cjs", "**/*.mjs", "**/*.tsx"],
946
+ ...prettier__default,
949
947
  rules: {
950
- "@stylistic/brace-style": "error"
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
- name: "eslint-config-decent/1tbs",
925
- files: ["**/*.ts", "**/*.js", "**/*.cjs", "**/*.mjs", "**/*.tsx"],
923
+ ...prettier,
926
924
  rules: {
927
- "@stylistic/brace-style": "error"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "2.6.0-beta2",
3
+ "version": "2.6.0",
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,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
- name: 'eslint-config-decent/1tbs',
222
- files: ['**/*.ts', '**/*.js', '**/*.cjs', '**/*.mjs', '**/*.tsx'],
220
+ ...prettier,
223
221
  rules: {
224
- '@stylistic/brace-style': 'error',
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
  ];