Skip to content
Snippets Groups Projects
Select Git revision
  • 78bb8398d67fa033ccbcea07065419737701663f
  • master default protected
  • pote_2023
  • documentations-html-f0e8dcec4bba9d7e8b79b95b79fedf732f2d19ec
  • documentations-html-fd10cfaeb1ac3b2fcd47b527a8ece2958c0a2dbe
  • documentations-html-fbb6ca14cc3bec2a3e98ba0cbb3fd98600828f8c
  • documentation-non-recours
  • ajout-variable-taux-allegement-general
  • tester-variable-taux-allegement-cotisations
  • ppa-rsa
  • documentations-html-acad4c9f95a39e798170e3e9ab147b24b9f7e613
  • 184-ajouter-une-variable-sur-le-non-recours
  • aides-logement
  • statistiques_impot
  • documentations-html-ab2ff75179b3a97939d5c802e370f32c1978b99b
  • statistiques_impot_corrections_chloe
  • documentations-html-e96b6fd1b3963bc54903d8de1e23ea3f7dbb2e00
  • cdhr_reform
  • memo_pfu
  • 177-integration-erfs-2021-pipeline
  • 175-ajout-code-casd
21 results

example.env

Blame
  • .eslintplugin.js 718 B
    module.exports = {
      rules: {
        "no-material-root-imports": {
          create(context) {
            return {
              ImportDeclaration(node) {
                const path = node.source.value;
                const forbiddenImports = ["@material-ui/core", "@material-ui/icons"];
                // eslint-disable-next-line no-restricted-syntax
                for (const imp of forbiddenImports) {
                  // The $ corresponds to the end of the sequence.
                  const regex = new RegExp(`${imp}$`);
                  if (regex.test(path)) {
                    context.report(node, `Importing elements from ${imp} is forbidden. Use ${imp}/xxx instead.`);
                  }
                }
              },
            };
          },
        },
      },
    };