@cenk1cenk2/eslint-config 2.6.6 → 2.7.1

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
+ ## [2.7.1](https://gitlab.kilic.dev/config/eslint-config/compare/v2.7.0...v2.7.1) (2023-04-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update svelte config ([a37b9bc](https://gitlab.kilic.dev/config/eslint-config/commit/a37b9bce4723f77050ad593d5721f950bd4ffe1f))
7
+
8
+ # [2.7.0](https://gitlab.kilic.dev/config/eslint-config/compare/v2.6.6...v2.7.0) (2023-04-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * add svelte as linting type ([3b1eb78](https://gitlab.kilic.dev/config/eslint-config/commit/3b1eb78c24d522b796897246f946dd479fc90872))
14
+
1
15
  ## [2.6.6](https://gitlab.kilic.dev/config/eslint-config/compare/v2.6.5...v2.6.6) (2023-04-16)
2
16
 
3
17
 
package/index.js CHANGED
@@ -23,7 +23,7 @@ module.exports = {
23
23
  'error',
24
24
  {
25
25
  code: 180,
26
- comments: 0
26
+ comments: 180
27
27
  }
28
28
  ],
29
29
  'no-multi-spaces': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/eslint-config",
3
- "version": "2.6.6",
3
+ "version": "2.7.1",
4
4
  "description": "Eslint configuration for my taste.",
5
5
  "main": "index.js",
6
6
  "repository": "git@gitlab.kilic.dev:config/eslint-config.git",
@@ -28,7 +28,9 @@
28
28
  "@nuxtjs/eslint-config-typescript": ">= 7",
29
29
  "eslint": ">= 8",
30
30
  "eslint-config-react": ">= 1",
31
- "eslint-plugin-react-hooks": ">= 4"
31
+ "eslint-plugin-react-hooks": ">= 4",
32
+ "eslint-plugin-svelte": ">= 2",
33
+ "svelte-eslint-parser": ">= 0.26.0"
32
34
  },
33
35
  "peerDependenciesMeta": {
34
36
  "@nuxtjs/eslint-config": {
@@ -42,23 +44,25 @@
42
44
  },
43
45
  "eslint-plugin-react-hooks": {
44
46
  "optional": true
47
+ },
48
+ "eslint-plugin-svelte": {
49
+ "optional": true
50
+ },
51
+ "svelte-eslint-parser": {
52
+ "optional": true
45
53
  }
46
54
  },
47
55
  "dependencies": {
48
- "@typescript-eslint/eslint-plugin": "^5.58.0",
49
- "@typescript-eslint/parser": "^5.58.0",
56
+ "@typescript-eslint/eslint-plugin": "^5.59.0",
57
+ "@typescript-eslint/parser": "^5.59.0",
50
58
  "eslint-plugin-import": "^2.27.5",
51
59
  "load-tsconfig": "^0.2.5"
52
60
  },
53
61
  "devDependencies": {
54
- "@cenk1cenk2/cz-cc": "^1.6.2",
55
- "@nuxtjs/eslint-config": "^12.0.0",
56
- "@nuxtjs/eslint-config-typescript": "^12.0.0",
57
- "eslint": "^8.38.0",
58
- "eslint-config-react": "^1.1.7",
59
- "eslint-plugin-react-hooks": "^4.6.0",
62
+ "@cenk1cenk2/cz-cc": "^1.6.4",
63
+ "eslint": "^8.39.0",
60
64
  "lint-staged": "^13.2.1",
61
- "prettier": "^2.8.7",
65
+ "prettier": "^2.8.8",
62
66
  "simple-git-hooks": "^2.8.1"
63
67
  },
64
68
  "config": {
@@ -0,0 +1,19 @@
1
+ /** @type {import("eslint").Linter.Config} */
2
+ module.exports = {
3
+ extends: [ 'plugin:svelte/recommended', './typescript-dynamic' ],
4
+ parserOptions: {
5
+ extraFileExtensions: [ '.svelte' ]
6
+ },
7
+ overrides: [
8
+ {
9
+ files: [ '*.svelte' ],
10
+ parser: 'svelte-eslint-parser',
11
+ parserOptions: {
12
+ parser: '@typescript-eslint/parser'
13
+ },
14
+ rules: {
15
+ 'max-len': 'off'
16
+ }
17
+ }
18
+ ]
19
+ }