Reviewed-on: #1 Co-authored-by: Zeke Abshire <zekeabshire@gmail.com> Co-committed-by: Zeke Abshire <zekeabshire@gmail.com>
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
import tseslint from "typescript-eslint";
|
|
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
|
|
/** @type {import("eslint").Linter.Config} */
|
|
const config = {
|
|
...nextVitals,
|
|
...tseslint.configs.recommended,
|
|
...tseslint.configs.stylistic,
|
|
languageOptions: {
|
|
parser: tseslint.parser,
|
|
parserOptions: {
|
|
projectService: true,
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": tseslint.plugin,
|
|
},
|
|
rules: {
|
|
// These opinionated rules are enabled in stylistic-type-checked above.
|
|
// Feel free to reconfigure them to your own preference.
|
|
"@typescript-eslint/array-type": "off",
|
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
"warn",
|
|
{
|
|
prefer: "type-imports",
|
|
fixStyle: "inline-type-imports",
|
|
},
|
|
],
|
|
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
|
|
"@typescript-eslint/no-misused-promises": [
|
|
2,
|
|
{
|
|
checksVoidReturn: { attributes: false },
|
|
},
|
|
],
|
|
"react/no-unescaped-entities": ["off"],
|
|
"react-hooks/exhaustive-deps": "off",
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|