@churchapps/apihelper
Version:
Library of helper functions not specific to any one ChurchApps project or framework.
40 lines (39 loc) • 1.16 kB
JavaScript
import eslint from "@eslint/js";
import tseslint from "@typescript-eslint/eslint-plugin";
import parser from "@typescript-eslint/parser";
export default [
eslint.configs.recommended,
{
files: ["**/*.ts"],
languageOptions: {
parser: parser,
parserOptions: {
ecmaVersion: 2020,
sourceType: "module"
},
globals: {
console: "readonly",
process: "readonly",
Buffer: "readonly",
__dirname: "readonly",
global: "readonly"
}
},
plugins: {
"@typescript-eslint": tseslint
},
rules: {
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "warn",
"no-console": "off",
"no-useless-catch": "off",
"comma-dangle": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"]
}
},
{
ignores: ["dist/**/*", "node_modules/**/*"]
}
];