roleplayer
Version:
A library for building table top role playing game worlds, and managing campaigns in those worlds
46 lines (43 loc) • 812 B
JavaScript
const { resolve } = require("node:path");
const project = resolve(process.cwd(), "tsconfig.json");
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
rules: {
"no-unused-vars": "off",
},
parser: "@typescript-eslint/parser",
extends: ["eslint:recommended", "prettier", "eslint-config-turbo"],
plugins: ["only-warn"],
globals: {
// Jest stuff
it: true,
expect: true,
describe: true,
test: true,
// React stuff
React: true,
JSX: true,
},
env: {
node: true,
},
settings: {
"import/resolver": {
typescript: {
project,
},
},
},
ignorePatterns: [
// Ignore dotfiles
".*.js",
"node_modules/",
"dist/",
],
overrides: [
{
files: ["*.js?(x)", "*.ts?(x)"],
},
],
};