-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #379 from iclanton/general-updates
Enable some stricter compiler and linting options, and general repo cleanup.
- Loading branch information
Showing
148 changed files
with
3,865 additions
and
2,682 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,40 @@ | ||
// This is a workaround for https://github.com/eslint/eslint/issues/3458 | ||
require('@rushstack/eslint-config/patch/modern-module-resolution'); | ||
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/eslint-config/profile/node', '@rushstack/eslint-config/mixins/friendly-locals'], | ||
parserOptions: { tsconfigRootDir: __dirname } | ||
extends: [ | ||
'@rushstack/heft-node-rig/profiles/default/includes/eslint/profile/node', | ||
'@rushstack/heft-node-rig/profiles/default/includes/eslint/mixins/friendly-locals' | ||
], | ||
parserOptions: { tsconfigRootDir: __dirname }, | ||
|
||
plugins: ['eslint-plugin-header'], | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
// Rationale: Including the `type` annotation in the import statement for imports | ||
// only used as types prevents the import from being emitted in the compiled output. | ||
'@typescript-eslint/consistent-type-imports': [ | ||
'warn', | ||
{ prefer: 'type-imports', disallowTypeAnnotations: false, fixStyle: 'inline-type-imports' } | ||
], | ||
|
||
// Rationale: If all imports in an import statement are only used as types, | ||
// then the import statement should be omitted in the compiled JS output. | ||
'@typescript-eslint/no-import-type-side-effects': 'warn', | ||
|
||
'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.' | ||
] | ||
] | ||
} | ||
} | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
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 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
Oops, something went wrong.