Skip to content

Commit aa46fa3

Browse files
committed
chore: sync config files
- https://gist.github.com/unicornware/1ecc41e7407de9d8c9e90e088cd88d6d Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent c59b7de commit aa46fa3

37 files changed

+337
-337
lines changed

.commitlintrc.cts

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* @file Configuration - commitlint
3+
* @module config/commitlint
4+
* @see https://commitlint.js.org
5+
*/
6+
7+
import {
8+
RuleConfigSeverity as Severity,
9+
type UserConfig
10+
} from '@commitlint/types'
11+
import { scopes } from '@flex-development/commitlint-config'
12+
13+
/**
14+
* `commitlint` configuration object.
15+
*
16+
* @const {UserConfig} config
17+
*/
18+
const config: UserConfig = {
19+
extends: ['@flex-development'],
20+
rules: {
21+
'scope-enum': [
22+
Severity.Error,
23+
'always',
24+
scopes(['bundle', 'options', 'transpile'])
25+
]
26+
}
27+
}
28+
29+
export default config

.commitlintrc.json

-68
This file was deleted.

.cspell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"failFast": false,
1414
"flagWords": [],
1515
"ignorePaths": [
16+
"**/*.log",
1617
"**/*.snap",
1718
"**/.*ignore",
1819
"**/.gitconfig",
1920
"**/CHANGELOG.md",
2021
"**/LICENSE.md",
21-
"**/RELEASE_NOTES.md",
2222
".cspell.json",
2323
".git/",
2424
".husky/_/",

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ yarn.lock
1919
!**/__fixtures__/**/node_modules/
2020
!**/typings/**/dist/
2121
!.codecov.yml
22-
!.commitlintrc.json
22+
!.commitlintrc.*
2323
!.cspell.json
2424
!.github/
2525
!.graphqlrc.yml

.eslintrc.base.cjs

+53-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const config = {
5959
parser: '@typescript-eslint/parser',
6060
parserOptions: {
6161
extraFileExtensions: [],
62-
project: './tsconfig.json',
62+
project: ['./tsconfig.json', 'tsconfig.cjs.json'],
6363
sourceType: require('./package.json').type,
6464
tsconfigRootDir: process.cwd(),
6565
warnOnUnsupportedTypeScriptVersion: true
@@ -723,7 +723,7 @@ const config = {
723723
'unicorn/no-static-only-class': 0,
724724
'unicorn/no-thenable': 2,
725725
'unicorn/no-this-assignment': 2,
726-
'unicorn/no-unreadable-array-destructuring': 2,
726+
'unicorn/no-unreadable-array-destructuring': 0,
727727
'unicorn/no-unsafe-regex': 0,
728728
'unicorn/no-unused-properties': 2,
729729
'unicorn/no-useless-fallback-in-spread': 2,
@@ -997,6 +997,57 @@ const config = {
997997
plugins: ['markdown', 'markdownlint'],
998998
processor: 'markdown/markdown'
999999
},
1000+
{
1001+
files: '**/*.md/*.+(cjs|cts|js|jsx|mjs|mts|ts|tsx)',
1002+
parserOptions: { project: false },
1003+
rules: {
1004+
'@typescript-eslint/await-thenable': 0,
1005+
'@typescript-eslint/consistent-type-exports': 0,
1006+
'@typescript-eslint/dot-notation': 0,
1007+
'@typescript-eslint/naming-convention': 0,
1008+
'@typescript-eslint/no-base-to-string': 0,
1009+
'@typescript-eslint/no-confusing-void-expression': 0,
1010+
'@typescript-eslint/no-floating-promises': 0,
1011+
'@typescript-eslint/no-for-in-array': 0,
1012+
'@typescript-eslint/no-implied-eval': 0,
1013+
'@typescript-eslint/no-meaningless-void-operator': 0,
1014+
'@typescript-eslint/no-misused-promises': 0,
1015+
'@typescript-eslint/no-mixed-enums': 0,
1016+
'@typescript-eslint/no-redundant-type-constituents': 0,
1017+
'@typescript-eslint/no-throw-literal': 0,
1018+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 0,
1019+
'@typescript-eslint/no-unnecessary-condition': 0,
1020+
'@typescript-eslint/no-unnecessary-qualifier': 0,
1021+
'@typescript-eslint/no-unnecessary-type-arguments': 0,
1022+
'@typescript-eslint/no-unnecessary-type-assertion': 0,
1023+
'@typescript-eslint/no-unsafe-argument': 0,
1024+
'@typescript-eslint/no-unsafe-assignment': 0,
1025+
'@typescript-eslint/no-unsafe-call': 0,
1026+
'@typescript-eslint/no-unsafe-member-access': 0,
1027+
'@typescript-eslint/no-unsafe-return': 0,
1028+
'@typescript-eslint/no-unused-expressions': 0,
1029+
'@typescript-eslint/non-nullable-type-assertion-style': 0,
1030+
'@typescript-eslint/prefer-includes': 0,
1031+
'@typescript-eslint/prefer-nullish-coalescing': 0,
1032+
'@typescript-eslint/prefer-readonly': 0,
1033+
'@typescript-eslint/prefer-readonly-parameter-types': 0,
1034+
'@typescript-eslint/prefer-reduce-type-parameter': 0,
1035+
'@typescript-eslint/prefer-regexp-exec': 0,
1036+
'@typescript-eslint/prefer-return-this-type': 0,
1037+
'@typescript-eslint/prefer-string-starts-ends-with': 0,
1038+
'@typescript-eslint/promise-function-async': 0,
1039+
'@typescript-eslint/require-array-sort-compare': 0,
1040+
'@typescript-eslint/require-await': 0,
1041+
'@typescript-eslint/restrict-plus-operands': 0,
1042+
'@typescript-eslint/restrict-template-expressions': 0,
1043+
'@typescript-eslint/return-await': 0,
1044+
'@typescript-eslint/strict-boolean-expressions': 0,
1045+
'@typescript-eslint/switch-exhaustiveness-check': 0,
1046+
'@typescript-eslint/unbound-method': 0,
1047+
'jsdoc/require-file-overview': 0,
1048+
'unicorn/filename-case': 0
1049+
}
1050+
},
10001051
{
10011052
files: '**/*.yml',
10021053
parser: 'yaml-eslint-parser',

.github/workflows/dependabot-auto.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
GIT_AUTHOR_NAME: ${{ steps.gpg-import.outputs.name }}
8888
GIT_COMMITTER_EMAIL: ${{ steps.gpg-import.outputs.email }}
8989
GIT_COMMITTER_NAME: ${{ steps.gpg-import.outputs.name }}
90-
COMMIT_MESSAGE: '[dependabot skip] fix lockfile for @dependabot'
90+
COMMIT_MESSAGE: 'build(yarn): [dependabot skip] fix lockfile for @dependabot'
9191
- id: approve-pr
9292
name: Approve pull request containing minor or patch updates
9393
if: steps.metadata.outputs.update-type != 'version-update:semver-major'

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,18 @@ codecov
5858
# ------------------------------------------------------------------------------
5959
**/.temp/
6060
**/dist/
61+
!**/__fixtures__/**/*.log
6162
!**/__fixtures__/**/dist/
6263
!**/typings/**/dist/
6364

6465
# Releases
6566
# ------------------------------------------------------------------------------
66-
RELEASE_NOTES.md
67+
**/RELEASE_NOTES.md
6768

6869
# Vercel
6970
# ------------------------------------------------------------------------------
7071
**/.vercel/
7172

7273
# Misc
7374
# ------------------------------------------------------------------------------
74-
**/scratch.ts
75+
**/scratch.*

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
# - https://typicode.github.io/husky/?id=husky_git_params-ie-commitlint-#/?id=husky_git_params-ie-commitlint-
88

99
yarn build
10-
commitlint --edit $1
10+
yarn commitlint --edit $1

.vscode/settings.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
"yaml"
182182
],
183183
"files.associations": {
184+
"*.log": "log",
184185
"*.snap": "jest-snapshot",
185186
".env.zsh": "shellscript",
186187
".markdownlintignore": "ignore",
@@ -299,6 +300,11 @@
299300
"resolutions"
300301
],
301302
"vsicons.associations.files": [
303+
{
304+
"extensions": [".commitlintrc.cts"],
305+
"format": "svg",
306+
"icon": "commitlint"
307+
},
302308
{
303309
"extensions": [".eslintrc.base.cjs"],
304310
"format": "svg",
@@ -310,7 +316,7 @@
310316
"icon": "graphql"
311317
},
312318
{
313-
"extensions": ["build.json", "typecheck.json"],
319+
"extensions": ["build.json", "cjs.json", "typecheck.json"],
314320
"format": "svg",
315321
"icon": "tsconfig"
316322
},

__tests__/setup/setup.ts

-14
This file was deleted.

__tests__/setup/teardown.ts

-14
This file was deleted.

__tests__/ts/v4/tsconfig.json

+4-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"checkJs": false,
88
"declaration": false,
99
"declarationMap": false,
10-
"emitDecoratorMetadata": true,
10+
"emitDecoratorMetadata": false,
1111
"esModuleInterop": true,
1212
"exactOptionalPropertyTypes": true,
1313
"experimentalDecorators": true,
@@ -35,10 +35,11 @@
3535
"#tests/*": ["__tests__/*"]
3636
},
3737
"preserveConstEnums": true,
38-
"preserveSymlinks": true,
38+
"preserveSymlinks": false,
3939
"pretty": true,
4040
"resolveJsonModule": true,
4141
"rootDir": "../../..",
42+
"skipDefaultLibCheck": false,
4243
"skipLibCheck": true,
4344
"sourceMap": true,
4445
"strict": true,
@@ -49,13 +50,5 @@
4950
"useUnknownInCatchVariables": true
5051
},
5152
"exclude": ["**/coverage", "**/dist", "**/node_modules"],
52-
"include": [
53-
"**/**.cjs",
54-
"**/**.mjs",
55-
"**/**.mts",
56-
"**/**.ts",
57-
"**/.*.cjs",
58-
"**/__fixtures__/**/*.cts",
59-
"**/__fixtures__/**/*.js"
60-
]
53+
"include": ["**/**.js", "**/**.mjs", "**/**.mts", "**/**.ts"]
6154
}

__tests__/ts/v4/tsconfig.typecheck.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,13 @@
22
"compilerOptions": {
33
"target": "es2020"
44
},
5-
"extends": "./tsconfig.json"
5+
"extends": "./tsconfig.json",
6+
"include": [
7+
"**/**.cts",
8+
"**/**.mts",
9+
"**/**.ts",
10+
"**/.*.cts",
11+
"**/.*.mts",
12+
"**/.*.ts"
13+
]
614
}

0 commit comments

Comments
 (0)