Permalink
Browse files

Remove useless function based on .strapirc

  • Loading branch information...
2 parents dbd17a7 + 75aa047 commit 64ce44495e82f454d0e1f74c58af7ef8d740302e @Aurelsicoko Aurelsicoko committed Jan 9, 2017
Showing with 1,297 additions and 801 deletions.
  1. +4 −0 .eslintignore
  2. +31 −0 .eslintrc
  3. +1 −1 LICENSE.md
  4. +1 −1 Makefile
  5. +2 −2 README.md
  6. +1 −1 lerna.json
  7. +10 −42 package.json
  8. +1 −1 packages/strapi-bookshelf/LICENSE.md
  9. +141 −139 packages/strapi-bookshelf/lib/index.js
  10. +1 −1 packages/strapi-bookshelf/lib/utils/graphql.js
  11. +3 −3 packages/strapi-bookshelf/package.json
  12. +16 −0 packages/strapi-ejs/.editorconfig
  13. +94 −0 packages/strapi-ejs/.gitignore
  14. +101 −0 packages/strapi-ejs/.npmignore
  15. +7 −0 packages/strapi-ejs/LICENSE.md
  16. +38 −0 packages/strapi-ejs/README.md
  17. +47 −0 packages/strapi-ejs/lib/index.js
  18. +49 −0 packages/strapi-ejs/package.json
  19. +1 −1 packages/strapi-generate-admin/LICENSE.md
  20. +6 −2 packages/strapi-generate-admin/files/admin/controllers/Admin.js
  21. +2 −2 packages/strapi-generate-admin/package.json
  22. +1 −1 packages/strapi-generate-api/LICENSE.md
  23. +71 −39 packages/strapi-generate-api/json/routes.json.js
  24. +5 −1 packages/strapi-generate-api/lib/before.js
  25. +2 −2 packages/strapi-generate-api/package.json
  26. +16 −16 packages/strapi-generate-api/templates/bookshelf/controller.template
  27. +2 −2 packages/strapi-generate-api/templates/bookshelf/model.settings.template
  28. +35 −35 packages/strapi-generate-api/templates/bookshelf/service.template
  29. +55 −10 packages/strapi-generate-api/templates/mongoose/controller.template
  30. +1 −1 packages/strapi-generate-api/templates/mongoose/model.settings.template
  31. +16 −16 packages/strapi-generate-api/templates/mongoose/service.template
  32. +1 −1 packages/strapi-generate-controller/LICENSE.md
  33. +1 −1 packages/strapi-generate-controller/package.json
  34. +1 −1 packages/strapi-generate-migrations/LICENSE.md
  35. +3 −3 packages/strapi-generate-migrations/package.json
  36. +1 −1 packages/strapi-generate-model/LICENSE.md
  37. +1 −1 packages/strapi-generate-model/package.json
  38. +1 −1 packages/strapi-generate-new/LICENSE.md
  39. +1 −0 packages/strapi-generate-new/files/.eslintignore
  40. +27 −0 packages/strapi-generate-new/files/.eslintrc
  41. +8 −9 packages/strapi-generate-new/files/config/environments/development/databases.json
  42. +8 −15 packages/strapi-generate-new/files/config/environments/production/databases.json
  43. +8 −9 packages/strapi-generate-new/files/config/environments/test/databases.json
  44. +1 −1 packages/strapi-generate-new/files/config/general.json
  45. +2 −9 packages/strapi-generate-new/files/public/index.html
  46. +9 −9 packages/strapi-generate-new/json/package.json.js
  47. +24 −11 packages/strapi-generate-new/lib/after.js
  48. +2 −0 packages/strapi-generate-new/lib/before.js
  49. +4 −3 packages/strapi-generate-new/package.json
  50. +1 −1 packages/strapi-generate-policy/LICENSE.md
  51. +1 −1 packages/strapi-generate-policy/package.json
  52. +1 −1 packages/strapi-generate-service/LICENSE.md
  53. +1 −1 packages/strapi-generate-service/package.json
  54. +2 −2 packages/strapi-generate/LICENSE.md
  55. +1 −2 packages/strapi-generate/lib/index.js
  56. +3 −3 packages/strapi-generate/package.json
  57. +1 −1 packages/strapi-knex/LICENSE.md
  58. +29 −26 packages/strapi-knex/lib/index.js
  59. +1 −1 packages/strapi-knex/package.json
  60. +1 −1 packages/strapi-mongoose/LICENSE.md
  61. +198 −180 packages/strapi-mongoose/lib/index.js
  62. +0 −3 packages/strapi-mongoose/lib/utils/index.js
  63. +3 −3 packages/strapi-mongoose/package.json
  64. +2 −2 packages/strapi-utils/LICENSE.md
  65. +0 −2 packages/strapi-utils/lib/models.js
  66. +3 −3 packages/strapi-utils/package.json
  67. +1 −3 packages/strapi/LICENSE.md
  68. +0 −3 packages/strapi/bin/strapi-console.js
  69. +2 −0 packages/strapi/bin/strapi-start.js
  70. +1 −20 packages/strapi/bin/strapi.js
  71. +0 −1 packages/strapi/lib/Strapi.js
  72. +32 −3 packages/strapi/lib/configuration/hooks/core/responses/policy.js
  73. +0 −19 packages/strapi/lib/configuration/hooks/core/responses/responses/badRequest.js
  74. +0 −19 packages/strapi/lib/configuration/hooks/core/responses/responses/forbidden.js
  75. +1 −5 packages/strapi/lib/configuration/hooks/core/responses/responses/index.js
  76. +0 −19 packages/strapi/lib/configuration/hooks/core/responses/responses/notFound.js
  77. +1 −1 packages/strapi/lib/configuration/hooks/core/responses/responses/{ok.js → send.js}
  78. +0 −19 packages/strapi/lib/configuration/hooks/core/responses/responses/serverError.js
  79. +5 −21 packages/strapi/lib/configuration/hooks/core/router/index.js
  80. +103 −10 packages/strapi/lib/configuration/hooks/core/session/index.js
  81. +5 −5 packages/strapi/lib/configuration/hooks/dictionary/_config/index.js
  82. +0 −1 packages/strapi/lib/configuration/hooks/index.js
  83. +8 −4 packages/strapi/lib/load.js
  84. +0 −3 packages/strapi/lib/private/initialize.js
  85. +12 −5 packages/strapi/lib/private/loadHooks.js
  86. +12 −11 packages/strapi/package.json
  87. +2 −2 packages/strapi/test/middlewares.js
View
@@ -0,0 +1,4 @@
+packages/strapi-generate-new/files/public/**
+packages/strapi-generate-admin/files/admin/public/**
+website/
+**/node_modules/**
View
@@ -0,0 +1,31 @@
+{
+ "parser": "babel-eslint",
+ "extends": "eslint:recommended",
+ "plugins": [
+ "react",
+ "jsx-a11y"
+ ],
+ "env": {
+ "commonjs": true,
+ "es6": true,
+ "node": true,
+ "mocha": true
+ },
+ "parserOptions": {
+ "ecmaFeatures": {
+ "experimentalObjectRestSpread": true,
+ "jsx": true
+ },
+ "sourceType": "module"
+ },
+ "globals": {
+ "strapi": true
+ },
+ "rules": {
+ "indent": ["error", 2, { "SwitchCase": 1 }],
+ "linebreak-style": ["error", "unix"],
+ "no-console": 0,
+ "quotes": ["error", "single"],
+ "semi": ["error", "always"]
+ }
+}
View
@@ -1,4 +1,4 @@
-Copyright (c) 2015-2016 Strapi.
+Copyright (c) 2015-2017 Strapi Solutions.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
View
@@ -5,7 +5,7 @@ export NODE_ENV = test
.PHONY: test
lint:
- ./node_modules/.bin/xo
+ ./node_modules/.bin/eslint **/*.js
test: lint
./scripts/test.sh
View
@@ -44,7 +44,7 @@ Thanks to the plugins, you will be able to create the perfect app without useles
### Community support
-For general help using Strapi, please refer to [the official Strapi documentation](./docs/). For additional help, you can use one of this channel to ask question:
+For general help using Strapi, please refer to [the official Strapi documentation](http://strapi.io). For additional help, you can use one of this channel to ask question:
- [StackOverflow](http://stackoverflow.com/questions/tagged/strapi)
- [Slack](http://slack.strapi.io) (highly recommended for realtime support)
@@ -58,4 +58,4 @@ For general help using Strapi, please refer to [the official Strapi documentatio
## License
-[MIT License](LICENSE.md) Copyright (c) 2015-2016 [Strapi](http://strapi.io/).
+[MIT License](LICENSE.md) Copyright (c) 2015-2017 [Strapi Solutions](http://strapi.io/).
View
@@ -1,4 +1,4 @@
{
"lerna": "2.0.0-beta.30",
- "version": "3.0.0-alpha.1"
+ "version": "3.0.0-alpha.2"
}
View
@@ -3,63 +3,31 @@
"version": "3.0.0-alpha.1",
"devDependencies": {
"assert": "~1.3.0",
+ "babel-eslint": "^6.1.2",
"coveralls": "~2.11.9",
+ "eslint": "^3.12.2",
+ "eslint-config-airbnb": "^13.0.0",
+ "eslint-plugin-import": "^2.2.0",
+ "eslint-plugin-jsx-a11y": "^3.0.2",
+ "eslint-plugin-react": "^6.8.0",
"istanbul": "~0.4.2",
+ "lerna": "2.0.0-beta.30",
"mocha": "~2.4.5",
"mocha-lcov-reporter": "~1.2.0",
- "pre-commit": "~1.1.2",
- "xo": "~0.13.0",
- "lerna": "2.0.0-beta.30"
- },
- "xo": {
- "space": true,
- "esnext": true,
- "envs": [
- "mocha",
- "node"
- ],
- "globals": [
- "strapi"
- ],
- "ignore": [
- "packages/strapi-generate-new/files/public/**",
- "packages/strapi-generate-admin/files/admin/public/**",
- "website/**"
- ],
- "rules": {
- "array-callback-return": 0,
- "brace-style": 0,
- "camelcase": 0,
- "default-case": 0,
- "dot-notation": 0,
- "no-case-declarations": 0,
- "no-else-return": 0,
- "no-eval": 0,
- "no-implicit-coercion": 0,
- "no-lonely-if": 0,
- "no-negated-condition": 0,
- "no-throw-literal": 0,
- "no-unused-expressions": 0,
- "no-unused-vars": 0,
- "padded-blocks": 0,
- "prefer-template": 0,
- "quote-props": 0,
- "space-infix-ops": 0,
- "strict": 0
- }
+ "pre-commit": "~1.1.2"
},
"scripts": {
"test": "make test",
"setup": "make setup"
},
"author": {
"email": "hi@strapi.io",
- "name": "Strapi team",
+ "name": "Strapi Solutions",
"url": "http://strapi.io"
},
"maintainers": [
{
- "name": "Strapi team",
+ "name": "Strapi Solutions",
"email": "hi@strapi.io",
"url": "http://strapi.io"
}
@@ -1,4 +1,4 @@
-Copyright (c) 2015-2016 Strapi.
+Copyright (c) 2015-2017 Strapi Solutions.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Oops, something went wrong.

0 comments on commit 64ce444

Please sign in to comment.