Skip to content

Instantly share code, notes, and snippets.

@sanohin
Created September 16, 2019 07:45
Show Gist options
  • Select an option

  • Save sanohin/8bb03d49e9a6dbb18aa885ab6afed416 to your computer and use it in GitHub Desktop.

Select an option

Save sanohin/8bb03d49e9a6dbb18aa885ab6afed416 to your computer and use it in GitHub Desktop.
module.exports = {
extends: ["react-app"],
plugins: ["@typescript-eslint", "eslint-plugin-import-helpers"],
rules: {
"no-restricted-globals": 0,
"no-undef": 0,
"no-console": 0,
"react-hooks/rules-of-hooks": 0,
"@typescript-eslint/array-type": ["warn", "array-simple"],
"react-hooks/exhaustive-deps": 0,
//TODO enable it someday
"@typescript-eslint/no-unused-vars": "error",
"import-helpers/order-imports": [
"warn",
{
newlinesBetween: "always", // new line between groups
groups: [
"module",
"/^@/",
"/^(modules|api|libs|components|services)/",
[("parent", "sibling", "index")]
],
alphabetize: { order: "ignore", ignoreCase: true }
}
]
},
overrides: {
files: ["./src/**/*.ts", "./src/**/*.tsx"],
rules: {
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/no-unused-vars": "error",
"default-case": "off",
"no-unused-vars": "off",
"no-useless-escape": "off",
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": 0,
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/anchor-is-valid": "off",
"react-hooks/exhaustive-dep": 0
}
},
globals: {
page: true,
browser: true,
cy: true,
Cypress: true
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment