summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-13 00:18:41 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-13 00:18:41 +0900
commit320f5fedfb0fe0c6761ba0ba5a4d37b730975f41 (patch)
tree9f5e9b7c081b2d976bb2dd348d74dcfc6c606d4f /src
parentnpm run watchでサーバーサイドもwatchするように (diff)
downloadmisskey-320f5fedfb0fe0c6761ba0ba5a4d37b730975f41.tar.gz
misskey-320f5fedfb0fe0c6761ba0ba5a4d37b730975f41.tar.bz2
misskey-320f5fedfb0fe0c6761ba0ba5a4d37b730975f41.zip
eslintrcとtsconfigを整理
Diffstat (limited to '')
-rw-r--r--src/.eslintrc6
-rw-r--r--src/client/.eslintrc20
-rw-r--r--src/tsconfig.json (renamed from tsconfig.json)8
3 files changed, 30 insertions, 4 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/tsconfig.json b/src/tsconfig.json
index 075450bf64..95cb35fc5f 100644
--- a/tsconfig.json
+++ b/src/tsconfig.json
@@ -22,8 +22,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"typeRoots": [
- "node_modules/@types",
- "src/@types"
+ "../node_modules/@types",
+ "./@types"
],
"lib": [
"esnext"
@@ -31,9 +31,9 @@
},
"compileOnSave": false,
"include": [
- "./src/**/*.ts"
+ "./**/*.ts"
],
"exclude": [
- "./src/client/**/*.ts"
+ "./client/**/*.ts"
]
}