Skip to content

Commit

Permalink
Merge pull request #460 from qonto/install-eslint-config-typescript
Browse files Browse the repository at this point in the history
chore: install and use @qonto/[email protected]
  • Loading branch information
dannycalleri authored Oct 25, 2023
2 parents 0d69a08 + 7cd4523 commit 6ab5338
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 126 deletions.
62 changes: 1 addition & 61 deletions ember-autofocus-modifier/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,67 +45,7 @@ module.exports = {
// ts files
{
files: ["**/*.ts"],
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
rules: {
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/recommended.ts
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unused-vars": "error",
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/strict.ts
"@typescript-eslint/array-type": [
"error",
{
default: "array",
readonly: "array",
},
],
"@typescript-eslint/ban-tslint-comment": "error",
"@typescript-eslint/class-literal-property-style": "error",
"@typescript-eslint/consistent-generic-constructors": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
accessibility: "no-public",
},
],
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/no-confusing-non-null-assertion": "error",
"@typescript-eslint/no-duplicate-enum-values": "error",
"@typescript-eslint/no-dynamic-delete": "error",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/no-invalid-void-type": "error",
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-type-alias": [
"error",
{
allowGenerics: "always",
},
],
"@typescript-eslint/no-unsafe-declaration-merging": "error",
"@typescript-eslint/parameter-properties": "error",
"@typescript-eslint/prefer-enum-initializers": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-literal-enum-member": "error",
"@typescript-eslint/prefer-ts-expect-error": "error",
"@typescript-eslint/sort-type-constituents": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/typedef": "error",
"@typescript-eslint/unified-signatures": "error",
},
extends: ["@qonto/eslint-config-typescript"],
},
],
};
1 change: 1 addition & 0 deletions ember-autofocus-modifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@glint/core": "^1.2.0",
"@glint/environment-ember-loose": "^1.2.0",
"@glint/template": "^1.2.0",
"@qonto/eslint-config-typescript": "1.0.0-rc.0",
"@rollup/plugin-babel": "^6.0.3",
"@tsconfig/ember": "^3.0.1",
"@typescript-eslint/eslint-plugin": "^6.7.4",
Expand Down
159 changes: 155 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6ab5338

Please sign in to comment.