Skip to content

Commit

Permalink
Standardise configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Lefkowitz committed Feb 5, 2024
1 parent 2001379 commit 62e6e95
Show file tree
Hide file tree
Showing 47 changed files with 250 additions and 5,769 deletions.
8 changes: 0 additions & 8 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,3 @@ current_version = 1.2.1
[bumpversion:file:package.json]
search = "version": "{current_version}"
replace = "version": "{new_version}"

[bumpversion:file:.quickdocs.yml]
search = version: {current_version}
replace = version: {new_version}

[bumpversion:file:docs/conf.py]
search = version = "{current_version}"
replace = version = "{new_version}"
61 changes: 9 additions & 52 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,73 +1,30 @@
{
"language": "en",
"ignorePaths": [
".DS_Store",
".git",
".gitignore",
"*.coverage",
"*.env",
"*.sql",
"*.svg",
"*.types",
"**/.git/**",
"**/.husky/**",
"**/build/**",
"**/coverage/**",
"**/dist/**",
"**/fonts/**",
"**/node_modules/**",
"**/venv/**",
"requirements.txt",
"yarn-error.log",
"yarn.lock"
".husky",
"coverage",
"dist",
"yarn-error.log"
],
"dictionaries": [
"bash",
"companies",
"css",
"en-gb",
"filetypes",
"fonts",
"html",
"local",
"misc",
"node",
"npm",
"python",
"softwareTerms",
"typescript"
],
"words": [
"apidoc",
"autofix",
"bumpversion",
"camelcase",
"codacy",
"datasource",
"esbenp",
"fmarkdown",
"genindex",
"giphy",
"headerless",
"joel",
"joellefkowitz",
"lcov",
"datasource",
"lefkowitz",
"maxdepth",
"nosecret",
"npmignore",
"pkey",
"plusplus",
"pypandoc",
"quickdocs",
"remarkrc",
"sphinxcontrib",
"testdb",
"toctree",
"tokeignore",
"trufflehog",
"typecheck",
"typehints",
"undoc",
"upsert",
"venv",
"viewcode"
"upsert"
]
}
175 changes: 22 additions & 153 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,184 +1,53 @@
{
"root": true,
"extends": ["eslint:recommended", "prettier"],
"ignorePatterns": ["build", "coverage", "dist", "node_modules", "venv"],
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"arrow-body-style": ["error", "as-needed"],
"block-scoped-var": "error",
"camelcase": "error",
"class-methods-use-this": "error",
"consistent-return": "error",
"consistent-this": "error",
"curly": "error",
"default-case-last": "error",
"default-case": "error",
"default-param-last": "error",
"dot-notation": "error",
"eqeqeq": "error",
"func-name-matching": "error",
"func-names": ["error", "never"],
"id-length": [
"error",
{
"exceptionPatterns": ["_*"],
"min": 3
}
],
"init-declarations": ["error", "always"],
"max-classes-per-file": ["error", 1],
"max-nested-callbacks": "error",
"max-params": ["error", 5],
"multiline-comment-style": ["error", "separate-lines"],
"no-alert": "error",
"no-array-constructor": "error",
"no-await-in-loop": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-constructor-return": "error",
"no-continue": "error",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-inline-comments": ["error", { "ignorePattern": "^ nosecret" }],
"no-invalid-this": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-multi-assign": "error",
"no-multi-str": "error",
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-new": "error",
"no-octal-escape": "error",
"no-param-reassign": "error",
"no-plusplus": "error",
"no-promise-executor-return": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-underscore-dangle": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unreachable-loop": "error",
"no-unused-expressions": "error",
"no-unused-private-class-members": "error",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"no-void": "error",
"object-shorthand": ["error", "always"],
"one-var-declaration-per-line": "error",
"one-var": ["error", "never"],
"operator-assignment": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-exponentiation-operator": "error",
"prefer-numeric-literals": "error",
"prefer-object-has-own": "error",
"prefer-object-spread": "error",
"prefer-promise-reject-errors": "error",
"prefer-regex-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quotes": ["error", "double", { "avoidEscape": true }],
"quote-props": ["error", "consistent-as-needed"],
"radix": "error",
"require-atomic-updates": "error",
"require-await": "error",
"require-unicode-regexp": "error",
"sort-imports": "error",
"spaced-comment": "error",
"symbol-description": "error",
"yoda": "error"
},
"env": { "es6": true, "node": true },
"ignorePatterns": ["dist"],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"files": ["*.ts"],
"extends": ["plugin:@typescript-eslint/strict-type-checked"],
"plugins": ["@typescript-eslint", "sort-imports-es6-autofix"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"project": ["tsconfig.eslint.json"],
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"ecmaVersion": 2020
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"plugin:import/typescript"
],
"rules": {
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-type-alias": [
"off",
{ "allowAliases": "in-unions-and-intersections" }
],
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"sort-imports-es6-autofix/sort-imports-es6": [
"warn",
{
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}
]
}
},
{
"files": ["*.spec.ts"],
"files": ["**/__mocks__/**", "*.spec.ts"],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"init-declarations": "off",
"no-undefined": "off"
"@typescript-eslint/no-empty-function": "off"
}
},
{
"files": ["*.d.ts"],
"rules": {
"init-declarations": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
"@typescript-eslint/no-unused-vars": "off",
"init-declarations": "off"
}
}
]
Expand Down
21 changes: 6 additions & 15 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,20 @@ about: Report a bug

## Description

<!-- edit: --> A clear and concise description of the problem...

## Is this a regression?

<!-- Did this behavior use to work in the previous version? -->
<!-- edit: --> Yes, the previous version in which this bug was not present was: ...
...

## Minimal Reproduction

```code
```
...

## Stack trace / Error message
## Stack trace

```code
...
```

<!-- If the issue is accompanied by an exception or an error, please share it below: -->

## Your Environment
## Environment

```code
...
```
10 changes: 3 additions & 7 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ about: Suggest a feature

## Description

<!-- edit: --> A clear and concise description of the problem or missing capability...
...

## Describe the solution you'd like
## Alternatives

<!-- edit: --> If you have a solution in mind, please describe it.

## Describe alternatives you've considered

<!-- edit: --> Have you considered any alternative solutions or workarounds?
...
Loading

0 comments on commit 62e6e95

Please sign in to comment.