Revision ab12d805f55df1b53d108211f893374f029c02ea authored by Harald Schilly on 05 January 2022, 15:42:00 UTC, committed by Harald Schilly on 05 January 2022, 15:50:39 UTC
1 parent 6102f9c
.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",
},
},
};
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...