-
Notifications
You must be signed in to change notification settings - Fork 677
Expand file tree
/
Copy patheslint.config.js
More file actions
29 lines (27 loc) · 1.3 KB
/
eslint.config.js
File metadata and controls
29 lines (27 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
require('local-node-rig/profiles/default/includes/eslint/flat/patch/eslint-bulk-suppressions');
const typescriptEslintParser = require('@typescript-eslint/parser');
const nodeTrustedToolProfile = require('local-node-rig/profiles/default/includes/eslint/flat/profile/node-trusted-tool');
const friendlyLocalsMixin = require('local-node-rig/profiles/default/includes/eslint/flat/mixins/friendly-locals');
module.exports = [
...nodeTrustedToolProfile,
...friendlyLocalsMixin,
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
/**
* Override the parser from @rushstack/eslint-config. Since the config is coming
* from the workspace instead of the external NPM package, the versions of ESLint
* and TypeScript that the config consumes will be resolved from the devDependencies
* of the config instead of from the eslint-8-test package. Overriding the parser
* ensures that the these dependencies come from the eslint-8-test package. See:
* https://github.com/microsoft/rushstack/issues/3021
*/
parser: typescriptEslintParser,
parserOptions: {
tsconfigRootDir: __dirname
}
}
}
];