* 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
16 lines
545 B
JavaScript
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,
|
|
};
|