feat: move config to package.json
parent
1f2ba0abed
commit
af33273f15
@ -1,50 +0,0 @@
|
|||||||
/** @type {import("eslint").Linter.Config} */
|
|
||||||
module.exports = {
|
|
||||||
root: true,
|
|
||||||
parser: "@typescript-eslint/parser",
|
|
||||||
plugins: ["isaacscript", "import"],
|
|
||||||
extends: [
|
|
||||||
"plugin:@typescript-eslint/recommended-type-checked",
|
|
||||||
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
||||||
"plugin:prettier/recommended",
|
|
||||||
],
|
|
||||||
parserOptions: {
|
|
||||||
ecmaVersion: "latest",
|
|
||||||
sourceType: "module",
|
|
||||||
tsconfigRootDir: __dirname,
|
|
||||||
project: ["./tsconfig.json"],
|
|
||||||
},
|
|
||||||
overrides: [],
|
|
||||||
rules: {
|
|
||||||
// These off/not-configured-the-way-we-want lint rules we like & opt into
|
|
||||||
"@typescript-eslint/no-explicit-any": "error",
|
|
||||||
// Note: you must disable the base rule as it can report incorrect errors
|
|
||||||
"no-unused-vars": "off",
|
|
||||||
"@typescript-eslint/no-unused-vars": [
|
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
argsIgnorePattern: "^_",
|
|
||||||
destructuredArrayIgnorePattern: "^_",
|
|
||||||
varsIgnorePattern: "^_",
|
|
||||||
ignoreRestSiblings: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"@typescript-eslint/consistent-type-imports": [
|
|
||||||
"error",
|
|
||||||
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
|
|
||||||
],
|
|
||||||
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
||||||
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
|
|
||||||
|
|
||||||
// For educational purposes we format our comments/jsdoc nicely
|
|
||||||
"isaacscript/complete-sentences-jsdoc": "warn",
|
|
||||||
"isaacscript/format-jsdoc-comments": "warn",
|
|
||||||
|
|
||||||
// These lint rules don't make sense for us but are enabled in the preset configs
|
|
||||||
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
||||||
"@typescript-eslint/restrict-template-expressions": "off",
|
|
||||||
|
|
||||||
// This rule doesn't seem to be working properly
|
|
||||||
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
||||||
},
|
|
||||||
};
|
|
@ -1,7 +0,0 @@
|
|||||||
/** @type {import("prettier").Config} */
|
|
||||||
module.exports = {
|
|
||||||
plugins: [
|
|
||||||
"@ianvs/prettier-plugin-sort-imports",
|
|
||||||
"prettier-plugin-tailwindcss",
|
|
||||||
],
|
|
||||||
};
|
|
Loading…
Reference in New Issue