1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

Feature/eslint (#120)

* * remove eslint-plugin-import

* * update TypeScript rules

* * update valid-jsdoc

* * update sort-imports

* * update semicolon style

* * update lines-between-class-members

* * update id-length

* * update function-paren-newline

* * update dot-notation
This commit is contained in:
shimataro 2020-02-26 08:28:23 +09:00 committed by GitHub
parent 0033eb1846
commit b7ac21090a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 138 additions and 413 deletions

View file

@ -7,7 +7,6 @@ extends:
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
plugins:
- import
- "@typescript-eslint"
parser: "@typescript-eslint/parser"
parserOptions:
@ -60,7 +59,7 @@ rules: # https://eslint.org/docs/rules/
- property
dot-notation:
- error
- allowKeywords: true
- allowPattern: "^_"
eol-last: error
eqeqeq: error
for-direction: error
@ -72,14 +71,16 @@ rules: # https://eslint.org/docs/rules/
func-style:
- error
- declaration
function-paren-newline: error
function-paren-newline:
- error
- multiline-arguments
generator-star-spacing: error
getter-return: error
global-require: error
guard-for-in: error
handle-callback-err: error
id-blacklist: error
id-length: 'off'
id-length: error
id-match: error
implicit-arrow-linebreak:
- error
@ -113,6 +114,7 @@ rules: # https://eslint.org/docs/rules/
lines-between-class-members:
- error
- always
- exceptAfterSingleLine: true
max-depth: error
max-len: 'off'
max-lines: 'off'
@ -147,6 +149,7 @@ rules: # https://eslint.org/docs/rules/
no-extra-bind: error
no-extra-label: error
no-extra-parens: error
no-extra-semi: error
no-floating-decimal: error
no-implicit-coercion: error
no-implicit-globals: error
@ -256,7 +259,10 @@ rules: # https://eslint.org/docs/rules/
semi-style:
- error
- last
sort-imports: 'off'
sort-imports:
- error
- ignoreCase: false
ignoreDeclarationSort: true
sort-keys: 'off'
sort-vars: error
space-before-blocks: error
@ -281,8 +287,14 @@ rules: # https://eslint.org/docs/rules/
- never
valid-jsdoc:
- error
- requireParamType: false
- prefer:
arg: param
argument: param
return: returns
yield: yields
exception: throws
requireReturn: false
requireParamType: false
requireReturnType: false
vars-on-top: error
wrap-iife: error
@ -292,13 +304,9 @@ rules: # https://eslint.org/docs/rules/
- error
- never
# import plugin
import/extensions: 'off'
import/no-unresolved:
- error
# @typescript-eslint plugin
"@typescript-eslint/explicit-function-return-type": 'off'
"@typescript-eslint/ban-ts-ignore": 'off'
"@typescript-eslint/no-empty-interface": 'off'
"@typescript-eslint/no-use-before-define":
- error
- functions: false