@otwld/eslint-config 0.1.0
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/README.md +34 -0
- package/package.json +34 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/index.js.map +1 -0
- package/src/lib/config.d.ts +11 -0
- package/src/lib/config.js +411 -0
- package/src/lib/config.js.map +1 -0
- package/src/lib/options.d.ts +17 -0
- package/src/lib/options.js +2 -0
- package/src/lib/options.js.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @otwld/eslint-config
|
|
2
|
+
|
|
3
|
+
The OTWLD quality baseline for native ESLint flat configuration.
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
import { defineConfig } from 'eslint/config';
|
|
7
|
+
import nx from '@nx/eslint-plugin';
|
|
8
|
+
import { otwld } from '@otwld/eslint-config';
|
|
9
|
+
|
|
10
|
+
export default defineConfig([...nx.configs['flat/base'], ...nx.configs['flat/typescript'], ...otwld()]);
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`otwld()` applies the bundled quality rules to `apps`, `libs`, `packages`,
|
|
14
|
+
`plugins`, and `tools`. Tests and generated or build output are excluded.
|
|
15
|
+
|
|
16
|
+
Use `roots` when a repository has different code root directories. Providing
|
|
17
|
+
it replaces the defaults:
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
...otwld({ roots: ['domains', 'shared'] }),
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Bundled plugin groups can be disabled explicitly by their package name:
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
...otwld({
|
|
27
|
+
disabled: {
|
|
28
|
+
'eslint-plugin-sonarjs': true,
|
|
29
|
+
},
|
|
30
|
+
}),
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Rule exceptions and additional plugins remain native ESLint flat-config
|
|
34
|
+
entries. Put them after `otwld()` so the override order is explicit.
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@otwld/eslint-config",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./src/index.d.ts",
|
|
9
|
+
"import": "./src/index.js",
|
|
10
|
+
"default": "./src/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
14
|
+
"main": "./src/index.js",
|
|
15
|
+
"module": "./src/index.js",
|
|
16
|
+
"types": "./src/index.d.ts",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@eslint/js": "10.0.1",
|
|
19
|
+
"eslint-plugin-jsdoc": "63.3.3",
|
|
20
|
+
"eslint-plugin-no-barrel-files": "2.2.0",
|
|
21
|
+
"eslint-plugin-security": "4.0.1",
|
|
22
|
+
"eslint-plugin-sonarjs": "4.2.0",
|
|
23
|
+
"eslint-plugin-tsdoc": "0.5.2",
|
|
24
|
+
"eslint-plugin-zod": "4.9.1",
|
|
25
|
+
"tslib": "2.8.1",
|
|
26
|
+
"typescript-eslint": "8.67.0"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"eslint": ">=10 <11"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
}
|
|
34
|
+
}
|
package/src/index.d.ts
ADDED
package/src/index.js
ADDED
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../plugins/eslint/config/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OtwldOptions } from './options.js';
|
|
3
|
+
type FlatConfig = Linter.Config;
|
|
4
|
+
/**
|
|
5
|
+
* Return the OTWLD quality baseline as native ESLint flat configuration.
|
|
6
|
+
* @param options - Optional roots and bundled plugin exceptions.
|
|
7
|
+
* @returns The flat configuration entries owned by OTWLD.
|
|
8
|
+
* @throws TypeError when the options object contains an unsupported shape or key.
|
|
9
|
+
*/
|
|
10
|
+
export declare function otwld(options?: OtwldOptions): FlatConfig[];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import jsdoc from 'eslint-plugin-jsdoc';
|
|
3
|
+
import noBarrelFiles from 'eslint-plugin-no-barrel-files';
|
|
4
|
+
import security from 'eslint-plugin-security';
|
|
5
|
+
import sonarjs from 'eslint-plugin-sonarjs';
|
|
6
|
+
import tsdoc from 'eslint-plugin-tsdoc';
|
|
7
|
+
import typescriptEslint from 'typescript-eslint';
|
|
8
|
+
import zod from 'eslint-plugin-zod';
|
|
9
|
+
const DEFAULT_ROOTS = ['apps', 'libs', 'packages', 'plugins', 'tools'];
|
|
10
|
+
const PLUGIN_NAMES = [
|
|
11
|
+
'eslint-plugin-jsdoc',
|
|
12
|
+
'eslint-plugin-tsdoc',
|
|
13
|
+
'eslint-plugin-sonarjs',
|
|
14
|
+
'eslint-plugin-no-barrel-files',
|
|
15
|
+
'eslint-plugin-security',
|
|
16
|
+
'eslint-plugin-zod',
|
|
17
|
+
];
|
|
18
|
+
const CODE_EXTENSIONS = 'js,jsx,cjs,cts,mjs,mts,ts,tsx';
|
|
19
|
+
const TYPESCRIPT_EXTENSIONS = 'cts,mts,ts,tsx';
|
|
20
|
+
const GENERATED_IGNORES = [
|
|
21
|
+
'**/*.spec.*',
|
|
22
|
+
'**/*.test.*',
|
|
23
|
+
'**/__tests__/**',
|
|
24
|
+
'**/generated/**',
|
|
25
|
+
'**/dist/**',
|
|
26
|
+
'**/out-tsc/**',
|
|
27
|
+
'**/coverage/**',
|
|
28
|
+
];
|
|
29
|
+
const DOCUMENTATION_CONTEXTS = [
|
|
30
|
+
'FunctionDeclaration',
|
|
31
|
+
'FunctionExpression',
|
|
32
|
+
'ArrowFunctionExpression',
|
|
33
|
+
'ClassDeclaration',
|
|
34
|
+
'ClassExpression',
|
|
35
|
+
'MethodDefinition',
|
|
36
|
+
'TSDeclareFunction',
|
|
37
|
+
'TSInterfaceDeclaration',
|
|
38
|
+
'TSTypeAliasDeclaration',
|
|
39
|
+
'TSEnumDeclaration',
|
|
40
|
+
'TSMethodSignature',
|
|
41
|
+
'TSPropertySignature',
|
|
42
|
+
'PropertyDefinition:not([accessibility="private"]):not([accessibility="protected"])',
|
|
43
|
+
'ExportNamedDeclaration > VariableDeclaration',
|
|
44
|
+
];
|
|
45
|
+
/**
|
|
46
|
+
* Return the OTWLD quality baseline as native ESLint flat configuration.
|
|
47
|
+
* @param options - Optional roots and bundled plugin exceptions.
|
|
48
|
+
* @returns The flat configuration entries owned by OTWLD.
|
|
49
|
+
* @throws TypeError when the options object contains an unsupported shape or key.
|
|
50
|
+
*/
|
|
51
|
+
export function otwld(options = {}) {
|
|
52
|
+
const resolved = resolveOptions(options);
|
|
53
|
+
const codeFiles = filesForRoots(resolved.roots, CODE_EXTENSIONS);
|
|
54
|
+
const typescriptFiles = filesForRoots(resolved.roots, TYPESCRIPT_EXTENSIONS);
|
|
55
|
+
const configs = [
|
|
56
|
+
scopeConfig(js.configs.recommended, codeFiles),
|
|
57
|
+
...typescriptEslint.configs.recommended.map((config) => {
|
|
58
|
+
const flatConfig = config;
|
|
59
|
+
return scopeConfig(flatConfig, flatConfig.languageOptions ? codeFiles : typescriptFiles);
|
|
60
|
+
}),
|
|
61
|
+
];
|
|
62
|
+
if (!resolved.disabled.has('eslint-plugin-jsdoc')) {
|
|
63
|
+
const recommended = jsdoc.configs['flat/recommended-tsdoc'];
|
|
64
|
+
configs.push(scopeConfig({
|
|
65
|
+
...recommended,
|
|
66
|
+
rules: strictRules(recommended.rules),
|
|
67
|
+
}, codeFiles), {
|
|
68
|
+
files: codeFiles,
|
|
69
|
+
ignores: GENERATED_IGNORES,
|
|
70
|
+
rules: documentationRules(),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
if (!resolved.disabled.has('eslint-plugin-sonarjs')) {
|
|
74
|
+
const recommended = sonarjs.configs.recommended;
|
|
75
|
+
configs.push(scopeConfig({
|
|
76
|
+
...recommended,
|
|
77
|
+
rules: strictRules(recommended.rules),
|
|
78
|
+
}, codeFiles), {
|
|
79
|
+
files: codeFiles,
|
|
80
|
+
ignores: GENERATED_IGNORES,
|
|
81
|
+
rules: {
|
|
82
|
+
'sonarjs/cognitive-complexity': ['error', 10],
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
if (!resolved.disabled.has('eslint-plugin-no-barrel-files')) {
|
|
87
|
+
configs.push({
|
|
88
|
+
files: typescriptFiles,
|
|
89
|
+
ignores: GENERATED_IGNORES,
|
|
90
|
+
plugins: { 'no-barrel-files': noBarrelFiles },
|
|
91
|
+
rules: {
|
|
92
|
+
'no-barrel-files/no-barrel-files': [
|
|
93
|
+
'error',
|
|
94
|
+
{
|
|
95
|
+
allow: [
|
|
96
|
+
'**/src/index.ts',
|
|
97
|
+
'**/src/public-api.ts',
|
|
98
|
+
'**/testing/src/index.ts',
|
|
99
|
+
'src/index.ts',
|
|
100
|
+
'src/public-api.ts',
|
|
101
|
+
'testing/src/index.ts',
|
|
102
|
+
'libs/**/src/index.ts',
|
|
103
|
+
'libs/**/src/public-api.ts',
|
|
104
|
+
'libs/**/testing/src/index.ts',
|
|
105
|
+
'plugins/**/src/index.ts',
|
|
106
|
+
'plugins/**/src/public-api.ts',
|
|
107
|
+
'plugins/**/testing/src/index.ts',
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
if (!resolved.disabled.has('eslint-plugin-security')) {
|
|
115
|
+
const recommended = security.configs.recommended;
|
|
116
|
+
configs.push(scopeConfig({
|
|
117
|
+
...recommended,
|
|
118
|
+
rules: strictRules(recommended.rules),
|
|
119
|
+
}, codeFiles));
|
|
120
|
+
}
|
|
121
|
+
if (!resolved.disabled.has('eslint-plugin-zod')) {
|
|
122
|
+
const recommended = zod.configs.recommended;
|
|
123
|
+
configs.push(scopeConfig({
|
|
124
|
+
...recommended,
|
|
125
|
+
rules: strictRules(recommended.rules),
|
|
126
|
+
}, typescriptFiles));
|
|
127
|
+
}
|
|
128
|
+
if (!resolved.disabled.has('eslint-plugin-tsdoc')) {
|
|
129
|
+
configs.push({
|
|
130
|
+
files: typescriptFiles,
|
|
131
|
+
ignores: GENERATED_IGNORES,
|
|
132
|
+
plugins: { tsdoc },
|
|
133
|
+
rules: { 'tsdoc/syntax': 'error' },
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
configs.push({
|
|
137
|
+
files: codeFiles,
|
|
138
|
+
ignores: GENERATED_IGNORES,
|
|
139
|
+
rules: nativeRules(),
|
|
140
|
+
});
|
|
141
|
+
configs.push({
|
|
142
|
+
files: typescriptFiles,
|
|
143
|
+
ignores: GENERATED_IGNORES,
|
|
144
|
+
rules: typescriptRules(),
|
|
145
|
+
});
|
|
146
|
+
configs.push({
|
|
147
|
+
ignores: [
|
|
148
|
+
'**/dist/**',
|
|
149
|
+
'**/generated/**',
|
|
150
|
+
'**/out-tsc/**',
|
|
151
|
+
'**/coverage/**',
|
|
152
|
+
'**/vitest.config.*.timestamp*',
|
|
153
|
+
],
|
|
154
|
+
});
|
|
155
|
+
return configs;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Resolve and validate the public options without checking filesystem state.
|
|
159
|
+
* @param options - User-provided configuration options.
|
|
160
|
+
* @returns Normalized options used by the factory.
|
|
161
|
+
* @throws TypeError when an option is invalid.
|
|
162
|
+
*/
|
|
163
|
+
function resolveOptions(options) {
|
|
164
|
+
if (!isRecord(options)) {
|
|
165
|
+
throw new TypeError('otwld options must be an object.');
|
|
166
|
+
}
|
|
167
|
+
validateOptionKeys(options);
|
|
168
|
+
return {
|
|
169
|
+
roots: resolveRoots(options),
|
|
170
|
+
disabled: resolveDisabled(options),
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Reject top-level options that are not part of the public API.
|
|
175
|
+
* @param options - User-provided options.
|
|
176
|
+
* @throws TypeError when an unknown option is present.
|
|
177
|
+
*/
|
|
178
|
+
function validateOptionKeys(options) {
|
|
179
|
+
for (const key of Object.keys(options)) {
|
|
180
|
+
if (key !== 'roots' && key !== 'disabled') {
|
|
181
|
+
throw new TypeError(`otwld received an unknown option: "${key}".`);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Validate and copy configured code roots.
|
|
187
|
+
* @param options - User-provided options.
|
|
188
|
+
* @returns Configured code roots.
|
|
189
|
+
* @throws TypeError when roots is not an array of non-empty paths.
|
|
190
|
+
*/
|
|
191
|
+
function resolveRoots(options) {
|
|
192
|
+
const roots = options['roots'] === undefined ? DEFAULT_ROOTS : options['roots'];
|
|
193
|
+
if (!Array.isArray(roots) ||
|
|
194
|
+
roots.some((root) => typeof root !== 'string' || root.trim().length === 0)) {
|
|
195
|
+
throw new TypeError('otwld option "roots" must be an array of paths.');
|
|
196
|
+
}
|
|
197
|
+
return [...roots];
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Validate and collect disabled bundled plugins.
|
|
201
|
+
* @param options - User-provided options.
|
|
202
|
+
* @returns Disabled plugin names.
|
|
203
|
+
* @throws TypeError when a disabled plugin name or value is invalid.
|
|
204
|
+
*/
|
|
205
|
+
function resolveDisabled(options) {
|
|
206
|
+
const disabled = options['disabled'] ?? {};
|
|
207
|
+
if (!isRecord(disabled)) {
|
|
208
|
+
throw new TypeError('otwld option "disabled" must be an object keyed by bundled plugin name.');
|
|
209
|
+
}
|
|
210
|
+
const disabledPlugins = new Set();
|
|
211
|
+
for (const [plugin, value] of Object.entries(disabled)) {
|
|
212
|
+
if (!PLUGIN_NAMES.includes(plugin)) {
|
|
213
|
+
throw new TypeError(`otwld received an unknown disabled plugin: "${plugin}".`);
|
|
214
|
+
}
|
|
215
|
+
if (typeof value !== 'boolean') {
|
|
216
|
+
throw new TypeError(`otwld disabled option "${plugin}" must be a boolean.`);
|
|
217
|
+
}
|
|
218
|
+
if (value) {
|
|
219
|
+
disabledPlugins.add(plugin);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return disabledPlugins;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Build recursive ESLint globs for the configured code roots.
|
|
226
|
+
* @param roots - Code root directories.
|
|
227
|
+
* @param extensions - Comma-separated extension list for an ESLint brace glob.
|
|
228
|
+
* @returns ESLint file patterns.
|
|
229
|
+
*/
|
|
230
|
+
function filesForRoots(roots, extensions) {
|
|
231
|
+
return roots.map((root) => `${root}/**/*.{${extensions}}`);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Scope a shareable config to the configured production code files.
|
|
235
|
+
* @param config - Flat config entry to scope.
|
|
236
|
+
* @param files - File patterns covered by the entry.
|
|
237
|
+
* @returns A scoped flat config entry.
|
|
238
|
+
*/
|
|
239
|
+
function scopeConfig(config, files) {
|
|
240
|
+
return { ...config, files, ignores: GENERATED_IGNORES };
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Convert warning severities from third-party recommendations to errors.
|
|
244
|
+
* @param rules - Rules from a plugin recommendation.
|
|
245
|
+
* @returns Rules with warning-only severities promoted to errors.
|
|
246
|
+
*/
|
|
247
|
+
function strictRules(rules) {
|
|
248
|
+
return Object.fromEntries(Object.entries(rules ?? {}).map(([name, rule]) => [
|
|
249
|
+
name,
|
|
250
|
+
toError(rule),
|
|
251
|
+
]));
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Promote a single ESLint rule entry from warning to error.
|
|
255
|
+
* @param rule - ESLint rule entry.
|
|
256
|
+
* @returns The same rule entry with warning severity promoted.
|
|
257
|
+
*/
|
|
258
|
+
function toError(rule) {
|
|
259
|
+
if (rule === 'warn' || rule === 1) {
|
|
260
|
+
return 'error';
|
|
261
|
+
}
|
|
262
|
+
if (Array.isArray(rule) && (rule[0] === 'warn' || rule[0] === 1)) {
|
|
263
|
+
return ['error', ...rule.slice(1)];
|
|
264
|
+
}
|
|
265
|
+
return rule;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Return strict native ESLint rules shared by all OTWLD code roots.
|
|
269
|
+
* @returns Native ESLint rules.
|
|
270
|
+
*/
|
|
271
|
+
function nativeRules() {
|
|
272
|
+
return {
|
|
273
|
+
'array-callback-return': ['error', { allowImplicit: false }],
|
|
274
|
+
'consistent-return': 'error',
|
|
275
|
+
curly: ['error', 'all'],
|
|
276
|
+
'default-case-last': 'error',
|
|
277
|
+
'default-param-last': 'error',
|
|
278
|
+
eqeqeq: ['error', 'always', { null: 'ignore' }],
|
|
279
|
+
'no-console': ['error', { allow: ['error'] }],
|
|
280
|
+
'no-duplicate-imports': ['error', { allowSeparateTypeImports: true }],
|
|
281
|
+
'no-eval': 'error',
|
|
282
|
+
'no-implicit-coercion': 'error',
|
|
283
|
+
'no-implicit-globals': 'error',
|
|
284
|
+
'no-implied-eval': 'error',
|
|
285
|
+
'no-labels': ['error', { allowLoop: false, allowSwitch: false }],
|
|
286
|
+
'no-new-func': 'error',
|
|
287
|
+
'no-new-wrappers': 'error',
|
|
288
|
+
'no-param-reassign': 'error',
|
|
289
|
+
'no-promise-executor-return': 'error',
|
|
290
|
+
'no-restricted-syntax': [
|
|
291
|
+
'error',
|
|
292
|
+
{
|
|
293
|
+
selector: 'ForInStatement',
|
|
294
|
+
message: 'Use Object.keys, Object.entries, or a Map instead of for-in.',
|
|
295
|
+
},
|
|
296
|
+
{ selector: 'WithStatement', message: 'Do not use with statements.' },
|
|
297
|
+
],
|
|
298
|
+
'no-return-assign': 'error',
|
|
299
|
+
'no-script-url': 'error',
|
|
300
|
+
'no-sequences': 'error',
|
|
301
|
+
'no-throw-literal': 'error',
|
|
302
|
+
'no-unmodified-loop-condition': 'error',
|
|
303
|
+
'no-warning-comments': [
|
|
304
|
+
'error',
|
|
305
|
+
{ terms: ['TODO', 'FIXME', 'HACK', 'XXX'], location: 'anywhere' },
|
|
306
|
+
],
|
|
307
|
+
'no-else-return': ['error', { allowElseIf: false }],
|
|
308
|
+
'no-lonely-if': 'error',
|
|
309
|
+
'no-unneeded-ternary': 'error',
|
|
310
|
+
'no-unreachable-loop': 'error',
|
|
311
|
+
'no-useless-call': 'error',
|
|
312
|
+
'no-useless-concat': 'error',
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Return strict TypeScript rules for TypeScript source files.
|
|
317
|
+
* @returns TypeScript-specific rules.
|
|
318
|
+
*/
|
|
319
|
+
function typescriptRules() {
|
|
320
|
+
return {
|
|
321
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
322
|
+
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
323
|
+
'@typescript-eslint/no-require-imports': 'error',
|
|
324
|
+
'@typescript-eslint/no-unused-vars': [
|
|
325
|
+
'error',
|
|
326
|
+
{ args: 'after-used', caughtErrors: 'all', ignoreRestSiblings: false },
|
|
327
|
+
],
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Return documentation and complexity rules for public code contracts.
|
|
332
|
+
* @returns Documentation rules.
|
|
333
|
+
*/
|
|
334
|
+
function documentationRules() {
|
|
335
|
+
return {
|
|
336
|
+
'jsdoc/check-access': 'error',
|
|
337
|
+
'jsdoc/check-alignment': 'error',
|
|
338
|
+
'jsdoc/check-param-names': 'error',
|
|
339
|
+
'jsdoc/check-property-names': 'error',
|
|
340
|
+
'jsdoc/check-tag-names': ['error', { typed: true }],
|
|
341
|
+
'jsdoc/check-template-names': 'error',
|
|
342
|
+
'jsdoc/check-types': 'error',
|
|
343
|
+
'jsdoc/check-values': 'error',
|
|
344
|
+
'jsdoc/empty-tags': 'error',
|
|
345
|
+
'jsdoc/escape-inline-tags': 'error',
|
|
346
|
+
'jsdoc/implements-on-classes': 'error',
|
|
347
|
+
'jsdoc/multiline-blocks': 'error',
|
|
348
|
+
'jsdoc/no-blank-block-descriptions': 'error',
|
|
349
|
+
'jsdoc/no-blank-blocks': 'error',
|
|
350
|
+
'jsdoc/no-defaults': 'error',
|
|
351
|
+
'jsdoc/no-multi-asterisks': 'error',
|
|
352
|
+
'jsdoc/no-types': 'error',
|
|
353
|
+
'jsdoc/require-description-complete-sentence': 'error',
|
|
354
|
+
'jsdoc/reject-any-type': 'error',
|
|
355
|
+
'jsdoc/reject-function-type': 'error',
|
|
356
|
+
'jsdoc/tag-lines': 'error',
|
|
357
|
+
'jsdoc/ts-no-empty-object-type': 'error',
|
|
358
|
+
'jsdoc/valid-types': 'error',
|
|
359
|
+
'jsdoc/require-jsdoc': [
|
|
360
|
+
'error',
|
|
361
|
+
{
|
|
362
|
+
enableFixer: false,
|
|
363
|
+
publicOnly: true,
|
|
364
|
+
require: {
|
|
365
|
+
ArrowFunctionExpression: true,
|
|
366
|
+
ClassDeclaration: true,
|
|
367
|
+
ClassExpression: true,
|
|
368
|
+
FunctionDeclaration: true,
|
|
369
|
+
FunctionExpression: true,
|
|
370
|
+
MethodDefinition: true,
|
|
371
|
+
},
|
|
372
|
+
contexts: DOCUMENTATION_CONTEXTS,
|
|
373
|
+
},
|
|
374
|
+
],
|
|
375
|
+
'jsdoc/require-description': [
|
|
376
|
+
'error',
|
|
377
|
+
{ contexts: DOCUMENTATION_CONTEXTS },
|
|
378
|
+
],
|
|
379
|
+
'jsdoc/require-param': ['error', { contexts: DOCUMENTATION_CONTEXTS }],
|
|
380
|
+
'jsdoc/require-param-description': [
|
|
381
|
+
'error',
|
|
382
|
+
{ contexts: DOCUMENTATION_CONTEXTS },
|
|
383
|
+
],
|
|
384
|
+
'jsdoc/require-param-name': 'error',
|
|
385
|
+
'jsdoc/require-returns': ['error', { contexts: DOCUMENTATION_CONTEXTS }],
|
|
386
|
+
'jsdoc/require-returns-description': [
|
|
387
|
+
'error',
|
|
388
|
+
{ contexts: DOCUMENTATION_CONTEXTS },
|
|
389
|
+
],
|
|
390
|
+
'jsdoc/require-returns-check': 'error',
|
|
391
|
+
'jsdoc/require-template': 'error',
|
|
392
|
+
'jsdoc/require-template-description': 'error',
|
|
393
|
+
'jsdoc/require-throws': 'error',
|
|
394
|
+
'jsdoc/require-throws-description': 'error',
|
|
395
|
+
'jsdoc/require-yields': 'error',
|
|
396
|
+
'jsdoc/require-yields-description': 'error',
|
|
397
|
+
'jsdoc/require-property': 'error',
|
|
398
|
+
'jsdoc/require-property-description': 'error',
|
|
399
|
+
'jsdoc/require-property-name': 'error',
|
|
400
|
+
'jsdoc/require-hyphen-before-param-description': 'error',
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Check whether a value is a plain object-like record.
|
|
405
|
+
* @param value - Value to inspect.
|
|
406
|
+
* @returns Whether the value can be used as an options record.
|
|
407
|
+
*/
|
|
408
|
+
function isRecord(value) {
|
|
409
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
410
|
+
}
|
|
411
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../../plugins/eslint/config/src/lib/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,gBAAgB,MAAM,mBAAmB,CAAC;AACjD,OAAO,GAAG,MAAM,mBAAmB,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sB,EAAE,CAAC;QACtE,iCAAiC,EAAE;YACjC,OAAO;YACP,EAAE,QAAQ,EAAE,sBAAsB,EAAE;SACrC;QACD,0BAA0B,EAAE,OAAO;QACnC,uBAAuB,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,sBAAsB,EAAE,CAAC;QACxE,mCAAmC,EAAE;YACnC,OAAO;YACP,EAAE,QAAQ,EAAE,sBAAsB,EAAE;SACrC;QACD,6BAA6B,EAAE,OAAO;QACtC,wBAAwB,EAAE,OAAO;QACjC,oCAAoC,EAAE,OAAO;QAC7C,sBAAsB,EAAE,OAAO;QAC/B,kCAAkC,EAAE,OAAO;QAC3C,sBAAsB,EAAE,OAAO;QAC/B,kCAAkC,EAAE,OAAO;QAC3C,wBAAwB,EAAE,OAAO;QACjC,oCAAoC,EAAE,OAAO;QAC7C,6BAA6B,EAAE,OAAO;QACtC,+CAA+C,EAAE,OAAO;KACzD,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Names of the bundled plugin rule groups that can be disabled.
|
|
3
|
+
*/
|
|
4
|
+
export type OtwldPlugin = 'eslint-plugin-jsdoc' | 'eslint-plugin-tsdoc' | 'eslint-plugin-sonarjs' | 'eslint-plugin-no-barrel-files' | 'eslint-plugin-security' | 'eslint-plugin-zod';
|
|
5
|
+
/**
|
|
6
|
+
* Options for the OTWLD ESLint quality baseline.
|
|
7
|
+
*/
|
|
8
|
+
export interface OtwldOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Code root directories. Providing this array replaces the defaults.
|
|
11
|
+
*/
|
|
12
|
+
readonly roots?: readonly string[];
|
|
13
|
+
/**
|
|
14
|
+
* Bundled plugin rule groups to disable explicitly.
|
|
15
|
+
*/
|
|
16
|
+
readonly disabled?: Partial<Record<OtwldPlugin, boolean>>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../../plugins/eslint/config/src/lib/options.ts"],"names":[],"mappings":""}
|