@mrpelz/boilerplate-common 10.1.0 → 11.0.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/eslint.config.js +10 -6
- package/package.json +2 -1
- package/scripts/bootstrap.sh +1 -1
- package/tsconfig.json +1 -0
- package/tsconfig.meta.json +3 -2
package/eslint.config.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
|
+
import stylisticTs from '@stylistic/eslint-plugin-ts';
|
|
2
3
|
import typescriptPlugin from '@typescript-eslint/eslint-plugin';
|
|
3
4
|
// @ts-ignore
|
|
4
5
|
import typescriptParser from '@typescript-eslint/parser';
|
|
@@ -18,9 +19,9 @@ const unicornRecommendedRules =
|
|
|
18
19
|
/** @type {import('eslint').Linter.RulesRecord} */
|
|
19
20
|
export const rules = {
|
|
20
21
|
...unicornRecommendedRules,
|
|
22
|
+
'@stylistic/ts/no-extra-semi': 'error',
|
|
21
23
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
22
24
|
'@typescript-eslint/ban-ts-comment': 'error',
|
|
23
|
-
'@typescript-eslint/ban-types': 'error',
|
|
24
25
|
'@typescript-eslint/explicit-module-boundary-types': [
|
|
25
26
|
'error',
|
|
26
27
|
{
|
|
@@ -137,9 +138,9 @@ export const rules = {
|
|
|
137
138
|
'@typescript-eslint/no-array-constructor': 'error',
|
|
138
139
|
'@typescript-eslint/no-empty-function': 'error',
|
|
139
140
|
'@typescript-eslint/no-empty-interface': 'error',
|
|
141
|
+
'@typescript-eslint/no-empty-object-type': 'error',
|
|
140
142
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
141
143
|
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
142
|
-
'@typescript-eslint/no-extra-semi': 'error',
|
|
143
144
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
144
145
|
'@typescript-eslint/no-misused-new': 'error',
|
|
145
146
|
'@typescript-eslint/no-namespace': 'error',
|
|
@@ -147,6 +148,7 @@ export const rules = {
|
|
|
147
148
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
148
149
|
'@typescript-eslint/no-shadow': 'error',
|
|
149
150
|
'@typescript-eslint/no-this-alias': 'error',
|
|
151
|
+
'@typescript-eslint/no-unsafe-function-type': 'error',
|
|
150
152
|
'@typescript-eslint/no-unused-vars': [
|
|
151
153
|
'warn',
|
|
152
154
|
{
|
|
@@ -156,6 +158,7 @@ export const rules = {
|
|
|
156
158
|
'@typescript-eslint/no-use-before-define': 'error',
|
|
157
159
|
'@typescript-eslint/no-useless-constructor': 'warn',
|
|
158
160
|
'@typescript-eslint/no-var-requires': 'error',
|
|
161
|
+
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
159
162
|
'@typescript-eslint/parameter-properties': [
|
|
160
163
|
'warn',
|
|
161
164
|
{
|
|
@@ -452,15 +455,16 @@ export const rules = {
|
|
|
452
455
|
|
|
453
456
|
/** @type {Record<string, import('eslint').ESLint.Plugin>} */
|
|
454
457
|
export const plugins = {
|
|
458
|
+
'@stylistic/ts': stylisticTs,
|
|
459
|
+
// @ts-ignore
|
|
455
460
|
'@typescript-eslint': typescriptPlugin,
|
|
456
461
|
import: importPlugin,
|
|
457
462
|
prettier: prettierPlugin,
|
|
458
|
-
// @ts-ignore
|
|
459
463
|
'simple-import-sort': simpleImportSortPlugin,
|
|
460
464
|
unicorn: { rules: pluginUnicorn.rules },
|
|
461
465
|
};
|
|
462
466
|
|
|
463
|
-
/** @type {import('eslint').Linter.
|
|
467
|
+
/** @type {import('eslint').Linter.Config} */
|
|
464
468
|
export const configMeta = {
|
|
465
469
|
files: ['**/*.{js,mjs}'],
|
|
466
470
|
ignores: ['dist/**/*', 'node_modules/**/*', 'src/**/*', 'packages/**/*'],
|
|
@@ -491,7 +495,7 @@ export const configMeta = {
|
|
|
491
495
|
},
|
|
492
496
|
};
|
|
493
497
|
|
|
494
|
-
/** @type {import('eslint').Linter.
|
|
498
|
+
/** @type {import('eslint').Linter.Config} */
|
|
495
499
|
export const config = {
|
|
496
500
|
files: ['src/**/*.{js,ts}'],
|
|
497
501
|
languageOptions: {
|
|
@@ -521,5 +525,5 @@ export const config = {
|
|
|
521
525
|
},
|
|
522
526
|
};
|
|
523
527
|
|
|
524
|
-
/** @type {import('eslint').Linter.
|
|
528
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
525
529
|
export default [configMeta, config];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrpelz/boilerplate-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mrpelz/boilerplate.git",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@commitlint/config-conventional": "latest",
|
|
37
37
|
"@commitlint/types": "latest",
|
|
38
38
|
"@jest/globals": "latest",
|
|
39
|
+
"@stylistic/eslint-plugin-ts": "latest",
|
|
39
40
|
"@types/eslint": "latest",
|
|
40
41
|
"@typescript-eslint/eslint-plugin": "latest",
|
|
41
42
|
"@typescript-eslint/parser": "latest",
|
package/scripts/bootstrap.sh
CHANGED
package/tsconfig.json
CHANGED
package/tsconfig.meta.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
+
"declaration": false,
|
|
4
|
+
"declarationMap": false,
|
|
3
5
|
"incremental": false,
|
|
4
6
|
"moduleResolution": "Node",
|
|
5
|
-
"module": "None"
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
+
"module": "None"
|
|
7
8
|
},
|
|
8
9
|
"exclude": ["dist/**/*", "node_modules/**/*", "packages/**/*", "src/**/*"],
|
|
9
10
|
"extends": "./tsconfig.json",
|