mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
5e92794be6
Resubmission of #157532 with the following changes: - Use `eslint-plugin-local` instead of `yarn` link to run our plugins - Move our plugins to a top level `.eslintplugin` dir (as required by `eslint-plugin-local`) - Update all names to `local/`
12 lines
329 B
JavaScript
12 lines
329 B
JavaScript
const glob = require('glob');
|
|
const path = require('path');
|
|
|
|
require('ts-node').register({ experimentalResolver: true, transpileOnly: true });
|
|
|
|
// Re-export all .ts files as rules
|
|
const rules = {};
|
|
glob.sync(`${__dirname}/*.ts`).forEach((file) => {
|
|
rules[path.basename(file, '.ts')] = require(file);
|
|
});
|
|
|
|
exports.rules = rules;
|