Skip to content

Commit

Permalink
Update npm and eslint settings (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Apr 24, 2023
1 parent d102822 commit eb3ba23
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 31 deletions.
31 changes: 8 additions & 23 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"plugins": [
"jest",
"@typescript-eslint"
],
"plugins": ["jest", "@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -20,28 +18,15 @@
"import/no-namespace": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "no-public"
}
],
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error",
"camelcase": "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"@typescript-eslint/func-call-spacing": [
"error",
"never"
],
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
"@typescript-eslint/func-call-spacing": ["error", "never"],
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
Expand All @@ -63,13 +48,13 @@
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"semi": "off",
"@typescript-eslint/semi": "off",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error"
},
"env": {
"node": true,
"es6": true,
"es2022": true,
"jest/globals": true
}
}
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"name": "typescript-action",
"version": "0.0.0",
"private": true,
"description": "TypeScript template action",
"name": "lucacome-draft-release",
"description": "GitHub Action to create a draft release",
"main": "lib/main.js",
"scripts": {
"build": "tsc",
Expand All @@ -19,10 +17,11 @@
},
"keywords": [
"actions",
"node",
"setup"
"release",
"notes",
"draft"
],
"author": "",
"author": "Luca Comellini",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
Expand Down

0 comments on commit eb3ba23

Please sign in to comment.