Commit 7f606435 authored by 俞嘉婷's avatar 俞嘉婷

Initial commit

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

# 顶部的EditorConfig文件
root = true
# unix风格的换行符,每个文件都以换行符结尾
[*]
end_of_line = lf
insert_final_newline = true
# 设置默认字符集
charset = utf-8
# 去除行尾空白字符
trim_trailing_whitespace = true
# 使用空格缩进,设置2个空格缩进
indent_style = space
indent_size = 2
# 忽略eslint校验路径,例如:
# src/libs/@spark
\ No newline at end of file
module.exports = {
parser: '@babel/eslint-parser',
env: {
browser: true,
es6: true,
node: true,
},
globals: {
CFG: true,
wx: true,
FYGE: true,
SPARK_ESLINT_PLUGIN: true,
remScale: true,
},
plugins: ['html', 'react', '@spark/best-practices', '@spark/security'],
extends: ['eslint:recommended', 'plugin:react/recommended'],
settings: {
react: {
version: 'detect',
},
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 7,
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
babelOptions: {
configFile: './node_modules/@spark/code-inspector/static/babel.config.js',
},
},
rules: {
'no-undef': 'error',
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', argsIgnorePattern: '^_', varsIgnorePattern: '^_', ignoreRestSiblings: true }],
'no-dupe-keys': 'error',
'no-fallthrough': 'error',
'no-global-assign': 'error',
'no-implied-eval': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-sequences': 'error',
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true, allowTaggedTemplates: true }],
'no-useless-escape': 'error',
'no-empty-pattern': 'error',
'no-empty-function': ['error', { allow: ['arrowFunctions', 'functions', 'methods'] }],
'no-var': 'error',
'no-dupe-class-members': 'error',
'no-unsafe-optional-chaining': 'error',
'no-const-assign': 'error',
'no-empty': ['error', { allowEmptyCatch: true }],
'prefer-const': 'warn',
'no-extra-boolean-cast': 'warn',
'no-mixed-spaces-and-tabs': 'warn',
'no-alert': 'warn',
'no-new-wrappers': 'warn',
'no-useless-concat': 'warn',
'no-useless-return': 'warn',
'prefer-promise-reject-errors': ['warn', { allowEmptyReject: true }],
'spaced-comment': 'warn',
'react/prop-types': 'off',
'react/display-name': 'off',
'react/jsx-pascal-case': 'error',
'jsx-quotes': 'warn',
// 'react/jsx-tag-spacing': 'error',
'react/require-resnder-return': 'error',
'semi': [1]
},
overrides: [
{
files: ['public/**/*.html'],
rules: {
'no-var': 'off',
'@spark/security/third-party-whitelist': 'error',
'@spark/best-practices/no-url-in-js': 'error',
'@spark/best-practices/no-arrow-function': 'error',
'@spark/best-practices/no-es6-variable-declaration': 'error',
},
},
{
files: ['src/**/*.{js,jsx}'],
rules: {
'@spark/best-practices/no-url-in-js': 'error',
},
},
],
};
.DS_Store
node_modules/
___cache/
__cache/
coverage/
npm-debug.log
selenium-debug.log
.idea
.builds
.project
.vscode
yarn-error.log
.yarn
.package-lock
yarn.lock
.cache
packages/**/package-lock.json
released
output.js
output.js.map
.psd
.psb
#src/assets/
profiles/
settings/
temp/
\ No newline at end of file
registry = http://npm.dui88.com
\ No newline at end of file
module.exports = {
semi: true, // 结尾加分号
singleQuote: false, // 使用单引号
jsxSingleQuote: false, // jsx中使用单引号
bracketSpacing: true, // 括号和参数之间有空格
jsxBracketSameLine: true, // 标签属性较多时,标签箭头>另起一行
quoteProps: 'as-needed', // 属性加引号需要加时再加
printWidth: 120, // 每行字符个数
};
registry "http://npm.dui88.com"
\ No newline at end of file
[InternetShortcut]
URL=https://docs.cocos.com/creator/manual/en/scripting/setup.html#custom-script-template
\ No newline at end of file
#///////////////////////////
# Cocos Creator 3D Project
#///////////////////////////
library/
temp/
local/
native
#//////////////////////////
# NPM
#//////////////////////////
node_modules/
#//////////////////////////
# VSCode
#//////////////////////////
#.vscode/
#//////////////////////////
# WebStorm
#//////////////////////////
#.idea/
.DS_Store
tmp.txt
build/*/*
!build/**/index.html
profiles/v2/*/*
!profiles/v2/packages/duiba-publish.json
!profiles/v2/packages/builder.json
!profiles/v2/packages/web-mobile.json
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "e20e0c55-d47d-462a-be6b-9fbbb71b55ec",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "d9ea92ad-6d21-4891-9ce3-3021e8eafef2",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true
}
}
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "a4b435de-dc7c-4f0b-b968-e01f517eb7f6",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "RulePanel"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "26ce66e8-4e84-4f92-927f-bbda01dbb159",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "26ce66e8-4e84-4f92-927f-bbda01dbb159@6c48a",
"displayName": "bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "26ce66e8-4e84-4f92-927f-bbda01dbb159",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "26ce66e8-4e84-4f92-927f-bbda01dbb159@f9941",
"displayName": "bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 625,
"height": 1114,
"rawWidth": 625,
"rawHeight": 1114,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-312.5,
-557,
0,
312.5,
-557,
0,
-312.5,
557,
0,
312.5,
557,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1114,
625,
1114,
0,
0,
625,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-312.5,
-557,
0
],
"maxPos": [
312.5,
557,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "26ce66e8-4e84-4f92-927f-bbda01dbb159@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "26ce66e8-4e84-4f92-927f-bbda01dbb159@6c48a"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "d44147a7-ec72-41ea-808d-3f05616121a9",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true
}
}
{
"ver": "1.1.50",
"importer": "scene",
"imported": true,
"uuid": "98e49aec-b762-4be4-a411-911a0eeff7e9",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "3f52d71b-d361-4bf8-9aac-a4c2fb6f816a",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "TaskItem"
}
}
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "466a3343-2167-4604-892e-78584e045f3c",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "TaskPanel"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "e316cbc9-701c-449e-9cb3-02071ed5ec8c",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "ca5b1048-f91d-42b5-8221-ebdbc2cbeb22",
"files": [],
"subMetas": {},
"userData": {}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment