@cenk1cenk2/eslint-config 3.1.51 → 3.1.53

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.1.53](https://gitlab.kilic.dev/config/eslint-config/compare/v3.1.52...v3.1.53) (2025-07-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add globals to svelte configuration ([dca5b5e](https://gitlab.kilic.dev/config/eslint-config/commit/dca5b5e6c71f86ee9c9b77e0b4fa176c2a059077))
7
+
8
+ ## [3.1.52](https://gitlab.kilic.dev/config/eslint-config/compare/v3.1.51...v3.1.52) (2025-07-13)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update eslint rules ([6e25d19](https://gitlab.kilic.dev/config/eslint-config/commit/6e25d19e6db3405829c48bbdda8390c0cda3db5c))
14
+
1
15
  ## [3.1.51](https://gitlab.kilic.dev/config/eslint-config/compare/v3.1.50...v3.1.51) (2025-07-11)
2
16
 
3
17
 
package/index.js CHANGED
@@ -3,6 +3,7 @@ import ConfigImport from './import.js'
3
3
  import ConfigJavascript from './javascript.js'
4
4
  import ConfigTypescriptDynamic from './typescript-dynamic.js'
5
5
  import ConfigTypescript from './typescript.js'
6
+ import ConfigSvelteTypescript from './svelte-typescript.js'
6
7
  import * as utils from './utils.js'
7
8
  import * as constants from './constants.js'
8
9
  import * as globals from 'globals'
@@ -12,7 +13,8 @@ export const configs = {
12
13
  ['import']: ConfigImport,
13
14
  ['import-strict']: ConfigImportStrict,
14
15
  ['typescript']: ConfigTypescript,
15
- ['typescript-dynamic']: ConfigTypescriptDynamic
16
+ ['typescript-dynamic']: ConfigTypescriptDynamic,
17
+ ['svelte-typescript']: ConfigSvelteTypescript
16
18
  }
17
19
 
18
20
  export { utils, constants, globals }
package/javascript.js CHANGED
@@ -4,7 +4,7 @@ import TypescriptEslint from 'typescript-eslint'
4
4
  import { EXTENSIONS_JAVASCRIPT, EXTENSIONS } from './constants.js'
5
5
 
6
6
  import ConfigImports from './import.js'
7
- import { globals } from './index.js'
7
+ import * as globals from 'globals'
8
8
 
9
9
  /** @type {import("eslint").Linter.Config[]} */
10
10
  export default [
@@ -40,7 +40,7 @@ export default [
40
40
  'stylistic/indent': ['error', 2],
41
41
  'stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
42
42
  'stylistic/comma-spacing': ['error', { before: false, after: true }],
43
- 'stylistic/func-call-spacing': ['error', 'never'],
43
+ 'stylistic/function-call-spacing': ['error', 'never'],
44
44
  'stylistic/max-len': [
45
45
  'error',
46
46
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/eslint-config",
3
- "version": "3.1.51",
3
+ "version": "3.1.53",
4
4
  "description": "Eslint configuration for my taste.",
5
5
  "main": "index.js",
6
6
  "repository": "git@gitlab.kilic.dev:config/eslint-config.git",
@@ -61,20 +61,20 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@eslint/js": "^9.31.0",
64
- "@stylistic/eslint-plugin": "^2.13.0",
64
+ "@stylistic/eslint-plugin": "^5.1.0",
65
65
  "@typescript-eslint/eslint-plugin": "^8.36.0",
66
66
  "@typescript-eslint/parser": "^8.36.0",
67
67
  "eslint-plugin-import": "^2.32.0",
68
- "globals": "^15.15.0",
68
+ "globals": "^16.3.0",
69
69
  "load-tsconfig": "^0.2.5",
70
70
  "typescript-eslint": "^8.36.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@cenk1cenk2/cz-cc": "^1.8.1",
73
+ "@cenk1cenk2/cz-cc": "^2.0.2",
74
74
  "@vue/eslint-config-typescript": "^14.6.0",
75
75
  "eslint": "^9.31.0",
76
- "eslint-plugin-vue": "^9.33.0",
77
- "lint-staged": "^15.5.2",
76
+ "eslint-plugin-vue": "^10.3.0",
77
+ "lint-staged": "^16.1.2",
78
78
  "prettier": "^3.6.2",
79
79
  "simple-git-hooks": "^2.13.0",
80
80
  "svelte": "^5.35.6"
package/react.js CHANGED
@@ -47,7 +47,7 @@ export default [
47
47
  }
48
48
  ],
49
49
  'react/jsx-closing-tag-location': 'error',
50
- 'react/jsx-curly-brace-presence': ['error', { props: 'never', children: 'never' } ],
50
+ 'react/jsx-curly-brace-presence': ['error', { props: 'never', children: 'never' }],
51
51
  'react/jsx-equals-spacing': ['error', 'never'],
52
52
  'react/jsx-first-prop-new-line': ['error', 'multiline'],
53
53
  'react/jsx-props-no-multi-spaces': 'error',
@@ -1,6 +1,7 @@
1
1
  import TypescriptParser from '@typescript-eslint/parser'
2
2
  import SveltePlugin from 'eslint-plugin-svelte'
3
3
  import SvelteParser from 'svelte-eslint-parser'
4
+ import * as globals from 'globals'
4
5
 
5
6
  import { EXTENSIONS_SVELTE } from './constants.js'
6
7
  import ConfigTypescript from './typescript-dynamic.js'
@@ -19,6 +20,10 @@ export default [
19
20
  parserOptions: {
20
21
  parser: TypescriptParser,
21
22
  extraFileExtensions: ['.svelte']
23
+ },
24
+ globals: {
25
+ ...globals.es2020,
26
+ ...globals.browser
22
27
  }
23
28
  },
24
29
  rules: {
@@ -27,7 +27,7 @@ export default [
27
27
  disallowTypeAnnotations: true
28
28
  }
29
29
  ],
30
- '@typescript-eslint/consistent-type-exports': ['error', { fixMixedExportsWithInlineTypeSpecifier: false } ]
30
+ '@typescript-eslint/consistent-type-exports': ['error', { fixMixedExportsWithInlineTypeSpecifier: false }]
31
31
  }
32
32
  }
33
33
  ]
package/typescript.js CHANGED
@@ -232,9 +232,9 @@ export default [
232
232
  '@typescript-eslint/prefer-function-type': 'error',
233
233
  '@typescript-eslint/unified-signatures': 'error',
234
234
  '@typescript-eslint/no-use-before-define': 'off',
235
- '@typescript-eslint/array-type': ['error', { default: 'array' } ],
235
+ '@typescript-eslint/array-type': ['error', { default: 'array' }],
236
236
  '@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
237
- '@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'as', objectLiteralTypeAssertions: 'allow' } ],
237
+ '@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'as', objectLiteralTypeAssertions: 'allow' }],
238
238
  '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
239
239
  '@typescript-eslint/method-signature-style': ['error', 'property'],
240
240
  '@typescript-eslint/no-empty-object-type': [