@cenk1cenk2/eslint-config 3.1.0 → 3.1.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 +7 -0
- package/constants.js +6 -1
- package/package.json +1 -1
- package/typescript.js +7 -2
- package/vue-typescript.js +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.1.1](https://gitlab.kilic.dev/config/eslint-config/compare/v3.1.0...v3.1.1) (2024-10-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update extensions configuration ([38d5a15](https://gitlab.kilic.dev/config/eslint-config/commit/38d5a154ef27b3b9ec2da2e412287cd73fb0140a))
|
|
7
|
+
|
|
1
8
|
# [3.1.0](https://gitlab.kilic.dev/config/eslint-config/compare/v3.0.16...v3.1.0) (2024-10-19)
|
|
2
9
|
|
|
3
10
|
|
package/constants.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const EXTENSIONS_JAVASCRIPT = ['**/*.js', '**/*.mjs', '**/*.cjs', '**/*.jsx']
|
|
2
|
+
export const EXTENSIONS_TYPESCRIPT = ['**/*.ts', '**/*.mts', '**/*.cts', '**/*.tsx']
|
|
3
|
+
export const EXTENSIONS_VUE = ['**/*.vue']
|
|
4
|
+
export const EXTENSIONS_SVELTE = ['**/*.svelte']
|
|
5
|
+
|
|
6
|
+
export const EXTENSIONS = [EXTENSIONS_JAVASCRIPT, '**/*.vue', '**/*.svelte', ...EXTENSIONS_TYPESCRIPT]
|
package/package.json
CHANGED
package/typescript.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import TypescriptEslintPlugin from '@typescript-eslint/eslint-plugin'
|
|
2
2
|
import TypescriptEslint from 'typescript-eslint'
|
|
3
3
|
import ConfigJavascript from './javascript.js'
|
|
4
|
+
import { EXTENSIONS_TYPESCRIPT } from './constants.js'
|
|
4
5
|
|
|
5
6
|
/** @type {import("eslint").Linter.Config[]} */
|
|
6
7
|
export default [
|
|
7
8
|
...ConfigJavascript,
|
|
8
|
-
...TypescriptEslint.configs.recommended
|
|
9
|
+
...TypescriptEslint.configs.recommended.map((config) => {
|
|
10
|
+
config.files = EXTENSIONS_TYPESCRIPT
|
|
11
|
+
|
|
12
|
+
return config
|
|
13
|
+
}),
|
|
9
14
|
{
|
|
10
|
-
files:
|
|
15
|
+
files: EXTENSIONS_TYPESCRIPT,
|
|
11
16
|
plugins: {
|
|
12
17
|
'@typescript-eslint': TypescriptEslintPlugin
|
|
13
18
|
},
|
package/vue-typescript.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import VuePlugin from 'eslint-plugin-vue'
|
|
2
2
|
import VueTypescriptConfig from '@vue/eslint-config-typescript'
|
|
3
3
|
import ConfigTypescript from './typescript-dynamic.js'
|
|
4
|
-
import { EXTENSIONS } from './constants.js'
|
|
4
|
+
import { EXTENSIONS, EXTENSIONS_TYPESCRIPT, EXTENSIONS_VUE } from './constants.js'
|
|
5
5
|
|
|
6
6
|
/** @type {import("eslint").Linter.Config[]} */
|
|
7
7
|
export default [
|
|
8
|
-
...ConfigTypescript
|
|
8
|
+
...ConfigTypescript.map((config) => {
|
|
9
|
+
config.files = [...EXTENSIONS_VUE, EXTENSIONS_TYPESCRIPT]
|
|
10
|
+
|
|
11
|
+
return config
|
|
12
|
+
}),
|
|
9
13
|
|
|
10
14
|
...VuePlugin.configs['flat/essential'],
|
|
11
15
|
|