-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6075cd5
commit f3807ac
Showing
52 changed files
with
646 additions
and
476 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
// @ts-check | ||
const { defineConfig } = require('eslint-define-config'); | ||
const { readGitignoreFiles } = require('eslint-gitignore'); | ||
|
||
/// <reference types="@eslint-types/prettier" /> | ||
/// <reference types="@eslint-types/typescript-eslint" /> | ||
|
||
module.exports = defineConfig({ | ||
ignorePatterns: [ | ||
...readGitignoreFiles(), | ||
'templates', | ||
'.eslintrc.cjs', // Skip self linting | ||
], | ||
root: true, | ||
env: { | ||
node: true, | ||
}, | ||
reportUnusedDisableDirectives: true, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/strict-type-checked', | ||
'plugin:prettier/recommended', | ||
], | ||
parserOptions: { | ||
project: ['./tsconfig.lint.json'], | ||
warnOnUnsupportedTypeScriptVersion: false, | ||
}, | ||
rules: { | ||
eqeqeq: ['error', 'always', { null: 'ignore' }], | ||
'no-else-return': 'error', | ||
'prefer-exponentiation-operator': 'error', | ||
'prefer-template': 'error', | ||
|
||
'@typescript-eslint/array-type': [ | ||
'error', | ||
{ default: 'array-simple', readonly: 'generic' }, | ||
], | ||
// TODO @Shinigami92 2024-02-29: Enable consistent-type-imports later | ||
// '@typescript-eslint/consistent-type-imports': 'error', | ||
// TODO @Shinigami92 2024-02-29: Enable consistent-type-imports later | ||
// '@typescript-eslint/explicit-module-boundary-types': 'error', | ||
// TODO @Shinigami92 2024-02-29: Enable consistent-type-imports later | ||
// '@typescript-eslint/naming-convention': [ | ||
// 'error', | ||
// { | ||
// format: ['PascalCase'], | ||
// selector: ['class', 'interface', 'typeAlias', 'enumMember'], | ||
// leadingUnderscore: 'forbid', | ||
// trailingUnderscore: 'forbid', | ||
// }, | ||
// { | ||
// format: ['PascalCase'], | ||
// selector: ['typeParameter'], | ||
// prefix: ['T'], | ||
// leadingUnderscore: 'forbid', | ||
// trailingUnderscore: 'forbid', | ||
// }, | ||
// ], | ||
'@typescript-eslint/no-inferrable-types': [ | ||
'error', | ||
{ ignoreParameters: true }, | ||
], | ||
'@typescript-eslint/no-unnecessary-condition': 'off', // requires `strictNullChecks` to be enabled | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/no-unsafe-call': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
'@typescript-eslint/padding-line-between-statements': [ | ||
'error', | ||
{ blankLine: 'always', prev: 'block-like', next: '*' }, | ||
], | ||
'@typescript-eslint/prefer-regexp-exec': 'error', | ||
// TODO @Shinigami92 2024-02-29: Enable consistent-type-imports later | ||
// '@typescript-eslint/restrict-template-expressions': [ | ||
// 'error', | ||
// { allowNumber: true, allowBoolean: true }, | ||
// ], | ||
'@typescript-eslint/switch-exhaustiveness-check': [ | ||
'error', | ||
{ requireDefaultForNonUnion: true }, | ||
], | ||
'@typescript-eslint/unbound-method': 'off', | ||
|
||
// TODO @Shinigami92 2024-02-29: Remove these later | ||
'@typescript-eslint/naming-convention': 'off', | ||
'@typescript-eslint/no-base-to-string': 'off', | ||
'@typescript-eslint/no-confusing-void-expression': 'off', | ||
'@typescript-eslint/no-floating-promises': 'off', | ||
'@typescript-eslint/no-implied-eval': 'off', | ||
'@typescript-eslint/no-redundant-type-constituents': 'off', | ||
'@typescript-eslint/no-throw-literal': 'off', | ||
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off', | ||
'@typescript-eslint/no-unnecessary-type-assertion': 'off', | ||
'@typescript-eslint/no-unsafe-argument': 'off', | ||
'@typescript-eslint/no-unsafe-return': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/prefer-includes': 'off', | ||
'@typescript-eslint/prefer-promise-reject-errors': 'off', | ||
'@typescript-eslint/require-await': 'off', | ||
'@typescript-eslint/restrict-template-expressions': 'off', | ||
'@typescript-eslint/unified-signatures': 'off', | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,98 @@ | ||
.idea | ||
.env | ||
# Logs | ||
logs | ||
*.log | ||
/migrations | ||
/node_modules | ||
npm-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
reports/ | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Dependency directories | ||
node_modules/ | ||
.pnpm-store/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variable files | ||
.env | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env.local | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Docusaurus cache and generated files | ||
.docusaurus | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# Transpiled JS script files for GitHub Actions | ||
.github/workflows/*.js | ||
|
||
# IDE | ||
/.idea | ||
/nbproject | ||
|
||
# Meteor build and version | ||
.build* | ||
versions.json | ||
|
||
# Dist | ||
/dist | ||
/docs/.vitepress/cache | ||
/docs/.vitepress/dist | ||
/lib | ||
|
||
/migrations | ||
|
||
TAGS | ||
REVISION | ||
*.tmproj | ||
*~ | ||
.DS_Store | ||
.settings | ||
.project | ||
.tasks-cache | ||
*DONOTVERSION* | ||
.history | ||
|
||
# Unwanted package managers | ||
.yarn/ | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.