strapi/packages/utils/pack-up/.eslintrc.js

47 lines
1.0 KiB
JavaScript
Raw Normal View History

feat: add pack-up package (#18233) * feat(pack-up): add build command (#18058) * chore: lint order of imports * feat(pack-up): add watch command (#18121) * feat: add watch command feat: add ts watch task * chore: pr amends * fix: promptUser linter * chore: remove \n with os.EOL * feat(pack-up): add init command (#18133) * feat(pack-up): add build command (#18058) * feat(pack-up): add watch command (#18121) * feat: add watch command feat: add ts watch task * chore: pr amends * fix: promptUser linter * chore: remove \n with os.EOL * feat: add init command fix: build feat: add default template and tests * chore: pr amends * Update packages/utils/pack-up/tests/console.ts Co-authored-by: Ben Irvin <ben@innerdvations.com> * chore: re-add mock * chore: fix tsconfig * chore: fix inquirer types due to rxjs inclusion * Update packages/utils/pack-up/src/node/templates/internal/files/typescript.ts * chore: fix inquirer types --------- Co-authored-by: Ben Irvin <ben@innerdvations.com> * feat(pack-up): add check command (#18183) * feat: add check command * chore: reintroduce CLI tests * fix: add build command to `prepublishOnly` * docs(pack-up): add readme and contributor docs (#18237) * chore: update README * docs(pack-up): add contributor documentation * chore: update overview doc to be clearer * fix(pack-up): init command (#18245) * fix: init command bugs * fix: node tests * fix: template exports ordering & file extensions * test(upload): double timeout on UploadAssetDialog test --------- Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-10-05 09:38:29 +01:00
module.exports = {
root: true,
extends: ['custom/back/typescript'],
parserOptions: {
project: ['./tsconfig.eslint.json'],
},
overrides: [
{
files: ['./scripts/**/*', './src/cli/errors.ts', './src/cli/index.ts'],
rules: {
'no-console': ['error', { allow: ['error'] }],
},
},
{
files: ['./src/node/core/logger.ts'],
rules: {
'no-console': 'off',
},
},
],
rules: {
/**
* Force us to use the Logger instance.
*/
'no-console': 'error',
'import/extensions': 'off',
'import/order': [
'error',
{
groups: [
['external', 'internal', 'builtin'],
'parent',
['sibling', 'index'],
'object',
'type',
],
'newlines-between': 'always',
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
/**
* TODO: This should live in the base config.
*/
'nonblock-statement-body-position': ['error', 'below'],
},
};