251127:1700 Frontend Start Build
This commit is contained in:
3
frontend/.ignored_node_modules/eslint-config-next/core-web-vitals.js
generated
Normal file
3
frontend/.ignored_node_modules/eslint-config-next/core-web-vitals.js
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
extends: [require.resolve('.'), 'plugin:@next/next/core-web-vitals'],
|
||||
}
|
||||
129
frontend/.ignored_node_modules/eslint-config-next/index.js
generated
Normal file
129
frontend/.ignored_node_modules/eslint-config-next/index.js
generated
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* @rushstack/eslint-patch is used to include plugins as dev
|
||||
* dependencies instead of imposing them as peer dependencies
|
||||
*
|
||||
* https://www.npmjs.com/package/@rushstack/eslint-patch
|
||||
*/
|
||||
const keptPaths = []
|
||||
const sortedPaths = []
|
||||
const cwd = process.cwd().replace(/\\/g, '/')
|
||||
const originalPaths = require.resolve.paths('eslint-plugin-import')
|
||||
|
||||
// eslint throws a conflict error when plugins resolve to different
|
||||
// locations, since we want to lock our dependencies by default
|
||||
// but also need to allow using user dependencies this updates
|
||||
// our resolve paths to first check the cwd and iterate to
|
||||
// eslint-config-next's dependencies if needed
|
||||
|
||||
for (let i = originalPaths.length - 1; i >= 0; i--) {
|
||||
const currentPath = originalPaths[i]
|
||||
|
||||
if (currentPath.replace(/\\/g, '/').startsWith(cwd)) {
|
||||
sortedPaths.push(currentPath)
|
||||
} else {
|
||||
keptPaths.unshift(currentPath)
|
||||
}
|
||||
}
|
||||
|
||||
// maintain order of node_modules outside of cwd
|
||||
sortedPaths.push(...keptPaths)
|
||||
|
||||
const hookPropertyMap = new Map(
|
||||
[
|
||||
'@typescript-eslint/eslint-plugin',
|
||||
'eslint-plugin-import',
|
||||
'eslint-plugin-react',
|
||||
'eslint-plugin-jsx-a11y',
|
||||
].map((request) => [
|
||||
request,
|
||||
require.resolve(request, { paths: sortedPaths }),
|
||||
])
|
||||
)
|
||||
|
||||
const mod = require('module')
|
||||
const resolveFilename = mod._resolveFilename
|
||||
mod._resolveFilename = function (request, parent, isMain, options) {
|
||||
const hookResolved = hookPropertyMap.get(request)
|
||||
if (hookResolved) {
|
||||
request = hookResolved
|
||||
}
|
||||
return resolveFilename.call(mod, request, parent, isMain, options)
|
||||
}
|
||||
|
||||
require('@rushstack/eslint-patch/modern-module-resolution')
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
'plugin:react/recommended',
|
||||
'plugin:react-hooks/recommended',
|
||||
'plugin:@next/next/recommended',
|
||||
],
|
||||
plugins: ['import', 'react', 'jsx-a11y'],
|
||||
rules: {
|
||||
'import/no-anonymous-default-export': 'warn',
|
||||
'react/no-unknown-property': 'off',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'jsx-a11y/alt-text': [
|
||||
'warn',
|
||||
{
|
||||
elements: ['img'],
|
||||
img: ['Image'],
|
||||
},
|
||||
],
|
||||
'jsx-a11y/aria-props': 'warn',
|
||||
'jsx-a11y/aria-proptypes': 'warn',
|
||||
'jsx-a11y/aria-unsupported-elements': 'warn',
|
||||
'jsx-a11y/role-has-required-aria-props': 'warn',
|
||||
'jsx-a11y/role-supports-aria-props': 'warn',
|
||||
'react/jsx-no-target-blank': 'off',
|
||||
},
|
||||
parser: './parser.js',
|
||||
parserOptions: {
|
||||
requireConfigFile: false,
|
||||
sourceType: 'module',
|
||||
allowImportExportEverywhere: true,
|
||||
babelOptions: {
|
||||
presets: ['next/babel'],
|
||||
caller: {
|
||||
// Eslint supports top level await when a parser for it is included. We enable the parser by default for Babel.
|
||||
supportsTopLevelAwait: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/*.ts?(x)'],
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
},
|
||||
},
|
||||
],
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect',
|
||||
},
|
||||
'import/parsers': {
|
||||
[require.resolve('@typescript-eslint/parser')]: [
|
||||
'.ts',
|
||||
'.mts',
|
||||
'.cts',
|
||||
'.tsx',
|
||||
'.d.ts',
|
||||
],
|
||||
},
|
||||
'import/resolver': {
|
||||
[require.resolve('eslint-import-resolver-node')]: {
|
||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||
},
|
||||
[require.resolve('eslint-import-resolver-typescript')]: {
|
||||
alwaysTryTypes: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
},
|
||||
}
|
||||
33
frontend/.ignored_node_modules/eslint-config-next/package.json
generated
Normal file
33
frontend/.ignored_node_modules/eslint-config-next/package.json
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "eslint-config-next",
|
||||
"version": "14.2.33",
|
||||
"description": "ESLint configuration used by Next.js.",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"url": "vercel/next.js",
|
||||
"directory": "packages/eslint-config-next"
|
||||
},
|
||||
"homepage": "https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-config",
|
||||
"dependencies": {
|
||||
"@next/eslint-plugin-next": "14.2.33",
|
||||
"@rushstack/eslint-patch": "^1.3.3",
|
||||
"@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",
|
||||
"@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",
|
||||
"eslint-import-resolver-node": "^0.3.6",
|
||||
"eslint-import-resolver-typescript": "^3.5.2",
|
||||
"eslint-plugin-import": "^2.28.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.7.1",
|
||||
"eslint-plugin-react": "^7.33.2",
|
||||
"eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^7.23.0 || ^8.0.0",
|
||||
"typescript": ">=3.3.1"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"typescript": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
}
|
||||
9
frontend/.ignored_node_modules/eslint-config-next/parser.js
generated
Normal file
9
frontend/.ignored_node_modules/eslint-config-next/parser.js
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
const {
|
||||
parse,
|
||||
parseForESLint,
|
||||
} = require('next/dist/compiled/babel/eslint-parser')
|
||||
|
||||
module.exports = {
|
||||
parse,
|
||||
parseForESLint,
|
||||
}
|
||||
3
frontend/.ignored_node_modules/eslint-config-next/typescript.js
generated
Normal file
3
frontend/.ignored_node_modules/eslint-config-next/typescript.js
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
extends: ['plugin:@typescript-eslint/recommended'],
|
||||
}
|
||||
Reference in New Issue
Block a user