Skip to content

Commit

Permalink
chore: sync config files
Browse files Browse the repository at this point in the history
- https://gist.github.com/unicornware/1ecc41e7407de9d8c9e90e088cd88d6d

Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Apr 12, 2023
1 parent 255a854 commit 0be088c
Show file tree
Hide file tree
Showing 51 changed files with 1,252 additions and 978 deletions.
60 changes: 1 addition & 59 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,3 @@
{
"defaultIgnores": true,
"extends": ["@commitlint/config-conventional"],
"formatter": "@commitlint/format",
"ignores": [],
"rules": {
"scope-case": [2, "always", ["kebab-case", "lower-case"]],
"scope-enum": [
2,
"always",
[
"build",
"deps",
"deps-bundle",
"deps-dev",
"deps-opt",
"deps-peer",
"esm",
"exports",
"github",
"install",
"interfaces",
"internal",
"loader",
"nvm",
"patches",
"pkg",
"release",
"scripts",
"spelling",
"tests",
"ts",
"ts-next",
"types",
"utils",
"vscode",
"workflows",
"yarn"
]
],
"subject-case": [1, "always", "lower-case"],
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"wip"
]
]
}
"extends": ["@flex-development"]
}
3 changes: 3 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@
"failFast": false,
"flagWords": [],
"ignorePaths": [
"**/*.log",
"**/*.snap",
"**/.*ignore",
"**/.gitconfig",
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
".cspell.json",
".dictionary.txt",
".git/",
".husky/_/",
".vscode/settings.json",
".yarn/",
"dist/",
"patches/",
"yarn.lock"
],
Expand Down
5 changes: 0 additions & 5 deletions .dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ bdougie
cefc
codecov
commitlintrc
dawidd
dedupe
dessant
dohm
esbuild
fbca
ggshield
gpgsign
Expand All @@ -18,17 +16,14 @@ keyid
larsgw
lcov
lintstagedrc
micnncim
mkbuild
mlly
nocheck
npmrc
nvmrc
pathe
pkgs
pnpm
preid
syncer
tsconfigs
tscu
unstub
Expand Down
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ max_line_length = 100
[*.snap]
max_line_length = 130

# xml
[*.xml]
max_line_length = 100

# yaml
[*.yml]
max_line_length = 100
4 changes: 3 additions & 1 deletion .env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# References:
#
# - https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dotenv
# - https://homebrew-file.readthedocs.io/en/latest/usage.html

[ -f $PWD/.env.local ] && source $PWD/.env.local
[ -f $PWD/.env.repo ] && source $PWD/.env.repo
HOMEBREW_BREWFILE=./Brewfile
NODE_NO_WARNINGS=1
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ yarn.lock
!**/__fixtures__/**/node_modules/
!**/typings/**/dist/
!.codecov.yml
!.commitlintrc.json
!.commitlintrc.*
!.cspell.json
!.github/
!.graphqlrc.yml
Expand Down
126 changes: 93 additions & 33 deletions .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,12 @@ const config = {
Chai: 'readonly',
Console: 'readonly',
JSX: jsx ? 'readonly' : false,
LoadHook: 'readonly',
LoadHookContext: 'readonly',
LoadHookResult: 'readonly',
LoaderHookFormat: 'readonly',
NodeJS: 'readonly',
ResolveHook: 'readonly',
ResolveHookContext: 'readonly',
ResolveHookResult: 'readonly'
NodeJS: 'readonly'
},
parser: '@typescript-eslint/parser',
parserOptions: {
extraFileExtensions: [],
project: './tsconfig.json',
project: ['./tsconfig.json', './tsconfig.cjs.json'],
sourceType: require('./package.json').type,
tsconfigRootDir: process.cwd(),
warnOnUnsupportedTypeScriptVersion: true
Expand Down Expand Up @@ -147,23 +140,15 @@ const config = {
default: {
memberTypes: [
'static-field',
'decorated-field',
'instance-field',
'abstract-field',
'constructor',
'signature',
'static-get',
'static-set',
'static-method',
'decorated-get',
'decorated-set',
'decorated-method',
'instance-get',
'instance-set',
'instance-method',
'abstract-get',
'abstract-set',
'abstract-method'
'instance-method'
],
order: 'alphabetically'
}
Expand Down Expand Up @@ -431,7 +416,14 @@ const config = {
'jsdoc/check-tag-names': [
1,
{
definedTags: ['experimental', 'next', 'visibleName'],
definedTags: [
'experimental',
'maximum',
'minimum',
'next',
'packageManager',
'visibleName'
],
jsxTags: false
}
],
Expand Down Expand Up @@ -579,6 +571,7 @@ const config = {
'no-empty': [2, { allowEmptyCatch: true }],
'no-empty-function': 0,
'no-ex-assign': 0,
'no-extra-parens': 0,
'no-implied-eval': 0,
'no-invalid-this': 0,
'no-loop-func': 0,
Expand Down Expand Up @@ -688,7 +681,7 @@ const config = {
],
'unicorn/new-for-builtins': 2,
'unicorn/no-abusive-eslint-disable': 2,
'unicorn/no-array-callback-reference': 2,
'unicorn/no-array-callback-reference': 0,
'unicorn/no-array-for-each': 2,
'unicorn/no-array-method-this-argument': 2,
'unicorn/no-array-push-push': 2,
Expand Down Expand Up @@ -717,7 +710,7 @@ const config = {
'unicorn/no-static-only-class': 0,
'unicorn/no-thenable': 2,
'unicorn/no-this-assignment': 2,
'unicorn/no-unreadable-array-destructuring': 2,
'unicorn/no-unreadable-array-destructuring': 0,
'unicorn/no-unsafe-regex': 0,
'unicorn/no-unused-properties': 2,
'unicorn/no-useless-fallback-in-spread': 2,
Expand Down Expand Up @@ -766,14 +759,7 @@ const config = {
'unicorn/relative-url-style': [2, 'never'],
'unicorn/require-array-join-separator': 2,
'unicorn/require-number-to-fixed-digits-argument': 2,
'unicorn/string-content': [
2,
{
patterns: {
'^http:\\/\\/': '^https:\\/\\/'
}
}
],
'unicorn/string-content': [2, { patterns: {} }],
'unicorn/template-indent': [2, { indent: 2 }],
'unicorn/text-encoding-identifier-case': 2,
'unicorn/throw-new-error': 2
Expand Down Expand Up @@ -822,8 +808,9 @@ const config = {
}
},
{
files: '**/__mocks__/*.ts',
files: '**/__mocks__/**/*.ts',
rules: {
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/require-await': 0
}
},
Expand Down Expand Up @@ -853,6 +840,7 @@ const config = {
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-unused-expressions': 0,
'@typescript-eslint/prefer-ts-expect-error': 0,
'@typescript-eslint/require-await': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'@typescript-eslint/unbound-method': 0,
'chai-expect/missing-assertion': 2,
Expand Down Expand Up @@ -886,7 +874,8 @@ const config = {
expectTypeOf: true
},
rules: {
'@typescript-eslint/ban-types': 0
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/no-redundant-type-constituents': 0
}
},
{
Expand Down Expand Up @@ -991,6 +980,57 @@ const config = {
plugins: ['markdown', 'markdownlint'],
processor: 'markdown/markdown'
},
{
files: '**/*.md/*.+(cjs|cts|js|jsx|mjs|mts|ts|tsx)',
parserOptions: { project: false },
rules: {
'@typescript-eslint/await-thenable': 0,
'@typescript-eslint/consistent-type-exports': 0,
'@typescript-eslint/dot-notation': 0,
'@typescript-eslint/naming-convention': 0,
'@typescript-eslint/no-base-to-string': 0,
'@typescript-eslint/no-confusing-void-expression': 0,
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/no-for-in-array': 0,
'@typescript-eslint/no-implied-eval': 0,
'@typescript-eslint/no-meaningless-void-operator': 0,
'@typescript-eslint/no-misused-promises': 0,
'@typescript-eslint/no-mixed-enums': 0,
'@typescript-eslint/no-redundant-type-constituents': 0,
'@typescript-eslint/no-throw-literal': 0,
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 0,
'@typescript-eslint/no-unnecessary-condition': 0,
'@typescript-eslint/no-unnecessary-qualifier': 0,
'@typescript-eslint/no-unnecessary-type-arguments': 0,
'@typescript-eslint/no-unnecessary-type-assertion': 0,
'@typescript-eslint/no-unsafe-argument': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unused-expressions': 0,
'@typescript-eslint/non-nullable-type-assertion-style': 0,
'@typescript-eslint/prefer-includes': 0,
'@typescript-eslint/prefer-nullish-coalescing': 0,
'@typescript-eslint/prefer-readonly': 0,
'@typescript-eslint/prefer-readonly-parameter-types': 0,
'@typescript-eslint/prefer-reduce-type-parameter': 0,
'@typescript-eslint/prefer-regexp-exec': 0,
'@typescript-eslint/prefer-return-this-type': 0,
'@typescript-eslint/prefer-string-starts-ends-with': 0,
'@typescript-eslint/promise-function-async': 0,
'@typescript-eslint/require-array-sort-compare': 0,
'@typescript-eslint/require-await': 0,
'@typescript-eslint/restrict-plus-operands': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'@typescript-eslint/return-await': 0,
'@typescript-eslint/strict-boolean-expressions': 0,
'@typescript-eslint/switch-exhaustiveness-check': 0,
'@typescript-eslint/unbound-method': 0,
'jsdoc/require-file-overview': 0,
'unicorn/filename-case': 0
}
},
{
files: '**/*.yml',
parser: 'yaml-eslint-parser',
Expand Down Expand Up @@ -1089,13 +1129,17 @@ const config = {
}
},
{
files: ['.github/dependabot.yml', '.github/workflows/*.yml'],
files: [
'.github/dependabot.yml',
'.github/workflows/*.yml',
'action.yml'
],
rules: {
'yml/sort-keys': 0
}
},
{
files: ['.github/workflows/no-response-handler.yml', '.yarnrc.yml'],
files: ['.github/workflows/*.yml', '.yarnrc.yml'],
rules: {
'yml/key-name-casing': 0
}
Expand All @@ -1109,9 +1153,13 @@ const config = {
settings: {
jsdoc: {
augmentsExtendsReplacesDocs: true,
ignoreInternal: false,
ignorePrivate: false,
implementsReplacesDocs: true,
overrideReplacesDocs: true,
preferredTypes: {
'*': false
},
structuredTags: {
const: {
name: 'namepath-defining',
Expand All @@ -1132,14 +1180,26 @@ const config = {
name: 'namepath-defining',
required: ['type']
},
maximum: {
name: 'text',
required: ['name']
},
member: {
name: 'namepath-defining',
required: ['name', 'type']
},
minimum: {
name: 'text',
required: ['name']
},
next: {
name: 'namepath-defining',
required: ['type']
},
packageManager: {
name: 'text',
required: ['name']
},
param: {
name: 'namepath-defining',
required: ['name', 'type']
Expand Down
Loading

0 comments on commit 0be088c

Please sign in to comment.