forked from microsoft/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-enable running our eslint rules using ts-node (microsoft#159495)
Resubmission of microsoft#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/`
- Loading branch information
Showing
60 changed files
with
240 additions
and
1,401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2020", | ||
"lib": [ | ||
"ES2020" | ||
], | ||
"module": "commonjs", | ||
"esModuleInterop": true, | ||
"alwaysStrict": true, | ||
"allowJs": true, | ||
"strict": true, | ||
"exactOptionalPropertyTypes": false, | ||
"useUnknownInCatchVariables": false, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"newLine": "lf", | ||
"noEmit": true | ||
}, | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.js" | ||
], | ||
"exclude": [ | ||
"node_modules/**" | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.