This repository has been archived on 2022-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
tghandbook/.eslintrc.cjs

36 lines
951 B
JavaScript
Raw Normal View History

2020-06-17 13:16:54 +00:00
module.exports = {
env: {
browser: true,
es2020: true,
},
extends: [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier"],
rules: {
"prettier/prettier": "error",
"one-var": "off", // WHO CARES?????
"no-use-before-define": "off", // YOU ARE WRONG
"import/extensions": "off",
"import/no-unresolved": "off",
"no-param-reassign": "off",
"no-alert": "off",
"no-console": "off",
2022-05-10 10:37:34 +00:00
"no-shadow": "off",
2020-06-21 17:16:01 +00:00
"func-names": "off",
2022-05-10 10:37:34 +00:00
"default-param-last": "off",
"dot-notation": ["error", { allowPattern: "^[A-Z][a-z]+$" }],
2020-06-17 13:16:54 +00:00
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
},
],
2022-05-10 10:37:34 +00:00
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/default-param-last": ["error"],
2020-06-17 13:16:54 +00:00
},
};