mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 04:48:18 +00:00
style: Add simple-import-sort and run
This commit is contained in:
parent
981cd4fc2e
commit
95a4337530
7 changed files with 34 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"plugins": ["ava", "@typescript-eslint"],
|
||||
"plugins": ["ava", "@typescript-eslint", "simple-import-sort"],
|
||||
"extends": ["plugin:github/recommended", "plugin:ava/recommended"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
|
@ -8,6 +8,8 @@
|
|||
"project": "./tsconfig.json"
|
||||
},
|
||||
"rules": {
|
||||
"simple-import-sort/imports": "error",
|
||||
"simple-import-sort/exports": "error",
|
||||
"i18n-text/no-en": "off",
|
||||
"eslint-comments/no-use": "off",
|
||||
"import/no-namespace": "off",
|
||||
|
@ -49,7 +51,7 @@
|
|||
"@typescript-eslint/require-array-sort-compare": "error",
|
||||
"@typescript-eslint/restrict-plus-operands": "error",
|
||||
"semi": "off",
|
||||
"sort-imports": "warn",
|
||||
"sort-imports": "off",
|
||||
"@typescript-eslint/semi": ["error", "never"],
|
||||
"@typescript-eslint/type-annotation-spacing": "error",
|
||||
"@typescript-eslint/unbound-method": "error"
|
||||
|
|
17
package-lock.json
generated
17
package-lock.json
generated
|
@ -31,6 +31,7 @@
|
|||
"eslint-plugin-ava": "^13.2.0",
|
||||
"eslint-plugin-github": "^4.4.1",
|
||||
"eslint-plugin-jest": "^27.1.5",
|
||||
"eslint-plugin-simple-import-sort": "^8.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.7.3"
|
||||
|
@ -2135,6 +2136,15 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-simple-import-sort": {
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-8.0.0.tgz",
|
||||
"integrity": "sha512-bXgJQ+lqhtQBCuWY/FUWdB27j4+lqcvXv5rUARkzbeWLwea+S5eBZEQrhnO+WgX3ZoJHVj0cn943iyXwByHHQw==",
|
||||
"dev": true,
|
||||
"peerDependencies": {
|
||||
"eslint": ">=5.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-rule-documentation": {
|
||||
"version": "1.0.23",
|
||||
"resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz",
|
||||
|
@ -6487,6 +6497,13 @@
|
|||
"prettier-linter-helpers": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"eslint-plugin-simple-import-sort": {
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-8.0.0.tgz",
|
||||
"integrity": "sha512-bXgJQ+lqhtQBCuWY/FUWdB27j4+lqcvXv5rUARkzbeWLwea+S5eBZEQrhnO+WgX3ZoJHVj0cn943iyXwByHHQw==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
},
|
||||
"eslint-rule-documentation": {
|
||||
"version": "1.0.23",
|
||||
"resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz",
|
||||
|
|
|
@ -34,15 +34,12 @@
|
|||
"ts-node/register/transpile-only"
|
||||
],
|
||||
"files": [
|
||||
"test/**/*.ts"
|
||||
"test/**/*.ts",
|
||||
"!test/utils.ts"
|
||||
],
|
||||
"source": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"files": [
|
||||
"test/**/*.ts",
|
||||
"!test/utils.ts"
|
||||
],
|
||||
"concurrency": 1,
|
||||
"serial": true,
|
||||
"powerAssert": true
|
||||
|
@ -71,6 +68,7 @@
|
|||
"eslint-plugin-ava": "^13.2.0",
|
||||
"eslint-plugin-github": "^4.4.1",
|
||||
"eslint-plugin-jest": "^27.1.5",
|
||||
"eslint-plugin-simple-import-sort": "^8.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.7.3"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import * as core from '@actions/core'
|
||||
import * as fs from 'fs'
|
||||
import * as tc from '@actions/tool-cache'
|
||||
import { GitHub } from '@actions/github/lib/utils'
|
||||
import * as tc from '@actions/tool-cache'
|
||||
import retry from 'async-retry'
|
||||
import * as fs from 'fs'
|
||||
import semver from 'semver'
|
||||
|
||||
const NEXTFLOW_REPO = { owner: 'nextflow-io', repo: 'nextflow' }
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import * as core from '@actions/core'
|
||||
import * as exec from '@actions/exec'
|
||||
import * as fs from 'fs'
|
||||
import * as github from '@actions/github'
|
||||
import { GitHub } from '@actions/github/lib/utils'
|
||||
import * as tc from '@actions/tool-cache'
|
||||
import * as fs from 'fs'
|
||||
|
||||
import { install_nextflow, nextflow_bin_url, release_data } from './functions'
|
||||
|
||||
async function run(): Promise<void> {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import * as functions from '../src/functions'
|
||||
import { getToken } from './utils'
|
||||
import * as github from '@actions/github'
|
||||
import { GitHub } from '@actions/github/lib/utils'
|
||||
import anyTest, { TestFn } from 'ava' // eslint-disable-line import/no-unresolved
|
||||
|
||||
import * as functions from '../src/functions'
|
||||
import { getToken } from './utils'
|
||||
|
||||
const test = anyTest as TestFn<{
|
||||
token: string
|
||||
octokit: InstanceType<typeof GitHub>
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import * as github from '@actions/github'
|
||||
import { release_data } from '../src/functions'
|
||||
import { getToken } from './utils'
|
||||
import { GitHub } from '@actions/github/lib/utils'
|
||||
import anyTest, { TestFn } from 'ava' // eslint-disable-line import/no-unresolved
|
||||
|
||||
import { release_data } from '../src/functions'
|
||||
import { getToken } from './utils'
|
||||
|
||||
const test = anyTest as TestFn<{
|
||||
token: string
|
||||
octokit: InstanceType<typeof GitHub>
|
||||
|
|
Loading…
Reference in a new issue