diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-13 00:18:41 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-13 00:18:41 +0900 |
| commit | 320f5fedfb0fe0c6761ba0ba5a4d37b730975f41 (patch) | |
| tree | 9f5e9b7c081b2d976bb2dd348d74dcfc6c606d4f /src | |
| parent | npm run watchでサーバーサイドもwatchするように (diff) | |
| download | sharkey-320f5fedfb0fe0c6761ba0ba5a4d37b730975f41.tar.gz sharkey-320f5fedfb0fe0c6761ba0ba5a4d37b730975f41.tar.bz2 sharkey-320f5fedfb0fe0c6761ba0ba5a4d37b730975f41.zip | |
eslintrcとtsconfigを整理
Diffstat (limited to 'src')
| -rw-r--r-- | src/.eslintrc | 6 | ||||
| -rw-r--r-- | src/client/.eslintrc | 20 | ||||
| -rw-r--r-- | src/tsconfig.json | 39 |
3 files changed, 65 insertions, 0 deletions
diff --git a/src/.eslintrc b/src/.eslintrc new file mode 100644 index 0000000000..d54e20f6b6 --- /dev/null +++ b/src/.eslintrc @@ -0,0 +1,6 @@ +{ + "env": { + "node": true, + "commonjs": true + } +} diff --git a/src/client/.eslintrc b/src/client/.eslintrc index 8829472b49..fffa28d9e4 100644 --- a/src/client/.eslintrc +++ b/src/client/.eslintrc @@ -1,4 +1,24 @@ { + "env": { + "node": false, + }, + "extends": [ + "eslint:recommended", + "plugin:vue/recommended" + ], + "rules": { + "vue/require-v-for-key": 0, + "vue/max-attributes-per-line": 0, + "vue/html-indent": 0, + "vue/html-self-closing": 0, + "vue/no-unused-vars": 0, + "vue/attributes-order": 0, + "vue/require-prop-types": 0, + "vue/require-default-prop": 0, + "vue/html-closing-bracket-spacing": 0, + "vue/singleline-html-element-content-newline": 0, + "vue/no-v-html": 0 + }, "globals": { "_DEV_": false, "_LANGS_": false, diff --git a/src/tsconfig.json b/src/tsconfig.json new file mode 100644 index 0000000000..95cb35fc5f --- /dev/null +++ b/src/tsconfig.json @@ -0,0 +1,39 @@ +{ + "compilerOptions": { + "allowJs": true, + "noEmitOnError": false, + "noImplicitAny": true, + "noImplicitReturns": true, + "noUnusedParameters": false, + "noUnusedLocals": true, + "noFallthroughCasesInSwitch": true, + "declaration": false, + "sourceMap": true, + "target": "es2017", + "module": "commonjs", + "moduleResolution": "node", + "removeComments": false, + "noLib": false, + "strict": true, + "strictNullChecks": true, + "strictPropertyInitialization": false, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "resolveJsonModule": true, + "isolatedModules": true, + "typeRoots": [ + "../node_modules/@types", + "./@types" + ], + "lib": [ + "esnext" + ] + }, + "compileOnSave": false, + "include": [ + "./**/*.ts" + ], + "exclude": [ + "./client/**/*.ts" + ] +} |