https://github.com/sagemathinc/cocalc
Raw File
Tip revision: ce8d6825b85b96ac56ea7ca86c6225d1c1237872 authored by Harald Schilly on 23 November 2020, 14:00:53 UTC
hub/maintenance syncstrings: make the delete limit and delay configurable
Tip revision: ce8d682
.eslintrc.js
/*
 *  This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */

module.exports = {
  parser: "@typescript-eslint/parser",
  plugins: ["react-hooks"],
  extends: [
    "plugin:react/recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier/@typescript-eslint", // Disables rules from @typescript-eslint that would conflict with Prettier
    "plugin:prettier/recommended", // Make sure this always the last config to be loaded.
  ],
  parserOptions: {
    ecmaVersion: 2018,
    sourceType: "module",
    ecmaFeatures: {
      jsx: true,
    },
  },
  rules: {
    camelcase: "off",
    "@typescript-eslint/camelcase": "off",
    "@typescript-eslint/no-inferrable-types": "off",
    "@typescript-eslint/no-explicit-any": "off",

    "react-hooks/rules-of-hooks": "error",
    "react-hooks/exhaustive-deps": "warn",

    "arrow-body-style": ["error", "always"],
    "no-console": ["error", { allow: ["warn", "error"] }],

    "react/prop-types": "off",
  },
  settings: {
    react: {
      version: "detect",
    },
  },
};
back to top