Przeglądaj źródła

init framework

tags/2.0.0
Caven Chen 4 lat temu
rodzic
commit
a412550f85
8 zmienionych plików z 98 dodań i 0 usunięć
  1. 14
    0
      .babelrc
  2. 2
    0
      .browserslistrc
  3. 12
    0
      .editorconfig
  4. 4
    0
      .eslintignore
  5. 36
    0
      .eslintrc
  6. 14
    0
      .gitignore
  7. 11
    0
      .markdownlintrc
  8. 5
    0
      .prettierrc

+ 14
- 0
.babelrc Wyświetl plik

@@ -0,0 +1,14 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "ie >= 10"]
}
}
]
],
"plugins": ["@babel/plugin-transform-runtime","@babel/plugin-proposal-class-properties"]
}

+ 2
- 0
.browserslistrc Wyświetl plik

@@ -0,0 +1,2 @@
> 1%
last 2 versions

+ 12
- 0
.editorconfig Wyświetl plik

@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

+ 4
- 0
.eslintignore Wyświetl plik

@@ -0,0 +1,4 @@
/libs/
/web/
/pack/


+ 36
- 0
.eslintrc Wyświetl plik

@@ -0,0 +1,36 @@
{
"root": true,
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"plugins": ["prettier"],
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"globals": {
"__VERSION__": false,
"__TIME__": false,
"__AUTHOR__": false,
"__HOME_PAGE__": false,
"__REPOSITORY__": false,
"DC": false,
"Cesium": false,
"@dc-modules": false
},
"rules": {
"global-require": 0,
"indent": 0,
"no-new": 0,
"camelcase": 0,
"padded-blocks": 0,
"no-unused-vars": 0,
"no-trailing-spaces": 0,
"no-mixed-spaces-and-tabs": 0,
"space-before-function-paren": [0, "always"],
"no-multiple-empty-lines": 0
}
}

+ 14
- 0
.gitignore Wyświetl plik

@@ -0,0 +1,14 @@
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
web/
pack/
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
package-lock.json
.DS_Store

+ 11
- 0
.markdownlintrc Wyświetl plik

@@ -0,0 +1,11 @@
{
"default": true,
"colors": true,
"header-increment": false,
"line-length": false,
"no-trailing-punctuation": { "punctuation": ".,;:" },
"no-duplicate-header": false,
"no-inline-html": false,
"no-hard-tabs": false,
"whitespace": false
}

+ 5
- 0
.prettierrc Wyświetl plik

@@ -0,0 +1,5 @@
{
"eslintIntegration": true,
"singleQuote": true,
"semi": false
}

Ładowanie…
Anuluj
Zapisz