38 строки
754 B
JavaScript
38 строки
754 B
JavaScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
/**
|
|
* @fileoverview Common utils for tests.
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
const path = require("path");
|
|
const tsParser = require("@typescript-eslint/parser");
|
|
|
|
module.exports = {
|
|
es6LanguageOptions: {
|
|
parserOptions: {
|
|
ecmaVersion: 6,
|
|
sourceType: "module"
|
|
}
|
|
},
|
|
tsLanguageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
tsconfigRootDir: path.join(__dirname, "..", "fixtures", "ts"),
|
|
projectService: true
|
|
}
|
|
},
|
|
tsReactLanguageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
tsconfigRootDir: path.join(__dirname, "..", "fixtures", "tsx"),
|
|
projectService: true,
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
}
|
|
}
|
|
}
|
|
};
|