@aneuhold/eslint-config 1.0.38 → 1.0.40
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/package.json +1 -1
- package/src/svelte-config.js +14 -1
- package/src/ts-lib-config.js +12 -1
package/package.json
CHANGED
package/src/svelte-config.js
CHANGED
|
@@ -4,6 +4,7 @@ import eslintPluginSvelte from 'eslint-plugin-svelte';
|
|
|
4
4
|
import globals from 'globals';
|
|
5
5
|
import svelteParser from 'svelte-eslint-parser';
|
|
6
6
|
import tseslint from 'typescript-eslint';
|
|
7
|
+
import jsdoc from 'eslint-plugin-jsdoc';
|
|
7
8
|
|
|
8
9
|
const defaultConfig = tseslint.config(
|
|
9
10
|
{
|
|
@@ -11,6 +12,7 @@ const defaultConfig = tseslint.config(
|
|
|
11
12
|
extends: [
|
|
12
13
|
eslint.configs.recommended,
|
|
13
14
|
...tseslint.configs.strictTypeChecked,
|
|
15
|
+
jsdoc.configs['flat/recommended-typescript'],
|
|
14
16
|
eslintPluginPrettierRecommended
|
|
15
17
|
],
|
|
16
18
|
languageOptions: {
|
|
@@ -25,6 +27,8 @@ const defaultConfig = tseslint.config(
|
|
|
25
27
|
// Rules for js, and ts in ts files and svelte files
|
|
26
28
|
//don't set 'svelte/*' rules here
|
|
27
29
|
rules: {
|
|
30
|
+
// Makes it so that there's 1 line above tags in jsdoc comments.
|
|
31
|
+
'jsdoc/tag-lines': ['warn', 'any', { startLines: 1 }],
|
|
28
32
|
'no-use-before-define': 'off',
|
|
29
33
|
'no-undef': 'off',
|
|
30
34
|
// Just 100% disagree with this rule. The reasoning is that using a
|
|
@@ -107,5 +111,14 @@ export default tseslint.config(
|
|
|
107
111
|
{
|
|
108
112
|
// other override settings. e.g. for `files: ['**/*.test.*']`
|
|
109
113
|
},
|
|
110
|
-
{
|
|
114
|
+
{
|
|
115
|
+
ignores: [
|
|
116
|
+
'.svelte-kit',
|
|
117
|
+
'.yarn',
|
|
118
|
+
'build',
|
|
119
|
+
'node_modules',
|
|
120
|
+
'**/.DS_Store',
|
|
121
|
+
'eslint.config.js'
|
|
122
|
+
]
|
|
123
|
+
} // overrides global ignores
|
|
111
124
|
);
|
package/src/ts-lib-config.js
CHANGED
|
@@ -23,6 +23,8 @@ const defaultConfig = tseslint.config(
|
|
|
23
23
|
},
|
|
24
24
|
// Rules for js, and ts in ts files
|
|
25
25
|
rules: {
|
|
26
|
+
// Makes it so that there's 1 line above tags in jsdoc comments.
|
|
27
|
+
'jsdoc/tag-lines': ['error', 'any', { startLines: 1 }],
|
|
26
28
|
'no-use-before-define': 'off',
|
|
27
29
|
'no-undef': 'off',
|
|
28
30
|
// Just 100% disagree with this rule. The reasoning is that using a
|
|
@@ -55,5 +57,14 @@ export default tseslint.config(
|
|
|
55
57
|
{
|
|
56
58
|
// other override settings. e.g. for `files: ['**/*.test.*']`
|
|
57
59
|
},
|
|
58
|
-
{
|
|
60
|
+
{
|
|
61
|
+
ignores: [
|
|
62
|
+
'.yarn',
|
|
63
|
+
'build',
|
|
64
|
+
'lib',
|
|
65
|
+
'node_modules',
|
|
66
|
+
'eslint.config.js',
|
|
67
|
+
'**/.DS_Store'
|
|
68
|
+
]
|
|
69
|
+
} // overrides global ignores
|
|
59
70
|
);
|