@davidsneighbour/eslint-config 5.8.4 → 5.8.6
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/index.js +120 -121
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -5,127 +5,126 @@ if (fs.existsSync(path)) {
|
|
|
5
5
|
projectValue = path;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
8
|
+
module.exports = {
|
|
9
|
+
parser: '@typescript-eslint/parser',
|
|
10
|
+
parserOptions: {
|
|
11
|
+
ecmaVersion: "latest",
|
|
12
|
+
sourceType: "module",
|
|
13
|
+
project: projectValue,
|
|
14
|
+
extraFileExtensions: ['json'],
|
|
15
|
+
},
|
|
16
|
+
plugins: [
|
|
17
|
+
'@typescript-eslint',
|
|
18
|
+
'anti-trojan-source',
|
|
19
|
+
'html',
|
|
20
|
+
'no-loops',
|
|
21
|
+
'sonarjs',
|
|
22
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
23
|
+
"unicorn",
|
|
24
|
+
"jsdoc"
|
|
25
|
+
],
|
|
26
|
+
ignorePatterns: [
|
|
27
|
+
'**/node_modules/*',
|
|
28
|
+
'**/vendor/*',
|
|
29
|
+
'**/.git/*'
|
|
30
|
+
],
|
|
31
|
+
settings: {
|
|
32
|
+
'html/html-extensions': ['.html', '.htm'],
|
|
33
|
+
'html/xml-extensions': ['.xml'],
|
|
34
|
+
'html/indent': '0',
|
|
35
|
+
'html/report-bad-indent': 'error',
|
|
36
|
+
},
|
|
37
|
+
// https://eslint.org/docs/user-guide/configuring/language-options
|
|
38
|
+
env: {
|
|
39
|
+
browser: true,
|
|
40
|
+
es2022: true,
|
|
41
|
+
},
|
|
42
|
+
extends: [
|
|
43
|
+
'airbnb-base',
|
|
44
|
+
'plugin:compat/recommended',
|
|
45
|
+
'plugin:markdown/recommended',
|
|
46
|
+
'plugin:import/recommended',
|
|
47
|
+
'plugin:import/typescript',
|
|
48
|
+
'plugin:@typescript-eslint/eslint-recommended',
|
|
49
|
+
'plugin:@typescript-eslint/recommended',
|
|
50
|
+
'plugin:sonarjs/recommended',
|
|
51
|
+
'plugin:package-json/recommended',
|
|
52
|
+
'plugin:toml/standard',
|
|
53
|
+
"plugin:jsdoc/recommended-error"
|
|
54
|
+
],
|
|
55
|
+
rules: {
|
|
56
|
+
"indent": ["error", "tab"],
|
|
57
|
+
'anti-trojan-source/no-bidi': 'error',
|
|
58
|
+
'no-loops/no-loops': 'error',
|
|
59
|
+
'@typescript-eslint/no-unused-vars': 'error',
|
|
60
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
61
|
+
'@typescript-eslint/ban-ts-comment': 0,
|
|
62
|
+
'import/no-unresolved': 'off',
|
|
63
|
+
'@typescript-eslint/no-var-requires': 'off',
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
65
|
+
//////////////////////////////////////////////
|
|
66
|
+
// "jsdoc/check-access": 1, // Recommended
|
|
67
|
+
// "jsdoc/check-alignment": 1, // Recommended
|
|
68
|
+
// "jsdoc/check-examples": 1,
|
|
69
|
+
// "jsdoc/check-indentation": 1,
|
|
70
|
+
// "jsdoc/check-line-alignment": 1,
|
|
71
|
+
// "jsdoc/check-param-names": 1, // Recommended
|
|
72
|
+
// "jsdoc/check-property-names": 1, // Recommended
|
|
73
|
+
// "jsdoc/check-syntax": 1,
|
|
74
|
+
// "jsdoc/check-tag-names": 1, // Recommended
|
|
75
|
+
// "jsdoc/check-types": 1, // Recommended
|
|
76
|
+
// "jsdoc/check-values": 1, // Recommended
|
|
77
|
+
// "jsdoc/empty-tags": 1, // Recommended
|
|
78
|
+
// "jsdoc/implements-on-classes": 1, // Recommended
|
|
79
|
+
// "jsdoc/informative-docs": 1,
|
|
80
|
+
// "jsdoc/match-description": 1,
|
|
81
|
+
// "jsdoc/multiline-blocks": 1, // Recommended
|
|
82
|
+
// "jsdoc/no-bad-blocks": 1,
|
|
83
|
+
// "jsdoc/no-blank-block-descriptions": 1,
|
|
84
|
+
// "jsdoc/no-defaults": 1,
|
|
85
|
+
// "jsdoc/no-missing-syntax": 1,
|
|
86
|
+
// "jsdoc/no-multi-asterisks": 1, // Recommended
|
|
87
|
+
// "jsdoc/no-restricted-syntax": 1,
|
|
88
|
+
// "jsdoc/no-types": 1,
|
|
89
|
+
// "jsdoc/no-undefined-types": 1, // Recommended
|
|
90
|
+
// "jsdoc/require-asterisk-prefix": 1,
|
|
91
|
+
// "jsdoc/require-description": 1,
|
|
92
|
+
// "jsdoc/require-description-complete-sentence": 1,
|
|
93
|
+
// "jsdoc/require-example": 1,
|
|
94
|
+
// "jsdoc/require-file-overview": 1,
|
|
95
|
+
// "jsdoc/require-hyphen-before-param-description": 1,
|
|
96
|
+
// "jsdoc/require-jsdoc": 1, // Recommended
|
|
97
|
+
// "jsdoc/require-param": 1, // Recommended
|
|
98
|
+
// "jsdoc/require-param-description": 1, // Recommended
|
|
99
|
+
// "jsdoc/require-param-name": 1, // Recommended
|
|
100
|
+
// "jsdoc/require-param-type": 1, // Recommended
|
|
101
|
+
// "jsdoc/require-property": 1, // Recommended
|
|
102
|
+
// "jsdoc/require-property-description": 1, // Recommended
|
|
103
|
+
// "jsdoc/require-property-name": 1, // Recommended
|
|
104
|
+
// "jsdoc/require-property-type": 1, // Recommended
|
|
105
|
+
// "jsdoc/require-returns": 1, // Recommended
|
|
106
|
+
// "jsdoc/require-returns-check": 1, // Recommended
|
|
107
|
+
// "jsdoc/require-returns-description": 1, // Recommended
|
|
108
|
+
// "jsdoc/require-returns-type": 1, // Recommended
|
|
109
|
+
// "jsdoc/require-throws": 1,
|
|
110
|
+
// "jsdoc/require-yields": 1, // Recommended
|
|
111
|
+
// "jsdoc/require-yields-check": 1, // Recommended
|
|
112
|
+
// "jsdoc/sort-tags": 1,
|
|
113
|
+
// "jsdoc/tag-lines": 1, // Recommended
|
|
114
|
+
// "jsdoc/valid-types": 1 // Recommended
|
|
115
|
+
},
|
|
116
|
+
overrides: [
|
|
117
|
+
{
|
|
118
|
+
files: ['**/*.md'],
|
|
119
|
+
processor: 'markdown/markdown',
|
|
116
120
|
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
{
|
|
122
|
+
// configuration for ```js fenced code blocks inside .md files.
|
|
123
|
+
files: ['**/*.md/*.js'],
|
|
124
|
+
rules: {
|
|
125
|
+
'no-console': 'off',
|
|
126
|
+
'import/no-unresolved': 'off',
|
|
121
127
|
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
rules: {
|
|
126
|
-
'no-console': 'off',
|
|
127
|
-
'import/no-unresolved': 'off',
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
}];
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@davidsneighbour/eslint-config",
|
|
3
3
|
"description": "ESlint configuration for use in davidsneighbour projects.",
|
|
4
|
-
"version": "5.8.
|
|
4
|
+
"version": "5.8.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "davidsneighbour/configurations",
|
|
7
7
|
"author": "Patrick Kollitsch <patrick@davids-neighbour.com> (https://davids-neighbour.com)",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"node": ">=20.9.0",
|
|
42
42
|
"npm": ">=10.1.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "9d5acc5f01f70a8e6bd5400e80b3a94e486563d9"
|
|
45
45
|
}
|