Files
calendar/packages/eslint-plugin/src/index.js
T
Benny JooandGitHub 14151b827f fix: make ESLint work and fix lint errors that were undetected before (#18639)
* fix eslint config

* fix

* add it to dev dep

* fix

* sync eslint version

* force ts-node to compile our ESLint plugin's TS files into CommonJS (which ESLint requires)

* fix some lint errors

* fix lint errors

* remove duplicate classname

* make @typescript-eslint/ban-types a warn for packages/trpc files

* fix lint errors in trpc

* fix lint errors in trpc - 2

* fix

* fix

* fix lint warnings
2025-01-14 08:58:38 +00:00

16 lines
545 B
JavaScript

// This registers Typescript compiler instance onto node.js.
// Now it is possible to just require typescript files without any compilation steps in the environment run by node
require("ts-node").register({
compilerOptions: {
module: "commonjs",
},
});
// re-export our rules so that eslint run by node can understand them
module.exports = {
// import our rules from the typescript file
rules: require("./rules/index.ts").default,
// import our config from the typescript file
configs: require("./configs/index.ts").default,
};