Skip to content

Commit

Permalink
chore: sync config files
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Mar 3, 2023
1 parent c59b7de commit aa46fa3
Show file tree
Hide file tree
Showing 37 changed files with 337 additions and 337 deletions.
29 changes: 29 additions & 0 deletions .commitlintrc.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* @file Configuration - commitlint
* @module config/commitlint
* @see https://commitlint.js.org
*/

import {
RuleConfigSeverity as Severity,
type UserConfig
} from '@commitlint/types'
import { scopes } from '@flex-development/commitlint-config'

/**
* `commitlint` configuration object.
*
* @const {UserConfig} config
*/
const config: UserConfig = {
extends: ['@flex-development'],
rules: {
'scope-enum': [
Severity.Error,
'always',
scopes(['bundle', 'options', 'transpile'])
]
}
}

export default config
68 changes: 0 additions & 68 deletions .commitlintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"failFast": false,
"flagWords": [],
"ignorePaths": [
"**/*.log",
"**/*.snap",
"**/.*ignore",
"**/.gitconfig",
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
".cspell.json",
".git/",
".husky/_/",
Expand Down
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ yarn.lock
!**/__fixtures__/**/node_modules/
!**/typings/**/dist/
!.codecov.yml
!.commitlintrc.json
!.commitlintrc.*
!.cspell.json
!.github/
!.graphqlrc.yml
Expand Down
55 changes: 53 additions & 2 deletions .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const config = {
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 @@ -723,7 +723,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 @@ -997,6 +997,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
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
GIT_AUTHOR_NAME: ${{ steps.gpg-import.outputs.name }}
GIT_COMMITTER_EMAIL: ${{ steps.gpg-import.outputs.email }}
GIT_COMMITTER_NAME: ${{ steps.gpg-import.outputs.name }}
COMMIT_MESSAGE: '[dependabot skip] fix lockfile for @dependabot'
COMMIT_MESSAGE: 'build(yarn): [dependabot skip] fix lockfile for @dependabot'
- id: approve-pr
name: Approve pull request containing minor or patch updates
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,18 @@ codecov
# ------------------------------------------------------------------------------
**/.temp/
**/dist/
!**/__fixtures__/**/*.log
!**/__fixtures__/**/dist/
!**/typings/**/dist/

# Releases
# ------------------------------------------------------------------------------
RELEASE_NOTES.md
**/RELEASE_NOTES.md

# Vercel
# ------------------------------------------------------------------------------
**/.vercel/

# Misc
# ------------------------------------------------------------------------------
**/scratch.ts
**/scratch.*
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# - https://typicode.github.io/husky/?id=husky_git_params-ie-commitlint-#/?id=husky_git_params-ie-commitlint-

yarn build
commitlint --edit $1
yarn commitlint --edit $1
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
"yaml"
],
"files.associations": {
"*.log": "log",
"*.snap": "jest-snapshot",
".env.zsh": "shellscript",
".markdownlintignore": "ignore",
Expand Down Expand Up @@ -299,6 +300,11 @@
"resolutions"
],
"vsicons.associations.files": [
{
"extensions": [".commitlintrc.cts"],
"format": "svg",
"icon": "commitlint"
},
{
"extensions": [".eslintrc.base.cjs"],
"format": "svg",
Expand All @@ -310,7 +316,7 @@
"icon": "graphql"
},
{
"extensions": ["build.json", "typecheck.json"],
"extensions": ["build.json", "cjs.json", "typecheck.json"],
"format": "svg",
"icon": "tsconfig"
},
Expand Down
14 changes: 0 additions & 14 deletions __tests__/setup/setup.ts

This file was deleted.

14 changes: 0 additions & 14 deletions __tests__/setup/teardown.ts

This file was deleted.

15 changes: 4 additions & 11 deletions __tests__/ts/v4/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"checkJs": false,
"declaration": false,
"declarationMap": false,
"emitDecoratorMetadata": true,
"emitDecoratorMetadata": false,
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"experimentalDecorators": true,
Expand Down Expand Up @@ -35,10 +35,11 @@
"#tests/*": ["__tests__/*"]
},
"preserveConstEnums": true,
"preserveSymlinks": true,
"preserveSymlinks": false,
"pretty": true,
"resolveJsonModule": true,
"rootDir": "../../..",
"skipDefaultLibCheck": false,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
Expand All @@ -49,13 +50,5 @@
"useUnknownInCatchVariables": true
},
"exclude": ["**/coverage", "**/dist", "**/node_modules"],
"include": [
"**/**.cjs",
"**/**.mjs",
"**/**.mts",
"**/**.ts",
"**/.*.cjs",
"**/__fixtures__/**/*.cts",
"**/__fixtures__/**/*.js"
]
"include": ["**/**.js", "**/**.mjs", "**/**.mts", "**/**.ts"]
}
10 changes: 9 additions & 1 deletion __tests__/ts/v4/tsconfig.typecheck.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
"compilerOptions": {
"target": "es2020"
},
"extends": "./tsconfig.json"
"extends": "./tsconfig.json",
"include": [
"**/**.cts",
"**/**.mts",
"**/**.ts",
"**/.*.cts",
"**/.*.mts",
"**/.*.ts"
]
}
Loading

0 comments on commit aa46fa3

Please sign in to comment.