42 lines
970 B
JavaScript
42 lines
970 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
es6: true,
|
|
node: true,
|
|
},
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"plugin:import/typescript",
|
|
"google",
|
|
"plugin:@typescript-eslint/recommended",
|
|
],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
project: ["tsconfig.json", "tsconfig.dev.json"],
|
|
sourceType: "module",
|
|
},
|
|
ignorePatterns: [
|
|
"/lib/**/*", // Ignore built files.
|
|
"/dist/**/*", // Ignore compiled output.
|
|
"/tests/**/*",
|
|
"vitest.config.ts",
|
|
"/generated/**/*", // Ignore generated files.
|
|
],
|
|
plugins: [
|
|
"@typescript-eslint",
|
|
"import",
|
|
],
|
|
rules: {
|
|
quotes: ["error", "double"],
|
|
"import/no-unresolved": 0,
|
|
indent: ["error", 2],
|
|
"require-jsdoc": "off",
|
|
"valid-jsdoc": "off",
|
|
"max-len": ["error", { code: 120 }],
|
|
"object-curly-spacing": ["error", "always"],
|
|
"quote-props": ["error", "as-needed"],
|
|
},
|
|
};
|