@dword-design/eslint-config 6.0.8 → 6.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.
@@ -20,6 +20,7 @@ import globals from 'globals';
20
20
  import loadPkg from 'load-pkg';
21
21
  import { compact, omit, without } from 'lodash-es';
22
22
  import { sortOrder as packageJsonSortOrder } from 'sort-package-json';
23
+ import tseslint from 'typescript-eslint';
23
24
  import restrictedImports from "./restricted-imports.js";
24
25
  export default () => {
25
26
  const packageConfig = loadPkg.sync() || {};
@@ -48,14 +49,14 @@ export default () => {
48
49
  }
49
50
  }
50
51
  }
51
- }, js.configs.recommended, importPlugin.flatConfigs.recommended, pluginPromise.configs['flat/recommended'], ...pluginVue.configs['flat/recommended'].map(plugin => ({
52
- files: ['**/*.js', '**/*.vue'],
52
+ }, js.configs.recommended, tseslint.configs.recommended, importPlugin.flatConfigs.recommended, pluginPromise.configs['flat/recommended'], ...pluginVue.configs['flat/recommended'].map(plugin => ({
53
+ files: ['**/*.js', '**/*.ts', '**/*.vue'],
53
54
  ...plugin
54
55
  })), ...compat.extends(`plugin:${packageName`@dword-design/eslint-plugin-import-alias`}/recommended`), {
55
- files: ['**/*.js', '**/*.vue'],
56
+ files: ['**/*.js', '**/*.ts', '**/*.vue'],
56
57
  ...eslintPluginPrettierRecommended
57
58
  }, ...(baseConfig.testRunner === 'playwright' ? [pluginPlaywright.configs['flat/recommended']] : []), ...compat.plugins(packageName`eslint-plugin-prefer-arrow`), ...compat.plugins(packageName`eslint-plugin-simple-import-sort`), ...compat.plugins(packageName`eslint-plugin-sort-keys-fix`), {
58
- files: ['**/*.js', '**/*.vue'],
59
+ files: ['**/*.js', '**/*.ts', '**/*.vue'],
59
60
  ...eslintPluginUnicorn.configs.recommended
60
61
  }, ...eslintPluginJsonc.configs['flat/recommended-with-jsonc'], {
61
62
  files: ['**/*.vue'],
@@ -82,7 +83,7 @@ export default () => {
82
83
  }]
83
84
  }
84
85
  }, {
85
- files: ['**/*.js', '**/*.vue'],
86
+ files: ['**/*.js', '**/*.ts', '**/*.vue'],
86
87
  languageOptions: {
87
88
  globals: {
88
89
  ...globals.node,
@@ -100,7 +101,7 @@ export default () => {
100
101
  'import/no-commonjs': 'error',
101
102
  'import/no-dynamic-require': 'off',
102
103
  'import/no-extraneous-dependencies': ['error', {
103
- devDependencies: ['base.config.js', '**/*.spec.js', ...(baseConfig.testRunner === 'playwright' ? ['fixtures/**', 'global-setup.js', 'global-teardown.js', 'playwright.config.js'] : ['global-test-hooks.js'])]
104
+ devDependencies: ['base.config.js', '**/*.spec.js', '**/*.spec.ts', ...(baseConfig.testRunner === 'playwright' ? ['fixtures/**', 'global-setup.js', 'global-teardown.js', 'playwright.config.js'] : ['global-test-hooks.js'])]
104
105
  }],
105
106
  'import/no-named-as-default': 'off',
106
107
  'import/order': 'off',
@@ -190,7 +191,7 @@ export default () => {
190
191
  'unicorn/template-indent': ['error', {
191
192
  tags: Object.keys({
192
193
  css: true,
193
- endent: true,
194
+ dedent: true,
194
195
  html: true,
195
196
  javascript: true,
196
197
  sql: true,
@@ -222,7 +223,7 @@ export default () => {
222
223
  }
223
224
  }
224
225
  }, {
225
- files: ['**/*.spec.js'],
226
+ files: ['**/*.spec.js', '**/*.spec.ts'],
226
227
  ...(baseConfig.testRunner === 'mocha' && {
227
228
  languageOptions: {
228
229
  globals: {
@@ -239,7 +240,7 @@ export default () => {
239
240
  }]
240
241
  }
241
242
  }, {
242
- files: [...(baseConfig.testRunner === 'playwright' ? ['fixtures/**'] : []), '**/*.spec.js'],
243
+ files: [...(baseConfig.testRunner === 'playwright' ? ['fixtures/**'] : []), '**/*.spec.js', '**/*.spec.ts'],
243
244
  rules: {
244
245
  ...(baseConfig.testRunner === 'playwright' && {
245
246
  'no-empty-pattern': 'off'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/eslint-config",
3
- "version": "6.0.8",
3
+ "version": "6.1.1",
4
4
  "repository": "dword-design/eslint-config",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -49,11 +49,12 @@
49
49
  "load-pkg": "^4.0.0",
50
50
  "lodash-es": "^4.17.21",
51
51
  "prettier": "^3.5.3",
52
- "sort-package-json": "^3.2.1"
52
+ "sort-package-json": "^3.2.1",
53
+ "typescript-eslint": "^8.33.1"
53
54
  },
54
55
  "devDependencies": {
55
- "@dword-design/functions": "^6.0.2",
56
56
  "@playwright/test": "^1.52.0",
57
+ "dedent": "^1.6.0",
57
58
  "execa": "^9.5.3",
58
59
  "in-folder": "^1.0.3",
59
60
  "output-files": "^2.0.32",