зеркало из https://github.com/mozilla/fxa.git
Merge pull request #14420 from mozilla/FXA-6138
chore(auth-server): ban self-absolute imports
This commit is contained in:
Коммит
88a9fbd5de
|
@ -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';
|
||||
|
|
Загрузка…
Ссылка в новой задаче