diff options
| author | Shulhan <ms@kilabit.info> | 2023-10-24 03:41:47 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-10-24 22:28:25 +0700 |
| commit | 85c3fc0431e7e75a41894d4669f6a46bbda5440b (patch) | |
| tree | 15b73a82e9eaaa9ac9f2558578c8d7610ad392cd /.eslintrc.yaml | |
| parent | 891a860299ac76739d59f46280cbed63ff07743e (diff) | |
| download | pakakeh.ts-85c3fc0431e7e75a41894d4669f6a46bbda5440b.tar.xz | |
all: fix all linter warnings from tsc and eslint
In this changes we introduce eslint as our linter for TypeScript and
update our tsconfig to be more strict.
The ".eslintrc.yaml" and "tsconfig.json" is taken from golang/website
repository [1].
[1]: https://cs.opensource.google/go/x/website
Diffstat (limited to '.eslintrc.yaml')
| -rw-r--r-- | .eslintrc.yaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml new file mode 100644 index 0000000..9c2b441 --- /dev/null +++ b/.eslintrc.yaml @@ -0,0 +1,29 @@ +root: true +extends: google +parserOptions: + ecmaVersion: 2018 +rules: + require-jsdoc: 'off' + indent: 'off' + arrow-parens: 'off' + comma-dangle: ['error', {'functions': 'never'}] +overrides: + - files: + - '*.ts' + parser: '@typescript-eslint/parser' + env: + browser: true + plugins: + - '@typescript-eslint' + extends: + - eslint:recommended + - plugin:@typescript-eslint/recommended + - plugin:prettier/recommended + rules: + valid-jsdoc: + - error + - requireParamType: false + requireReturnType: false + requireReturn: false +ignorePatterns: + - '*.js' |
