mirror of
https://github.com/expo/eas-cli.git
synced 2026-11-15 17:31:46 -10:00
* [eas-cli] replace got with node-fetch * Update packages/eas-cli/src/api.ts Co-authored-by: Kim Brandwijk <[email protected]> * review feedback * convert ApiV2 class into plain object Co-authored-by: Kim Brandwijk <[email protected]>
51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: ['universe/node'],
|
|
plugins: ['async-protect', 'node'],
|
|
rules: {
|
|
'no-console': 'warn',
|
|
'no-constant-condition': ['warn', { checkLoops: false }],
|
|
'sort-imports': [
|
|
'warn',
|
|
{
|
|
ignoreDeclarationSort: true,
|
|
},
|
|
],
|
|
curly: 'warn',
|
|
'import/no-cycle': 'error',
|
|
'import/no-extraneous-dependencies': [
|
|
'error',
|
|
{ devDependencies: ['**/__tests__/**/*', '**/__mocks__/**/*'] },
|
|
],
|
|
'import/no-relative-packages': 'error',
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
paths: [
|
|
{
|
|
name: 'lodash',
|
|
message: "Don't use lodash, it's heavy!",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
'no-underscore-dangle': ['error', { allow: ['__typename'] }],
|
|
'@typescript-eslint/explicit-function-return-type': [
|
|
'warn',
|
|
{
|
|
allowExpressions: true,
|
|
},
|
|
],
|
|
'async-protect/async-suffix': 'error',
|
|
'node/no-sync': 'error',
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/__tests__/**/*.ts', '**/__mocks__/**/*.ts'],
|
|
rules: {
|
|
'async-protect/async-suffix': 'off',
|
|
},
|
|
},
|
|
],
|
|
};
|