@juuso.piikkila/eslint-config-typescript 3.0.1 → 3.0.3

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,15 @@
1
+ ## [3.0.3](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.2...3.0.3) (2025-03-09)
2
+
3
+ ### Bug Fixes
4
+
5
+ * vue config fixed? ([99f5891](https://github.com/juusopiikkila/eslint-config-typescript/commit/99f5891b515d26a754385debcfdbd89e020fda4c))
6
+
7
+ ## [3.0.2](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.1...3.0.2) (2025-03-09)
8
+
9
+ ### Bug Fixes
10
+
11
+ * try updating plugins ([246c174](https://github.com/juusopiikkila/eslint-config-typescript/commit/246c17420b725e0debe79ed6a538dde5c414b052))
12
+
1
13
  ## [3.0.1](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.0...3.0.1) (2025-03-06)
2
14
 
3
15
  ### Bug Fixes
@@ -1,3 +1,4 @@
1
+ /* eslint-disable import/no-extraneous-dependencies */
1
2
  const canonical = require('eslint-config-canonical/configurations/canonical');
2
3
  const regexp = require('eslint-config-canonical/configurations/regexp');
3
4
 
@@ -6,8 +7,15 @@ module.exports = [
6
7
  regexp.recommended,
7
8
  {
8
9
  files: [
9
- '**/*.{ts,cjs,mjs,js,jsx,vue}',
10
+ '**/*.{js,jsx,cjs,mjs,ts,tsx,vue}',
10
11
  ],
12
+ plugins: {
13
+ '@stylistic': require('@stylistic/eslint-plugin'),
14
+ canonical: require('eslint-plugin-canonical'),
15
+ import: require('eslint-plugin-import'),
16
+ perfectionist: require('eslint-plugin-perfectionist'),
17
+ unicorn: require('eslint-plugin-unicorn'),
18
+ },
11
19
  rules: {
12
20
  '@stylistic/array-bracket-newline': [
13
21
  2,
@@ -1,3 +1,4 @@
1
+ /* eslint-disable import/no-extraneous-dependencies */
1
2
  const typescript = require('eslint-config-canonical/configurations/typescript');
2
3
  const typescriptTypeChecking = require('eslint-config-canonical/configurations/typescript-type-checking');
3
4
 
@@ -6,9 +7,10 @@ module.exports = [
6
7
  typescriptTypeChecking.recommended,
7
8
  {
8
9
  files: [
9
- '**/*.{ts,cjs,mjs,js,jsx,vue}',
10
+ '**/*.{js,jsx,cjs,mjs,ts,tsx,vue}',
10
11
  ],
11
12
  plugins: {
13
+ '@stylistic': require('@stylistic/eslint-plugin'),
12
14
  '@typescript-eslint': require('@typescript-eslint/eslint-plugin'),
13
15
  },
14
16
  rules: {
@@ -1,11 +1,15 @@
1
1
  const pluginVue = require('eslint-plugin-vue');
2
2
  const pluginVueA11y = require('eslint-plugin-vuejs-accessibility');
3
3
  const globals = require('globals');
4
+ const typescriptEslint = require('typescript-eslint');
4
5
 
5
6
  module.exports = [
6
7
  ...pluginVue.configs['flat/recommended'],
7
8
  ...pluginVueA11y.configs['flat/recommended'],
8
9
  {
10
+ files: [
11
+ '**/*.{ts,vue}',
12
+ ],
9
13
  rules: {
10
14
  'vue/custom-event-name-casing': [
11
15
  'error',
@@ -184,9 +188,13 @@ module.exports = [
184
188
  'vuejs-accessibility/label-has-for': 'off',
185
189
  },
186
190
  languageOptions: {
191
+ ecmaVersion: 'latest',
187
192
  sourceType: 'module',
188
193
  globals: {
189
- ...globals.browser,
194
+ ...globals['shared-node-browser'],
195
+ },
196
+ parserOptions: {
197
+ parser: typescriptEslint.parser,
190
198
  },
191
199
  },
192
200
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@juuso.piikkila/eslint-config-typescript",
3
3
  "description": "ESLint config for typescript projects",
4
- "version": "3.0.1",
4
+ "version": "3.0.3",
5
5
  "main": "index.cjs",
6
6
  "author": "Juuso Piikkilä",
7
7
  "license": "MIT",