Skip to content

Commit

Permalink
Merge pull request #4576 from iclanton/lint-eslint
Browse files Browse the repository at this point in the history
Enable ESLint for the ESLint projects.
  • Loading branch information
iclanton authored Mar 14, 2024
2 parents 661252a + 772638b commit f40468e
Show file tree
Hide file tree
Showing 44 changed files with 477 additions and 266 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/eslint-patch"
}
],
"packageName": "@rushstack/eslint-patch",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/eslint-plugin-packlets"
}
],
"packageName": "@rushstack/eslint-plugin-packlets",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/eslint-plugin-security"
}
],
"packageName": "@rushstack/eslint-plugin-security",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/eslint-plugin"
}
],
"packageName": "@rushstack/eslint-plugin",
"email": "[email protected]"
}
53 changes: 45 additions & 8 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/config/rush/repo-state.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
{
"pnpmShrinkwrapHash": "f822f33cfaa2dd2ddabff5737141fb799f6ba475",
"pnpmShrinkwrapHash": "dd87795876dbd30794a0de512ac2bb8926bf8e62",
"preferredVersionsHash": "40d4640a94cff77f7808a2f1960cc76231eb6f86"
}
29 changes: 29 additions & 0 deletions eslint/eslint-patch/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@rushstack/heft-node-rig/profiles/default/includes/eslint/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('@rushstack/heft-node-rig/profiles/default/includes/eslint/patch/custom-config-package-names');

module.exports = {
extends: [
'@rushstack/heft-node-rig/profiles/default/includes/eslint/profile/node',
'@rushstack/heft-node-rig/profiles/default/includes/eslint/mixins/friendly-locals',
'@rushstack/heft-node-rig/profiles/default/includes/eslint/mixins/tsdoc'
],
parserOptions: { tsconfigRootDir: __dirname },
plugins: ['eslint-plugin-header'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'header/header': [
'warn',
'line',
[
' Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.',
' See LICENSE in the project root for license information.'
]
]
}
}
]
};
7 changes: 5 additions & 2 deletions eslint/eslint-patch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
"devDependencies": {
"@rushstack/heft": "0.65.5",
"@rushstack/heft-node-rig": "2.4.18",
"@types/eslint": "8.2.0",
"@types/node": "18.17.15",
"typescript": "~5.3.3",
"@typescript-eslint/types": "~5.59.2"
"@typescript-eslint/types": "~5.59.2",
"eslint": "~8.7.0",
"eslint-plugin-header": "~3.1.1",
"typescript": "~5.3.3"
}
}
Loading

0 comments on commit f40468e

Please sign in to comment.