@10stars/config 13.3.2 → 13.3.4

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.
@@ -38,7 +38,7 @@ const addPluginImport = () =>
38
38
  [
39
39
  importPlugin.flatConfigs.recommended,
40
40
  {
41
- files: ["**/*.{ts,tsx}"], // https://github.com/import-js/eslint-plugin-import/tree/4f145a2c64af4931f4bf3ae951c8b719b544718f?tab=readme-ov-file#config---flat-with-config-in-typescript-eslint
41
+ files: [`**/*.{ts,tsx}`], // https://github.com/import-js/eslint-plugin-import/tree/4f145a2c64af4931f4bf3ae951c8b719b544718f?tab=readme-ov-file#config---flat-with-config-in-typescript-eslint
42
42
  extends: [
43
43
  importPlugin.flatConfigs.recommended,
44
44
  importPlugin.flatConfigs.typescript,
@@ -78,7 +78,7 @@ const addPluginSimpleImportSort = () =>
78
78
  const addPluginStylistic = () =>
79
79
  ({
80
80
  plugins: {
81
- stylistic,
81
+ "@stylistic": stylistic,
82
82
  },
83
83
  rules: {
84
84
  "@stylistic/quotes": [1, `backtick`],
@@ -93,8 +93,17 @@ export default tseslint.config(
93
93
  addPluginNoRelativeImportPaths(),
94
94
  ...addPluginImport(),
95
95
  addPluginSimpleImportSort(),
96
- addPluginStylistic(),
97
- eslintConfigPrettier, // must be last
96
+ eslintConfigPrettier, // must be one before last
97
+ addPluginStylistic(), // must be after eslintConfigPrettier
98
+ /** @todo switch to recommended stylistic + customization */
99
+ // stylistic.configs.customize({
100
+ // // the following options are the default values
101
+ // indent: 2,
102
+ // quotes: 'single',
103
+ // semi: false,
104
+ // jsx: true,
105
+ // // ...
106
+ // }),
98
107
 
99
108
  {
100
109
  ignores: [`**/node_modules`, `**/.git`, `**/dist`, `**/tmp`],
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@10stars/config",
7
- "version": "13.3.2",
7
+ "version": "13.3.4",
8
8
  "author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
9
9
  "license": "MIT",
10
10
  "bin": {
@@ -45,7 +45,7 @@
45
45
  "husky": "^9.0.0",
46
46
  "prettier": "^3.0.0",
47
47
  "type-fest": "^4.0.0",
48
- "typescript": "~5.7.2",
48
+ "typescript": "~5.8.2",
49
49
  "typescript-eslint": "^8.0.0"
50
50
  }
51
51
  }