-
Notifications
You must be signed in to change notification settings - Fork 100
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
Showing
14 changed files
with
1,828 additions
and
2,169 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
with: | ||
path: coverage | ||
# restore cache from build-lint-test wf with key=sha-(oneof nestjs version)-(oneof nodejs version) | ||
key: ${{ github.sha }}-10-20 | ||
key: ${{ github.sha }}-11-22 | ||
|
||
- uses: paambaati/[email protected] | ||
with: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat"; | ||
import typescriptEslintEslintPlugin from "@typescript-eslint/eslint-plugin"; | ||
import globals from "globals"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [{ | ||
ignores: ["**/.eslintrc.js"], | ||
}, ...fixupConfigRules(compat.extends( | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"plugin:prettier/recommended", | ||
)), { | ||
plugins: { | ||
"@typescript-eslint": fixupPluginRules(typescriptEslintEslintPlugin), | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.jest, | ||
}, | ||
|
||
parser: tsParser, | ||
ecmaVersion: 5, | ||
sourceType: "module", | ||
|
||
parserOptions: { | ||
project: "tsconfig.json", | ||
}, | ||
}, | ||
|
||
rules: { | ||
"@typescript-eslint/no-explicit-any": ["error", { | ||
fixToUnknown: true, | ||
ignoreRestArgs: false, | ||
}], | ||
|
||
"@typescript-eslint/no-floating-promises": ["error", { | ||
ignoreIIFE: true, | ||
}], | ||
|
||
"@typescript-eslint/no-unused-vars": ["error", { | ||
varsIgnorePattern: "^_", | ||
argsIgnorePattern: "^_", | ||
ignoreRestSiblings: true, | ||
}], | ||
|
||
"@typescript-eslint/explicit-member-accessibility": ["error", { | ||
accessibility: "no-public", | ||
}], | ||
|
||
"@typescript-eslint/member-ordering": ["error", { | ||
default: [ | ||
"public-static-field", | ||
"public-static-get", | ||
"public-static-set", | ||
"public-static-method", | ||
"protected-static-field", | ||
"protected-static-get", | ||
"protected-static-set", | ||
"protected-static-method", | ||
"private-static-field", | ||
"private-static-get", | ||
"private-static-set", | ||
"private-static-method", | ||
"signature", | ||
"public-abstract-field", | ||
"protected-abstract-field", | ||
"public-decorated-field", | ||
"public-instance-field", | ||
"protected-decorated-field", | ||
"protected-instance-field", | ||
"private-decorated-field", | ||
"private-instance-field", | ||
"public-constructor", | ||
"protected-constructor", | ||
"private-constructor", | ||
"public-abstract-get", | ||
"public-abstract-set", | ||
"public-abstract-method", | ||
"public-decorated-get", | ||
"public-instance-get", | ||
"public-decorated-set", | ||
"public-instance-set", | ||
"public-decorated-method", | ||
"public-instance-method", | ||
"protected-abstract-get", | ||
"protected-abstract-set", | ||
"protected-abstract-method", | ||
"protected-decorated-get", | ||
"protected-instance-get", | ||
"protected-decorated-set", | ||
"protected-instance-set", | ||
"protected-decorated-method", | ||
"protected-instance-method", | ||
"private-decorated-get", | ||
"private-instance-get", | ||
"private-decorated-set", | ||
"private-instance-set", | ||
"private-decorated-method", | ||
"private-instance-method", | ||
], | ||
}], | ||
|
||
"import/order": ["error", { | ||
alphabetize: { | ||
order: "asc", | ||
caseInsensitive: true, | ||
}, | ||
|
||
"newlines-between": "always", | ||
}], | ||
}, | ||
}]; |
Oops, something went wrong.