Skip to content

Commit 7383922

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

30 files changed

Lines changed: 382 additions & 349 deletions

.commitlintrc.json

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,3 @@
11
{
2-
"defaultIgnores": true,
3-
"extends": ["@commitlint/config-conventional"],
4-
"formatter": "@commitlint/format",
5-
"ignores": [],
6-
"rules": {
7-
"scope-case": [2, "always", ["kebab-case", "lower-case"]],
8-
"scope-enum": [
9-
2,
10-
"always",
11-
[
12-
"build",
13-
"deps",
14-
"deps-bundle",
15-
"deps-dev",
16-
"deps-opt",
17-
"deps-peer",
18-
"esm",
19-
"exports",
20-
"github",
21-
"install",
22-
"loader",
23-
"nvm",
24-
"patches",
25-
"pkg",
26-
"regex",
27-
"release",
28-
"scripts",
29-
"spelling",
30-
"tests",
31-
"ts",
32-
"vscode",
33-
"workflows",
34-
"yarn"
35-
]
36-
],
37-
"subject-case": [1, "always", "lower-case"],
38-
"type-enum": [
39-
2,
40-
"always",
41-
[
42-
"build",
43-
"chore",
44-
"ci",
45-
"docs",
46-
"feat",
47-
"fix",
48-
"perf",
49-
"refactor",
50-
"revert",
51-
"style",
52-
"test",
53-
"wip"
54-
]
55-
]
56-
}
2+
"extends": "@flex-development"
573
}

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"failFast": false,
1414
"flagWords": [],
1515
"ignorePaths": [
16+
"**/*.log",
1617
"**/*.snap",
1718
"**/.*ignore",
1819
"**/.gitconfig",

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
**/.DS_Store
88
**/__tests__/report.json
99
**/coverage/
10+
**/.temp/
1011
**/dist/
1112
**/node_modules/
1213
**/tsconfig*temp.json
@@ -18,7 +19,7 @@ yarn.lock
1819
!**/__fixtures__/**/node_modules/
1920
!**/typings/**/dist/
2021
!.codecov.yml
21-
!.commitlintrc.json
22+
!.commitlintrc.*
2223
!.cspell.json
2324
!.github/
2425
!.graphqlrc.yml

.eslintrc.base.cjs

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const config = {
5353
parser: '@typescript-eslint/parser',
5454
parserOptions: {
5555
extraFileExtensions: [],
56-
project: './tsconfig.json',
56+
project: ['./tsconfig.json', 'tsconfig.cjs.json'],
5757
sourceType: require('./package.json').type,
5858
tsconfigRootDir: process.cwd(),
5959
warnOnUnsupportedTypeScriptVersion: true
@@ -717,7 +717,7 @@ const config = {
717717
'unicorn/no-static-only-class': 0,
718718
'unicorn/no-thenable': 2,
719719
'unicorn/no-this-assignment': 2,
720-
'unicorn/no-unreadable-array-destructuring': 2,
720+
'unicorn/no-unreadable-array-destructuring': 0,
721721
'unicorn/no-unsafe-regex': 0,
722722
'unicorn/no-unused-properties': 2,
723723
'unicorn/no-useless-fallback-in-spread': 2,
@@ -905,7 +905,7 @@ const config = {
905905
}
906906
},
907907
{
908-
files: '**/*.+(json|jsonc)',
908+
files: '**/*.+(json|json5|jsonc)',
909909
parser: 'jsonc-eslint-parser',
910910
plugins: ['jsonc'],
911911
rules: {
@@ -980,7 +980,7 @@ const config = {
980980
}
981981
},
982982
{
983-
files: ['**/*.jsonc', 'tsconfig*.json'],
983+
files: ['**/*.+(json5|jsonc)', 'tsconfig*.json'],
984984
rules: {
985985
'jsonc/no-comments': 0
986986
}
@@ -991,6 +991,57 @@ const config = {
991991
plugins: ['markdown', 'markdownlint'],
992992
processor: 'markdown/markdown'
993993
},
994+
{
995+
files: '**/*.md/*.+(cjs|cts|js|jsx|mjs|mts|ts|tsx)',
996+
parserOptions: { project: false },
997+
rules: {
998+
'@typescript-eslint/await-thenable': 0,
999+
'@typescript-eslint/consistent-type-exports': 0,
1000+
'@typescript-eslint/dot-notation': 0,
1001+
'@typescript-eslint/naming-convention': 0,
1002+
'@typescript-eslint/no-base-to-string': 0,
1003+
'@typescript-eslint/no-confusing-void-expression': 0,
1004+
'@typescript-eslint/no-floating-promises': 0,
1005+
'@typescript-eslint/no-for-in-array': 0,
1006+
'@typescript-eslint/no-implied-eval': 0,
1007+
'@typescript-eslint/no-meaningless-void-operator': 0,
1008+
'@typescript-eslint/no-misused-promises': 0,
1009+
'@typescript-eslint/no-mixed-enums': 0,
1010+
'@typescript-eslint/no-redundant-type-constituents': 0,
1011+
'@typescript-eslint/no-throw-literal': 0,
1012+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 0,
1013+
'@typescript-eslint/no-unnecessary-condition': 0,
1014+
'@typescript-eslint/no-unnecessary-qualifier': 0,
1015+
'@typescript-eslint/no-unnecessary-type-arguments': 0,
1016+
'@typescript-eslint/no-unnecessary-type-assertion': 0,
1017+
'@typescript-eslint/no-unsafe-argument': 0,
1018+
'@typescript-eslint/no-unsafe-assignment': 0,
1019+
'@typescript-eslint/no-unsafe-call': 0,
1020+
'@typescript-eslint/no-unsafe-member-access': 0,
1021+
'@typescript-eslint/no-unsafe-return': 0,
1022+
'@typescript-eslint/no-unused-expressions': 0,
1023+
'@typescript-eslint/non-nullable-type-assertion-style': 0,
1024+
'@typescript-eslint/prefer-includes': 0,
1025+
'@typescript-eslint/prefer-nullish-coalescing': 0,
1026+
'@typescript-eslint/prefer-readonly': 0,
1027+
'@typescript-eslint/prefer-readonly-parameter-types': 0,
1028+
'@typescript-eslint/prefer-reduce-type-parameter': 0,
1029+
'@typescript-eslint/prefer-regexp-exec': 0,
1030+
'@typescript-eslint/prefer-return-this-type': 0,
1031+
'@typescript-eslint/prefer-string-starts-ends-with': 0,
1032+
'@typescript-eslint/promise-function-async': 0,
1033+
'@typescript-eslint/require-array-sort-compare': 0,
1034+
'@typescript-eslint/require-await': 0,
1035+
'@typescript-eslint/restrict-plus-operands': 0,
1036+
'@typescript-eslint/restrict-template-expressions': 0,
1037+
'@typescript-eslint/return-await': 0,
1038+
'@typescript-eslint/strict-boolean-expressions': 0,
1039+
'@typescript-eslint/switch-exhaustiveness-check': 0,
1040+
'@typescript-eslint/unbound-method': 0,
1041+
'jsdoc/require-file-overview': 0,
1042+
'unicorn/filename-case': 0
1043+
}
1044+
},
9941045
{
9951046
files: '**/*.yml',
9961047
parser: 'yaml-eslint-parser',

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ codecov
5858
# ------------------------------------------------------------------------------
5959
**/.temp/
6060
**/dist/
61+
!**/__fixtures__/**/*.log
6162
!**/__fixtures__/**/dist/
6263
!**/typings/**/dist/
6364

@@ -71,4 +72,4 @@ RELEASE_NOTES.md
7172

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

.husky/commit-msg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
#
77
# - https://typicode.github.io/husky/?id=husky_git_params-ie-commitlint-#/?id=husky_git_params-ie-commitlint-
88

9-
commitlint --edit $1
9+
yarn build
10+
commitlint --edit $1 --strict --verbose

.husky/pre-push

Lines changed: 0 additions & 5 deletions
This file was deleted.

.lintstagedrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"*": ["prettier --check", "cspell lint --color --no-progress --relative $@"],
3-
"**/*.{cjs,gql,json,jsonc,md,mjs,mts,ts,yml}": [
3+
"**/*.{cjs,cts,gql,js,json,json5,jsonc,md,mjs,mts,ts,yml}": [
44
"eslint --exit-on-fatal-error"
55
],
6-
"**/*.{cjs,mjs,mts,ts}": "vitest typecheck --changed --run",
6+
"**/*.{cts,mts,ts}": "vitest typecheck --changed --run",
77
"**/yarn.lock": "yarn dedupe --check",
88
"src/**/*.ts": "vitest --changed --coverage --run"
99
}

.markdownlint.jsonc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@
116116
},
117117
"MD045": true,
118118
"MD046": {
119-
"style": "consistent"
119+
"style": "fenced"
120120
},
121121
"MD047": true,
122122
"MD048": {
123-
"style": "consistent"
123+
"style": "backtick"
124124
},
125125
"MD049": {
126-
"style": "consistent"
126+
"style": "asterisk"
127127
},
128128
"MD050": {
129-
"style": "consistent"
129+
"style": "asterisk"
130130
},
131131
"default": true,
132132
"extends": null

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
19

0 commit comments

Comments
 (0)