tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

.eslintrc.mjs (902B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 export default [
      6  {
      7    rules: {
      8      // XXX Bug 1326071 - This should be reduced down - probably to 20 or to
      9      // be removed & synced with the mozilla/recommended value.
     10      complexity: ["error", { max: 48 }],
     11 
     12      // Disallow empty statements. This will report an error for:
     13      // try { something(); } catch (e) {}
     14      // but will not report it for:
     15      // try { something(); } catch (e) { /* Silencing the error because ...*/ }
     16      // which is a valid use case.
     17      "no-empty": "error",
     18 
     19      // Maximum depth callbacks can be nested.
     20      "max-nested-callbacks": ["error", 8],
     21 
     22      // Disallow adding to native types
     23      "no-extend-native": "error",
     24    },
     25  },
     26 ];