Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add more eslints
Alexis Sellier committed 4 years ago
commit 7fc675f728264db44fe900eccf31b4da3c45ee55
parent b6537bf2ce92309a50adca7bfcff60275c0f4b7f
1 file changed +9 -2
modified .eslintrc.json
@@ -1,5 +1,6 @@
{
  "env": {
+
    "es6": true,
    "browser": true,
    "node": true
  },
@@ -9,8 +10,9 @@
  ],
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
-
    "ecmaVersion": 12,
-
    "sourceType": "module"
+
    "ecmaVersion": 2020,
+
    "sourceType": "module",
+
    "extraFileExtensions": [".svelte"]
  },
  "plugins": [
    "svelte3",
@@ -29,6 +31,10 @@
    "keyword-spacing": ["error"],
    "no-trailing-spaces": ["error"],
    "no-multi-spaces": ["error"],
+
    "no-multiple-empty-lines": ["error"],
+
    "space-before-blocks": ["error"],
+
    "object-curly-spacing": ["error", "always"],
+
    "array-bracket-spacing": ["error", "never"],
    "space-before-function-paren": ["error", {
      "anonymous": "always",
      "named": "never",
@@ -36,6 +42,7 @@
    }],
    "eol-last": ["error"],
    "key-spacing": ["error"],
+
    "@typescript-eslint/object-curly-spacing": ["error", "always"],
    "@typescript-eslint/type-annotation-spacing": ["error"],
    "@typescript-eslint/naming-convention": [
      "error",