Skip to content

Commit 7aa726d

Browse files
authored
chore: fail CI on warnings, format using eslint (#172)
1 parent 7348133 commit 7aa726d

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"main": "dist/index.js",
66
"scripts": {
77
"build": "ncc build -m src/main.ts",
8-
"lint": "eslint . --ext .ts,.tsx",
9-
"format": "prettier --write **/*.ts",
8+
"lint": "eslint . --ext .ts,.tsx --max-warnings 0",
9+
"format": "eslint . --fix --ext .ts,.tsx",
1010
"test": "mocha -r ts-node/register -t 600s 'tests/**/*.test.ts'"
1111
},
1212
"repository": {

src/headers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
import * as core from '@actions/core';
18-
1917
const customMetadataPrefix = 'x-goog-meta-';
2018

2119
interface CustomMetadata {

tests/headers.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
import 'mocha';
1818
import { expect } from 'chai';
1919

20-
import * as core from '@actions/core';
21-
import * as sinon from 'sinon';
22-
2320
import { parseHeadersInput } from '../src/headers';
2421

2522
describe('#parseHeadersInput', () => {

0 commit comments

Comments
 (0)