-
Notifications
You must be signed in to change notification settings - Fork 1
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
9 changed files
with
254 additions
and
191 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { fixupPluginRules } from "@eslint/compat"; | ||
import eslint from "@eslint/js"; | ||
import prettier from "eslint-plugin-prettier/recommended"; | ||
import rxjs from "eslint-plugin-rxjs"; | ||
// import storybook from "eslint-plugin-storybook"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
prettier, | ||
// storybook.configs.recommended, | ||
{ | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: "module", | ||
parserOptions: { project: ["./tsconfig.json", "./tsconfig.server.json"] }, | ||
}, | ||
plugins: { rxjs: fixupPluginRules(rxjs) }, | ||
rules: { | ||
strict: "error", | ||
"no-console": "off", | ||
"no-unsafe-optional-chaining": "error", | ||
"no-unused-vars": "off", // off required as we use the @typescript-eslint/no-unused-vars rule | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
argsIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
}, | ||
], | ||
"@typescript-eslint/ban-types": "error", | ||
"@typescript-eslint/explicit-function-return-type": "error", | ||
"@typescript-eslint/explicit-module-boundary-types": "error", | ||
"@typescript-eslint/no-empty-function": "error", | ||
"@typescript-eslint/no-explicit-any": "off", // We allow explicit any | ||
"@typescript-eslint/no-floating-promises": "error", | ||
"@typescript-eslint/no-non-null-assertion": "off", // behavior mismatch between TSlint and TScompiler. I make a valid usage of non null assertions | ||
"@typescript-eslint/no-inferrable-types": "error", | ||
"@typescript-eslint/no-misused-promises": "error", | ||
"@typescript-eslint/no-unnecessary-type-assertion": "off", // behavior mismatch between TSlint and TScompiler. giving too many useless errors and we allow unnecessary type assertions | ||
"@typescript-eslint/no-unsafe-argument": "error", | ||
"@typescript-eslint/no-unsafe-assignment": "off", // off for the moment because we have too many warnings | ||
"@typescript-eslint/no-unsafe-call": "error", | ||
"@typescript-eslint/no-unsafe-member-access": "off", // off for the moment because we have too many warnings | ||
"@typescript-eslint/no-unsafe-return": "error", | ||
"@typescript-eslint/require-await": "error", | ||
"@typescript-eslint/restrict-plus-operands": "error", | ||
"@typescript-eslint/restrict-template-expressions": "error", | ||
"@typescript-eslint/unbound-method": "error", | ||
"rxjs/no-async-subscribe": "warn", | ||
"rxjs/no-ignored-observable": "warn", | ||
"rxjs/no-ignored-subscription": "warn", | ||
"rxjs/no-unbound-methods": "warn", | ||
"rxjs/throw-error": "warn", | ||
}, | ||
}, | ||
{ ignores: ["node_modules/*", "build/*", "dist/*", "**/*.spec.ts", "*.config.mjs"] }, | ||
); |
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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"module": "commonjs", | ||
"noEmit": false | ||
}, | ||
// "compilerOptions": { | ||
// "outDir": "./dist", | ||
// "module": "ESNext", | ||
// "noEmit": false | ||
// }, | ||
"include": ["./src"], | ||
"exclude": ["./src/app"] | ||
} |
Oops, something went wrong.