@cenk1cenk2/eslint-config 3.0.14 → 3.0.15
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 +7 -0
- package/constants.js +1 -1
- package/eslint.config.js +2 -2
- package/index.js +5 -3
- package/{base.js → javascript.js} +4 -4
- package/package.json +7 -5
- package/react.js +2 -2
- package/typescript-dynamic.js +3 -3
- package/typescript.js +2 -4
- package/vue-typescript.js +19 -5
- package/vue.js +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.0.15](https://gitlab.kilic.dev/config/eslint-config/compare/v3.0.14...v3.0.15) (2024-10-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update with vue rules ([ac48f80](https://gitlab.kilic.dev/config/eslint-config/commit/ac48f805001b8ede0c46125d61a2488f4b43242e))
|
|
7
|
+
|
|
1
8
|
## [3.0.14](https://gitlab.kilic.dev/config/eslint-config/compare/v3.0.13...v3.0.14) (2024-10-19)
|
|
2
9
|
|
|
3
10
|
|
package/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const EXTENSIONS = ['**/*.js', '**/*.mjs', '**/*.cjs', '**/*.ts', '**/*.mts', '**/*.cts', '**/*.jsx', '**/*.tsx']
|
|
1
|
+
export const EXTENSIONS = ['**/*.js', '**/*.mjs', '**/*.cjs', '**/*.ts', '**/*.mts', '**/*.cts', '**/*.jsx', '**/*.tsx', '**/*.vue', '**/*.svelte']
|
package/eslint.config.js
CHANGED
package/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ConfigJavascript from './javascript.js'
|
|
2
2
|
import ConfigImport from './import.js'
|
|
3
3
|
import ConfigImportStrict from './import-strict.js'
|
|
4
4
|
import ConfigTypescript from './typescript.js'
|
|
5
5
|
import ConfigTypescriptDynamic from './typescript-dynamic.js'
|
|
6
|
+
import ConfigVueTypescript from './vue-typescript.js'
|
|
6
7
|
import * as utils from './utils.js'
|
|
7
8
|
|
|
8
9
|
export const configs = {
|
|
9
|
-
['
|
|
10
|
+
['javascript']: ConfigJavascript,
|
|
10
11
|
['import']: ConfigImport,
|
|
11
12
|
['import-strict']: ConfigImportStrict,
|
|
12
13
|
['typescript']: ConfigTypescript,
|
|
13
|
-
['typescript-dynamic']: ConfigTypescriptDynamic
|
|
14
|
+
['typescript-dynamic']: ConfigTypescriptDynamic,
|
|
15
|
+
['vue-typescript']: ConfigVueTypescript
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export { utils }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import JavascriptPlugin from '@eslint/js'
|
|
2
2
|
import StylisticPlugin from '@stylistic/eslint-plugin'
|
|
3
3
|
|
|
4
|
-
import
|
|
4
|
+
import ConfigImports from './import.js'
|
|
5
5
|
import { EXTENSIONS } from './constants.js'
|
|
6
6
|
|
|
7
7
|
/** @type {import("eslint").Linter.Config[]} */
|
|
8
8
|
export default [
|
|
9
|
-
|
|
10
|
-
...
|
|
9
|
+
JavascriptPlugin.configs.recommended,
|
|
10
|
+
...ConfigImports,
|
|
11
11
|
{
|
|
12
12
|
files: [...EXTENSIONS],
|
|
13
13
|
languageOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cenk1cenk2/eslint-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.15",
|
|
4
4
|
"description": "Eslint configuration for my taste.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "git@gitlab.kilic.dev:config/eslint-config.git",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@nuxtjs/eslint-config-typescript": ">= 7",
|
|
33
|
+
"@vue/eslint-config-typescript": ">= 14.1.1",
|
|
35
34
|
"eslint": ">= 9",
|
|
36
35
|
"eslint-config-react": ">= 1",
|
|
37
36
|
"eslint-plugin-react-hooks": ">= 4",
|
|
38
37
|
"eslint-plugin-svelte": ">= 2",
|
|
38
|
+
"eslint-plugin-vue": ">= 9",
|
|
39
39
|
"svelte-eslint-parser": ">= 0.26.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
|
-
"@
|
|
42
|
+
"@vue/eslint-config-typescript": {
|
|
43
43
|
"optional": true
|
|
44
44
|
},
|
|
45
|
-
"
|
|
45
|
+
"eslint-plugin-vue": {
|
|
46
46
|
"optional": true
|
|
47
47
|
},
|
|
48
48
|
"eslint-config-react": {
|
|
@@ -69,7 +69,9 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@cenk1cenk2/cz-cc": "^1.7.11",
|
|
72
|
+
"@vue/eslint-config-typescript": "^14.1.1",
|
|
72
73
|
"eslint": "^9.12.0",
|
|
74
|
+
"eslint-plugin-vue": "^9.29.0",
|
|
73
75
|
"lint-staged": "^15.2.10",
|
|
74
76
|
"prettier": "^3.3.3",
|
|
75
77
|
"simple-git-hooks": "^2.11.1"
|
package/react.js
CHANGED
package/typescript-dynamic.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ConfigTypescript from './typescript.js'
|
|
2
2
|
|
|
3
3
|
/** @type {import("eslint").Linter.Config[]} */
|
|
4
4
|
export default [
|
|
5
|
-
...
|
|
5
|
+
...ConfigTypescript,
|
|
6
6
|
{
|
|
7
|
-
files: ['**/*.ts', '**/*.tsx'],
|
|
7
|
+
files: ['**/*.ts', '**/*.tsx', '**/*.vue', '**/*.svelte'],
|
|
8
8
|
languageOptions: {
|
|
9
9
|
parserOptions: {
|
|
10
10
|
project: 'tsconfig.json'
|
package/typescript.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import StylisticPlugin from '@stylistic/eslint-plugin'
|
|
2
1
|
import TypescriptEslintPlugin from '@typescript-eslint/eslint-plugin'
|
|
3
2
|
import TypescriptEslint from 'typescript-eslint'
|
|
4
|
-
import
|
|
3
|
+
import ConfigJavascript from './javascript.js'
|
|
5
4
|
|
|
6
5
|
/** @type {import("eslint").Linter.Config[]} */
|
|
7
6
|
export default [
|
|
8
|
-
...
|
|
7
|
+
...ConfigJavascript,
|
|
9
8
|
...TypescriptEslint.configs.recommended,
|
|
10
9
|
{
|
|
11
10
|
files: ['**/*.ts', '**/*.tsx'],
|
|
12
11
|
plugins: {
|
|
13
|
-
stylestic: StylisticPlugin,
|
|
14
12
|
'@typescript-eslint': TypescriptEslintPlugin
|
|
15
13
|
},
|
|
16
14
|
rules: {
|
package/vue-typescript.js
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
import VuePlugin from 'eslint-plugin-vue'
|
|
2
|
+
import VueTypescriptConfig from '@vue/eslint-config-typescript'
|
|
3
|
+
import ConfigTypescript from './typescript-dynamic.js'
|
|
4
|
+
|
|
1
5
|
/** @type {import("eslint").Linter.Config[]} */
|
|
2
6
|
export default [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
...ConfigTypescript,
|
|
8
|
+
|
|
9
|
+
...VuePlugin.configs['flat/essential'],
|
|
10
|
+
|
|
11
|
+
...VueTypescriptConfig({
|
|
12
|
+
// https://typescript-eslint.io/users/configs#recommended-configurations
|
|
13
|
+
extends: ['recommendedTypeChecked', 'stylistic'],
|
|
14
|
+
|
|
15
|
+
supportedScriptLangs: {
|
|
16
|
+
ts: true,
|
|
17
|
+
tsx: false,
|
|
18
|
+
jsx: false,
|
|
19
|
+
js: false
|
|
20
|
+
}
|
|
21
|
+
})
|
|
8
22
|
]
|
package/vue.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import base from './base.js'
|
|
2
|
-
|
|
3
|
-
/** @type {import("eslint").Linter.Config[]} */
|
|
4
|
-
export default [
|
|
5
|
-
...base,
|
|
6
|
-
{
|
|
7
|
-
files: ['**/*.vue'],
|
|
8
|
-
extends: ['@nuxtjs'],
|
|
9
|
-
rules: {
|
|
10
|
-
'vue/singleline-html-element-content-newline': 0,
|
|
11
|
-
'vue/multiline-html-element-content-newline': 0,
|
|
12
|
-
'vue/html-self-closing': 0,
|
|
13
|
-
'vue/no-v-html': 0,
|
|
14
|
-
'array-element-newline': ['error', 'consistent'],
|
|
15
|
-
'array-bracket-spacing': [
|
|
16
|
-
'error',
|
|
17
|
-
'always',
|
|
18
|
-
{
|
|
19
|
-
objectsInArrays: true,
|
|
20
|
-
arraysInArrays: true
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
]
|