Browse Source

refactor: remove umi app_root/*. files

master
i5ting 4 years ago
parent
commit
3425d31497
  1. 0
      .editorconfig
  2. 20
      .gitignore
  3. 9
      .prettierignore
  4. 11
      .prettierrc
  5. 20
      example/.gitignore
  6. 8
      example/.prettierignore
  7. 11
      example/.prettierrc
  8. 24
      example/package.json

0
example/.editorconfig → .editorconfig

20
.gitignore

@ -2,12 +2,28 @@
.vscode
.eslintcache
.size-snapshot.json
npm-debug.log
yarn-error.log
npm-debug.log*
yarn-error.log*
lerna-debug.log
node_modules
coverage
lib
es
# production
dist
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
yarn.lock
package-lock.json
# misc
.DS_Store
# umi
example/node_modules
example/src/.umi
example/src/.umi-production
example/src/.umi-test
example/.env.local

9
.prettierignore

@ -2,3 +2,12 @@
package.json
package-lock.json
public
**/*.md
**/*.svg
**/*.ejs
**/*.html
example/.umi
example/.umi-production
example/.umi-test

11
.prettierrc

@ -4,5 +4,14 @@
"singleQuote": true,
"tabWidth": 2,
"printWidth": 100,
"trailingComma": "es5"
"trailingComma": "es5",
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}

20
example/.gitignore

@ -1,20 +0,0 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/npm-debug.log*
/yarn-error.log
/yarn.lock
/package-lock.json
# production
/dist
# misc
.DS_Store
# umi
/src/.umi
/src/.umi-production
/src/.umi-test
/.env.local

8
example/.prettierignore

@ -1,8 +0,0 @@
**/*.md
**/*.svg
**/*.ejs
**/*.html
package.json
.umi
.umi-production
.umi-test

11
example/.prettierrc

@ -1,11 +0,0 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}

24
example/package.json

@ -1,24 +0,0 @@
{
"private": true,
"name": "example",
"scripts": {
"start": "umi dev",
"build": "umi build",
"postinstall": "umi generate tmp",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"test": "umi-test",
"test:coverage": "umi-test --coverage"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"prettier --parser=typescript --write"
]
},
"dependencies": {}
}
Loading…
Cancel
Save