Yuki Takei 7 лет назад
Родитель
Сommit
a563d9d9c4

+ 4 - 0
packages/growi-plugin-lsx/.eslintignore

@@ -0,0 +1,4 @@
+/.github/**
+/.vscode/**
+/node_modules/**
+/lib/**

+ 89 - 0
packages/growi-plugin-lsx/.eslintrc.js

@@ -0,0 +1,89 @@
+module.exports = {
+  "env": {
+    "browser": true,
+    "commonjs": true,
+    "es6": true,
+    "node": true
+  },
+  "extends": [
+    "eslint:recommended",
+    "plugin:react/recommended"
+  ],
+  "globals": {
+    "window": true
+  },
+  "parserOptions": {
+    "ecmaVersion": 8,
+    "ecmaFeatures": {
+      "experimentalObjectRestSpread": true,
+      "jsx": true
+    },
+    "sourceType": "module"
+  },
+  "plugins": [
+    "react"
+  ],
+  "rules": {
+    "brace-style": [
+      "error",
+      "stroustrup", { "allowSingleLine": true }
+    ],
+    "comma-spacing": [
+      "error",
+      { "before": false, "after": true }
+    ],
+    "func-call-spacing": [
+      "error",
+      "never"
+    ],
+    "indent": [
+      "error",
+      2,
+      {
+        "SwitchCase": 1,
+        "ignoredNodes": ['JSXElement *', 'JSXElement', "JSXAttribute", "JSXSpreadAttribute"],
+        "FunctionDeclaration": {"body": 1, "parameters": 2},
+        "FunctionExpression": {"body": 1, "parameters": 2},
+        "MemberExpression": "off"
+      }
+    ],
+    "key-spacing": [
+      "error", {
+        "beforeColon": false,
+        "afterColon": true,
+        "mode": "minimum"
+      }
+    ],
+    "keyword-spacing": [
+      "error", {}
+    ],
+    "linebreak-style": [
+      "error",
+      "unix"
+    ],
+    "no-unused-vars": [
+      "error",
+      { "args": "none" }
+    ],
+    "no-var": [ "error" ],
+    "quotes": [
+      "error",
+      "single"
+    ],
+    "react/jsx-uses-vars": 1,
+    "react/no-string-refs": "off",
+    "semi": [
+      "error",
+      "always",
+      { "omitLastInOneLineBlock": true }
+    ],
+    "space-before-blocks": [
+      "error",
+      "always"
+    ],
+    "space-before-function-paren": [
+      "error",
+      "never"
+    ]
+  }
+};

+ 2 - 0
packages/growi-plugin-lsx/package.json

@@ -42,6 +42,8 @@
     "babel-preset-power-assert": "^2.0.0",
     "babel-preset-react": "^6.24.1",
     "babel-register": "^6.23.0",
+    "eslint": "^5.9.0",
+    "eslint-plugin-react": "^7.11.1",
     "mkdirp": "^0.5.1",
     "mocha": "^5.0.4",
     "ncp": "^2.0.0",

Разница между файлами не показана из-за своего большого размера
+ 592 - 6
packages/growi-plugin-lsx/yarn.lock


Некоторые файлы не были показаны из-за большого количества измененных файлов