@juuso.piikkila/eslint-config-typescript 3.0.8 → 3.0.10
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.10](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.9...3.0.10) (2025-03-10)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* change to module ([d49aef6](https://github.com/juusopiikkila/eslint-config-typescript/commit/d49aef60c520a6dfedb3aae18ef3e01531f22742))
|
|
6
|
+
|
|
7
|
+
## [3.0.9](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.8...3.0.9) (2025-03-09)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update configs ([8b19e94](https://github.com/juusopiikkila/eslint-config-typescript/commit/8b19e9482ff032f76cc0a716b075e8101001ec18))
|
|
12
|
+
|
|
1
13
|
## [3.0.8](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.7...3.0.8) (2025-03-09)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import stylisticPlugin from '@stylistic/eslint-plugin';
|
|
3
|
+
import canonical from 'eslint-config-canonical/configurations/canonical';
|
|
4
|
+
import regexp from 'eslint-config-canonical/configurations/regexp';
|
|
5
|
+
import canonicalPlugin from 'eslint-plugin-canonical';
|
|
6
|
+
import importPlugin from 'eslint-plugin-import';
|
|
7
|
+
import perfectionistPlugin from 'eslint-plugin-perfectionist';
|
|
8
|
+
import unicornPlugin from 'eslint-plugin-unicorn';
|
|
9
|
+
import { defineConfig } from 'eslint/config';
|
|
4
10
|
|
|
5
|
-
|
|
11
|
+
export default defineConfig([
|
|
6
12
|
canonical.recommended,
|
|
7
13
|
regexp.recommended,
|
|
8
14
|
{
|
|
@@ -10,11 +16,11 @@ module.exports = [
|
|
|
10
16
|
'**/*.{js,jsx,cjs,mjs,ts,tsx,vue}',
|
|
11
17
|
],
|
|
12
18
|
plugins: {
|
|
13
|
-
'@stylistic':
|
|
14
|
-
canonical:
|
|
15
|
-
import:
|
|
16
|
-
perfectionist:
|
|
17
|
-
unicorn:
|
|
19
|
+
'@stylistic': stylisticPlugin,
|
|
20
|
+
canonical: canonicalPlugin,
|
|
21
|
+
import: importPlugin,
|
|
22
|
+
perfectionist: perfectionistPlugin,
|
|
23
|
+
unicorn: unicornPlugin,
|
|
18
24
|
},
|
|
19
25
|
rules: {
|
|
20
26
|
'@stylistic/array-bracket-newline': [
|
|
@@ -177,4 +183,4 @@ module.exports = [
|
|
|
177
183
|
],
|
|
178
184
|
},
|
|
179
185
|
},
|
|
180
|
-
];
|
|
186
|
+
]);
|
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import stylisticPlugin from '@stylistic/eslint-config';
|
|
2
|
+
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin';
|
|
3
|
+
import typescript from 'eslint-config-canonical/configurations/typescript';
|
|
4
|
+
import typescriptTypeChecking from 'eslint-config-canonical/configurations/typescript-type-checking';
|
|
5
|
+
import { defineConfig } from 'eslint/config';
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
export default defineConfig([
|
|
6
8
|
typescript.recommended,
|
|
7
9
|
typescriptTypeChecking.recommended,
|
|
8
10
|
{
|
|
9
11
|
files: [
|
|
10
|
-
'**/*.{
|
|
12
|
+
'**/*.{ts,tsx,vue}',
|
|
11
13
|
],
|
|
12
14
|
plugins: {
|
|
13
|
-
'@stylistic':
|
|
14
|
-
'@typescript-eslint':
|
|
15
|
+
'@stylistic': stylisticPlugin,
|
|
16
|
+
'@typescript-eslint': typescriptEslintPlugin,
|
|
17
|
+
},
|
|
18
|
+
languageOptions: {
|
|
19
|
+
parserOptions: {
|
|
20
|
+
project: true,
|
|
21
|
+
extraFileExtensions: [
|
|
22
|
+
'.vue',
|
|
23
|
+
],
|
|
24
|
+
},
|
|
15
25
|
},
|
|
16
26
|
rules: {
|
|
17
27
|
'@stylistic/member-delimiter-style': [
|
|
@@ -98,4 +108,4 @@ module.exports = [
|
|
|
98
108
|
'@typescript-eslint/type-annotation-spacing': 'off',
|
|
99
109
|
},
|
|
100
110
|
},
|
|
101
|
-
];
|
|
111
|
+
]);
|
|
@@ -1,14 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import typescriptEslintParser from '@typescript-eslint/parser';
|
|
2
|
+
import pluginVue from 'eslint-plugin-vue';
|
|
3
|
+
import pluginVueA11y from 'eslint-plugin-vuejs-accessibility';
|
|
4
|
+
import { defineConfig } from 'eslint/config';
|
|
5
|
+
import globals from 'globals';
|
|
6
|
+
import vueParser from 'vue-eslint-parser';
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
export default defineConfig([
|
|
6
9
|
...pluginVue.configs['flat/recommended'],
|
|
7
10
|
...pluginVueA11y.configs['flat/recommended'],
|
|
8
11
|
{
|
|
9
12
|
files: [
|
|
10
13
|
'**/*.vue',
|
|
11
14
|
],
|
|
15
|
+
languageOptions: {
|
|
16
|
+
ecmaVersion: 'latest',
|
|
17
|
+
sourceType: 'module',
|
|
18
|
+
globals: {
|
|
19
|
+
...globals['shared-node-browser'],
|
|
20
|
+
},
|
|
21
|
+
parser: vueParser,
|
|
22
|
+
parserOptions: {
|
|
23
|
+
project: true,
|
|
24
|
+
parser: {
|
|
25
|
+
ts: typescriptEslintParser,
|
|
26
|
+
'<template>': 'espree',
|
|
27
|
+
},
|
|
28
|
+
extraFileExtensions: ['.vue'],
|
|
29
|
+
sourceType: 'module',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
12
32
|
rules: {
|
|
13
33
|
'vue/custom-event-name-casing': [
|
|
14
34
|
'error',
|
|
@@ -186,22 +206,5 @@ module.exports = [
|
|
|
186
206
|
],
|
|
187
207
|
'vuejs-accessibility/label-has-for': 'off',
|
|
188
208
|
},
|
|
189
|
-
languageOptions: {
|
|
190
|
-
ecmaVersion: 'latest',
|
|
191
|
-
sourceType: 'module',
|
|
192
|
-
globals: {
|
|
193
|
-
...globals['shared-node-browser'],
|
|
194
|
-
},
|
|
195
|
-
parser: require('vue-eslint-parser'),
|
|
196
|
-
parserOptions: {
|
|
197
|
-
project: true,
|
|
198
|
-
parser: {
|
|
199
|
-
ts: require('@typescript-eslint/parser'),
|
|
200
|
-
'<template>': 'espree',
|
|
201
|
-
},
|
|
202
|
-
extraFileExtensions: ['.vue'],
|
|
203
|
-
sourceType: 'module',
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
209
|
},
|
|
207
|
-
];
|
|
210
|
+
]);
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juuso.piikkila/eslint-config-typescript",
|
|
3
3
|
"description": "ESLint config for typescript projects",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.10",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"author": "Juuso Piikkilä",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"packageManager": "yarn@4.7.0",
|
|
9
|
+
"type": "module",
|
|
9
10
|
"publishConfig": {
|
|
10
11
|
"access": "public"
|
|
11
12
|
},
|