https://github.com/sagemathinc/cocalc
Raw File
Tip revision: a750ac192f436e29efd0bfdd49bc2c27e7ccc919 authored by William A. Stein on 15 December 2019, 05:43:56 UTC
make "open in cocalc" at least make an anonymous user so it works at all, sort of. We will still obviously need to copy it over, etc. to do this right...
Tip revision: a750ac1
.eslintrc.js
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