-
Notifications
You must be signed in to change notification settings - Fork 709
Expand file tree
/
Copy patheslint.config.js
More file actions
23 lines (21 loc) · 913 Bytes
/
Copy patheslint.config.js
File metadata and controls
23 lines (21 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
const nodeProfile = require('local-node-rig/profiles/default/includes/eslint/flat/profile/node');
const friendlyLocalsMixin = require('local-node-rig/profiles/default/includes/eslint/flat/mixins/friendly-locals');
const tsdocMixin = require('local-node-rig/profiles/default/includes/eslint/flat/mixins/tsdoc');
const strictCodegenMixin = require('local-node-rig/profiles/default/includes/eslint/flat/mixins/strict-codegen');
module.exports = [
...nodeProfile,
...friendlyLocalsMixin,
...tsdocMixin,
// IMPORTANT: The strict-codegen mixin must remain last so its rules win conflicts.
...strictCodegenMixin,
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parserOptions: {
tsconfigRootDir: __dirname
}
}
}
];