package.configs.eslint.overrides.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
module.exports = {
// Currently we are using this section for excluding certain files from certain rules.
overrides: [
{
files: [
".eslintrc.js",
".prettierrc.js",
"app/assets/**/*",
"app/javascript/packs/**/*",
"*.json",
],
rules: {
"import/order": "off",
"react-hooks/rules-of-hooks": "off",
},
},
{
files: ["app/javascript/packs/**/*.{js,jsx}"],
rules: { "no-redeclare": "off" },
},
{
files: ["**/*.spec.js", "**/*.spec.jsx", "**/*.test.jsx"],
env: { jest: true },
},
],
};