@juuso.piikkila/eslint-config-typescript 3.0.9 → 3.0.11
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 +12 -0
- package/configurations/base/{index.cjs → index.js} +13 -8
- package/configurations/typescript/{index.cjs → index.js} +7 -6
- package/configurations/vue/{index.cjs → index.js} +10 -7
- package/eslint.config.mjs +5 -0
- package/index.js +7 -0
- package/package.json +4 -3
- package/eslint.config.cjs +0 -5
- package/index.cjs +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [3.0.11](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.10...3.0.11) (2025-03-10)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* update config ([0028017](https://github.com/juusopiikkila/eslint-config-typescript/commit/002801763ac1e61cce57dff344c9b9ebbb230ca8))
|
|
6
|
+
|
|
7
|
+
## [3.0.10](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.9...3.0.10) (2025-03-10)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* change to module ([d49aef6](https://github.com/juusopiikkila/eslint-config-typescript/commit/d49aef60c520a6dfedb3aae18ef3e01531f22742))
|
|
12
|
+
|
|
1
13
|
## [3.0.9](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.8...3.0.9) (2025-03-09)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
|
@@ -1,8 +1,13 @@
|
|
|
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.js';
|
|
4
|
+
import regexp from 'eslint-config-canonical/configurations/regexp.js';
|
|
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';
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
export default [
|
|
6
11
|
canonical.recommended,
|
|
7
12
|
regexp.recommended,
|
|
8
13
|
{
|
|
@@ -10,11 +15,11 @@ module.exports = [
|
|
|
10
15
|
'**/*.{js,jsx,cjs,mjs,ts,tsx,vue}',
|
|
11
16
|
],
|
|
12
17
|
plugins: {
|
|
13
|
-
'@stylistic':
|
|
14
|
-
canonical:
|
|
15
|
-
import:
|
|
16
|
-
perfectionist:
|
|
17
|
-
unicorn:
|
|
18
|
+
'@stylistic': stylisticPlugin,
|
|
19
|
+
canonical: canonicalPlugin,
|
|
20
|
+
import: importPlugin,
|
|
21
|
+
perfectionist: perfectionistPlugin,
|
|
22
|
+
unicorn: unicornPlugin,
|
|
18
23
|
},
|
|
19
24
|
rules: {
|
|
20
25
|
'@stylistic/array-bracket-newline': [
|
|
@@ -1,8 +1,9 @@
|
|
|
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';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
export default [
|
|
6
7
|
typescript.recommended,
|
|
7
8
|
typescriptTypeChecking.recommended,
|
|
8
9
|
{
|
|
@@ -10,8 +11,8 @@ module.exports = [
|
|
|
10
11
|
'**/*.{ts,tsx,vue}',
|
|
11
12
|
],
|
|
12
13
|
plugins: {
|
|
13
|
-
'@stylistic':
|
|
14
|
-
'@typescript-eslint':
|
|
14
|
+
'@stylistic': stylisticPlugin,
|
|
15
|
+
'@typescript-eslint': typescriptEslintPlugin,
|
|
15
16
|
},
|
|
16
17
|
languageOptions: {
|
|
17
18
|
parserOptions: {
|
|
@@ -1,8 +1,11 @@
|
|
|
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
|
{
|
|
@@ -15,11 +18,11 @@ module.exports = [
|
|
|
15
18
|
globals: {
|
|
16
19
|
...globals['shared-node-browser'],
|
|
17
20
|
},
|
|
18
|
-
parser:
|
|
21
|
+
parser: vueParser,
|
|
19
22
|
parserOptions: {
|
|
20
23
|
project: true,
|
|
21
24
|
parser: {
|
|
22
|
-
ts:
|
|
25
|
+
ts: typescriptEslintParser,
|
|
23
26
|
'<template>': 'espree',
|
|
24
27
|
},
|
|
25
28
|
extraFileExtensions: ['.vue'],
|
|
@@ -204,4 +207,4 @@ module.exports = [
|
|
|
204
207
|
'vuejs-accessibility/label-has-for': 'off',
|
|
205
208
|
},
|
|
206
209
|
},
|
|
207
|
-
];
|
|
210
|
+
]);
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juuso.piikkila/eslint-config-typescript",
|
|
3
3
|
"description": "ESLint config for typescript projects",
|
|
4
|
-
"version": "3.0.
|
|
5
|
-
"main": "index.
|
|
4
|
+
"version": "3.0.11",
|
|
5
|
+
"main": "index.js",
|
|
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
|
},
|
|
12
13
|
"scripts": {
|
|
13
|
-
"lint": "eslint \"configurations/**/*.
|
|
14
|
+
"lint": "eslint \"configurations/**/*.js\" \"index.js\""
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"eslint": "^9.0.0",
|
package/eslint.config.cjs
DELETED