forked from hamcha/tghandbook
35 lines
951 B
JavaScript
35 lines
951 B
JavaScript
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",
|
|
"no-shadow": "off",
|
|
"func-names": "off",
|
|
"default-param-last": "off",
|
|
"dot-notation": ["error", { allowPattern: "^[A-Z][a-z]+$" }],
|
|
"@typescript-eslint/ban-ts-comment": [
|
|
"error",
|
|
{
|
|
"ts-expect-error": "allow-with-description",
|
|
},
|
|
],
|
|
"@typescript-eslint/no-shadow": ["error"],
|
|
"@typescript-eslint/default-param-last": ["error"],
|
|
},
|
|
};
|