Last active
September 2, 2021 03:06
-
-
Save labocho/b3665e878db2b30b79abe43d5f1e3a25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends: | |
- eslint:all | |
- plugin:@typescript-eslint/all | |
- plugin:vue/recommended | |
env: | |
browser: true | |
parser: "vue-eslint-parser" | |
parserOptions: | |
extraFileExtensions: | |
- vue | |
parser: "@typescript-eslint/parser" | |
project: ./tsconfig.json | |
globals: | |
require: readonly # require を許可 | |
module: readonly # module.exports を許可 | |
overrides: | |
- files: | |
- "*.js" | |
rules: | |
"@typescript-eslint/no-unsafe-return": "off" | |
"@typescript-eslint/explicit-function-return-type": "off" | |
"@typescript-eslint/strict-boolean-expressions": "off" | |
- files: | |
- webpack.config.js | |
globals: | |
__dirname: readonly | |
rules: | |
max-lines-per-function: "off" | |
sort-keys: "off" | |
rules: | |
array-element-newline: "off" # 1 行で複数要素の array を書くのを許可 | |
arrow-body-style: "off" # () => expr も () => { return expr; } も許可 | |
camelcase: ["error", {properties: "never"}] # プロパティ名以外は camelcase に | |
capitalized-comments: "off" # 小文字ではじまるコメントを許可 | |
comma-dangle: "off" # ts のほうでチェック | |
curly: ["error", "multi-line"] # 一行なら if (cond) expre を許可 | |
func-style: "off" # function foo() {} も const foo = function() {} も許可 | |
function-call-argument-newline: "off" # 実引数で 1 つづつ改行しないでもよい | |
id-length: "off" # 識別子の文字数制限なし | |
indent: "off" # ts のほうでチェック | |
line-comment-position: "off" # コメントの位置は自由 | |
max-len: "off" # 行数制限なし | |
max-params: "off" # 引数の数制限なし | |
multiline-comment-style: "off" # // で複数行コメントを許可 | |
multiline-ternary: ["error", "never"] # 3 項演算子は 1 行のみ | |
newline-per-chained-call: "off" # 1 行でメソッドチェーン可能に | |
no-alert: "off" | |
no-inline-comments: "off" # コメントの位置は自由 | |
no-undefined: "off" # undefined グローバル変数を許可 | |
no-ternary: "off" # 3 項演算子を許可 | |
one-var: ["error", "never"] # var foo = 1, bar = 2 を不許可 | |
padded-blocks: ["error", "never"] # ブロック内の最初と最後の空行を不許可 | |
prefer-template: "off" | |
quote-props: ["error", "as-needed"] # プロパティ名は必要なときだけ quote | |
space-before-function-paren: "off" # ts のほうでチェック | |
yoda: "off" # yoda 記法許可 | |
"vue/order-in-components": "off" | |
"@typescript-eslint/comma-dangle": ["error", "always-multiline"] # 複数行なら常に末尾カンマつける | |
"@typescript-eslint/consistent-indexed-object-style": "off" | |
"@typescript-eslint/explicit-member-accessibility": "off" | |
"@typescript-eslint/indent": ["error", 2] # インデントは 2 文字 | |
"@typescript-eslint/lines-between-class-members": "off" | |
"@typescript-eslint/no-non-null-assertion": "off" # foo! を許可 | |
"@typescript-eslint/no-magic-numbers": "off" # 数値定数を許可 | |
"@typescript-eslint/no-throw-literal": "off" # throw "foo" を許可 | |
"@typescript-eslint/no-var-requires": "off" # require を許可 | |
"@typescript-eslint/no-unused-vars": ["error", {"argsIgnorePattern": "^_"}] | |
"@typescript-eslint/prefer-readonly-parameter-types": "off" # 引数に readonly でないものを許可 | |
"@typescript-eslint/space-before-function-paren": ["error", "never"] | |
# 下記は将来的に消せるといいもの | |
"@typescript-eslint/naming-convention": "off" | |
"@typescript-eslint/no-require-imports": "off" | |
"@typescript-eslint/no-unsafe-argument": "off" | |
"@typescript-eslint/no-unsafe-assignment": "off" | |
"@typescript-eslint/no-unsafe-call": "off" | |
"@typescript-eslint/no-unsafe-member-access": "off" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment