Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
61
node_modules/next/dist/lib/eslint/getESLintPromptValues.js
generated
vendored
Normal file
61
node_modules/next/dist/lib/eslint/getESLintPromptValues.js
generated
vendored
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
getESLintPromptValues: null,
|
||||
getESLintStrictValue: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
getESLintPromptValues: function() {
|
||||
return getESLintPromptValues;
|
||||
},
|
||||
getESLintStrictValue: function() {
|
||||
return getESLintStrictValue;
|
||||
}
|
||||
});
|
||||
const _findup = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/find-up"));
|
||||
function _interop_require_default(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
const getESLintStrictValue = async (cwd)=>{
|
||||
const tsConfigLocation = await (0, _findup.default)('tsconfig.json', {
|
||||
cwd
|
||||
});
|
||||
const hasTSConfig = tsConfigLocation !== undefined;
|
||||
return {
|
||||
title: 'Strict',
|
||||
recommended: true,
|
||||
config: {
|
||||
extends: hasTSConfig ? [
|
||||
'next/core-web-vitals',
|
||||
'next/typescript'
|
||||
] : 'next/core-web-vitals'
|
||||
}
|
||||
};
|
||||
};
|
||||
const getESLintPromptValues = async (cwd)=>{
|
||||
return [
|
||||
await getESLintStrictValue(cwd),
|
||||
{
|
||||
title: 'Base',
|
||||
config: {
|
||||
extends: 'next'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Cancel',
|
||||
config: null
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
//# sourceMappingURL=getESLintPromptValues.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue