@frontify/eslint-config-basic 1.0.1 → 1.0.3

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/eslint.config.mjs CHANGED
@@ -17,7 +17,6 @@ import eslintPluginNoOnlyTests from 'eslint-plugin-no-only-tests';
17
17
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
18
18
  // @ts-expect-error No types available
19
19
  import eslintPluginPromise from 'eslint-plugin-promise';
20
- import eslintPluginRegexp from 'eslint-plugin-regexp';
21
20
  import eslintPluginUnicorn from 'eslint-plugin-unicorn';
22
21
  import eslintPluginYml from 'eslint-plugin-yml';
23
22
  import globals from 'globals';
@@ -28,7 +27,6 @@ export default tseslint.config(
28
27
  tseslint.configs.recommendedTypeChecked,
29
28
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
30
29
  eslintPluginPromise.configs['flat/recommended'],
31
- eslintPluginRegexp.configs['flat/recommended'],
32
30
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
33
31
  eslintPluginComments.recommended,
34
32
  eslintPluginJsonc.configs['flat/recommended-with-json'],
@@ -301,12 +299,13 @@ export default tseslint.config(
301
299
  'yml/quotes': ['error', { prefer: 'single', avoidEscape: false }],
302
300
  'yml/no-empty-document': 'off',
303
301
  'yml/indent': ['error', 4, { indicatorValueIndent: 2 }],
304
- '@stylistic/spaced-comment': 'off', // False positive
302
+ '@stylistic/spaced-comment': 'off', // False positive in yaml/yml files
303
+ 'yml/no-empty-mapping-value': 'off', // Breaks comments on GitHub Actions
305
304
  },
306
305
  },
307
306
  {
308
307
  // package.json rules
309
- files: ['package.json'],
308
+ files: ['**/package.json'],
310
309
  extends: [tseslint.configs.disableTypeChecked],
311
310
  rules: {
312
311
  'jsonc/sort-keys': [
@@ -431,4 +430,10 @@ export default tseslint.config(
431
430
  ],
432
431
  },
433
432
  eslintPluginPrettierRecommended,
433
+ {
434
+ files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
435
+ rules: {
436
+ curly: ['error', 'all'], // Override Prettier feelings about curly braces.
437
+ },
438
+ },
434
439
  );
package/package.json CHANGED
@@ -1,16 +1,13 @@
1
1
  {
2
2
  "name": "@frontify/eslint-config-basic",
3
3
  "type": "module",
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "author": "Frontify Developers <developers@frontify.com>",
6
6
  "license": "MIT",
7
7
  "repository": {
8
+ "directory": "packages/basic",
8
9
  "type": "git",
9
- "url": "https://github.com/Frontify/eslint-config",
10
- "directory": "packages/basic"
11
- },
12
- "publishConfig": {
13
- "access": "public"
10
+ "url": "https://github.com/Frontify/eslint-config"
14
11
  },
15
12
  "main": "eslint.config.mjs",
16
13
  "files": [
@@ -35,7 +32,6 @@
35
32
  "eslint-plugin-no-only-tests": "^3.3.0",
36
33
  "eslint-plugin-prettier": "^5.5.4",
37
34
  "eslint-plugin-promise": "^7.2.1",
38
- "eslint-plugin-regexp": "^2.10.0",
39
35
  "eslint-plugin-unicorn": "^60.0.0",
40
36
  "eslint-plugin-yml": "^1.18.0",
41
37
  "globals": "^16.3.0",
@@ -43,10 +39,13 @@
43
39
  "yaml-eslint-parser": "^1.3.0"
44
40
  },
45
41
  "devDependencies": {
46
- "eslint": "^9.32.0",
42
+ "eslint": "^9.33.0",
47
43
  "prettier": "^3.6.2",
48
44
  "typescript": "^5.9.2"
49
45
  },
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
50
49
  "scripts": {
51
50
  "lint": "eslint ."
52
51
  }