Merge pull request #14420 from mozilla/FXA-6138

chore(auth-server): ban self-absolute imports
This commit is contained in:
Julian Poyourow 2022-11-07 14:44:24 -08:00 коммит произвёл GitHub
Родитель 6ff93bd82c bdb1abacfd
Коммит 88a9fbd5de
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -4,7 +4,14 @@
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", {"vars": "all", "args": "none"}],
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": "error"
"@typescript-eslint/no-redeclare": "error",
"@typescript-eslint/no-restricted-imports": ["error", {
"patterns": [{
"group": ["fxa-auth-server/**"],
"message": "Please use relative import instead.",
"allowTypeImports": true
}]
}]
},
"extends": ["plugin:fxa/server"],
"plugins": ["@typescript-eslint", "fxa"],

Просмотреть файл

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { CollectionReference, Firestore } from '@google-cloud/firestore';
import { AppConfig, AuthFirestore } from 'fxa-auth-server/lib/types';
import { AppConfig, AuthFirestore } from '../../lib/types';
import Container from 'typedi';
export class MockIapSubscriptionManager {

Просмотреть файл

@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { AuthLogger } from 'fxa-auth-server/lib/types';
import { AuthLogger } from '../lib/types';
import { ACTIVE_SUBSCRIPTION_STATUSES } from 'fxa-shared/subscriptions/stripe';
import { StatsD } from 'hot-shots';
import stripe from 'stripe';