Skip to content

Commit

Permalink
chore: update package configurations, sort package.json, and format…
Browse files Browse the repository at this point in the history
…ting rules
  • Loading branch information
bryantbiggs committed Oct 15, 2021
1 parent 9d2be2b commit 4cdf875
Show file tree
Hide file tree
Showing 9 changed files with 455 additions and 149 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

21 changes: 20 additions & 1 deletion .eslintrc.js
@@ -1,6 +1,13 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'],
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
Expand All @@ -12,6 +19,18 @@ module.exports = {
singleQuote: true,
},
],
'import/order': [
'error',
{
groups: ['index', 'sibling', 'parent', 'internal', 'external', 'builtin', 'object', 'type'],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
'eol-last': ['error', 'always'],
},
ignorePatterns: ['dist/', 'lib/', 'node_modules/', 'jest.config.js'],
};
54 changes: 0 additions & 54 deletions .eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions package.json
@@ -1,80 +1,80 @@
{
"name": "argo-cd-action",
"version": "0.0.0",
"private": true,
"description": "GitHub action for executing Argo CD",
"repository": {
"type": "git",
"url": "git+https://github.com/clowdhaus/argo-cd-action.git"
},
"keywords": [
"github",
"actions",
"argo-cd",
"git-ops"
],
"author": "Clowd Haus, LLC",
"license": "Apache-2.0",
"homepage": "https://github.com/clowdhaus/argo-cd-action#readme",
"bugs": {
"url": "https://github.com/clowdhaus/argo-cd-action/issues"
},
"homepage": "https://github.com/clowdhaus/argo-cd-action#readme",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/clowdhaus/argo-cd-action.git"
},
"license": "Apache-2.0",
"author": "Clowd Haus, LLC",
"main": "src/index.ts",
"scripts": {
"all": "yarn format && yarn lint && yarn compile",
"compile": "ncc build -m",
"format": "prettier --write **/*ts",
"format": "prettier --write src/*ts .eslintrc.js",
"lint": "eslint '**/*.ts' --quiet --fix",
"release": "semantic-release"
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"git add"
],
"*.md": [
"prettier --single-quote --write"
],
"*package.json": [
"prettier --write --plugin=prettier-plugin-package"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"resolutions": {
"ansi-regex": "^5.0.1",
"merge": ">=2.1.1"
},
"dependencies": {
"@actions/core": "^1.6.0",
"@actions/exec": "^1.1.0",
"@actions/tool-cache": "^1.7.1",
"@octokit/auth-action": "^1.3.3",
"@octokit/rest": "^18.12.0",
"ansi-regex": "^6.0.1",
"string-argv": "^0.3.1"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.0",
"@semantic-release/git": "^10.0.0",
"@types/node": "^16.10.5",
"@types/node": "^16.11.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"@vercel/ncc": "^0.31.1",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.0.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-prettier": "^4.0.0",
"lint-staged": "^11.2.3",
"prettier": "^2.4.1",
"prettier-plugin-package": "^1.3.0",
"semantic-release": "^18.0.0",
"typescript": "^4.4.4"
},
"resolutions": {
"ansi-regex": "^5.0.1",
"merge": ">=2.1.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"git add"
],
"*.md": [
"prettier --single-quote --write"
],
"*package.json": [
"prettier --write --plugin=prettier-plugin-package"
]
},
"release": {
"branches": [
"main"
Expand Down
7 changes: 4 additions & 3 deletions src/argo-cd.ts
@@ -1,12 +1,13 @@
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as tc from '@actions/tool-cache';
import * as os from 'os';
import * as path from 'path';
import * as process from 'process';
import {createActionAuth} from '@octokit/auth-action';
import {Octokit} from '@octokit/rest';

import {existsSync, promises as fs} from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as process from 'process';

const PLATFORM = process.platform;
const EXE_NAME = PLATFORM === 'win32' ? 'argocd.exe' : 'argocd';
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
@@ -1,8 +1,8 @@
import ArgoCD from './argo-cd';

import * as core from '@actions/core';
import stringArgv from 'string-argv';

import ArgoCD from './argo-cd';

async function run(): Promise<void> {
try {
const command = stringArgv(core.getInput('command', {required: false}).trim());
Expand Down

0 comments on commit 4cdf875

Please sign in to comment.