mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
Various post-repo-split cleanup (#6910)
no issue - remove bower from dependencies, greenkeeper ignores & .editorconfig - remove old custom jscs rule for ember
This commit is contained in:
parent
f3a7dc2f99
commit
71282a241e
@ -13,7 +13,7 @@ trim_trailing_whitespace = true
|
|||||||
[*.hbs]
|
[*.hbs]
|
||||||
insert_final_newline = false
|
insert_final_newline = false
|
||||||
|
|
||||||
[{package,bower}.json]
|
[{package}.json]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
|
1
.jscsrc
1
.jscsrc
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"additionalRules": [ "core/test/utils/jscs-rules/*.js" ],
|
|
||||||
"requireCurlyBraces": [
|
"requireCurlyBraces": [
|
||||||
"if",
|
"if",
|
||||||
"else",
|
"else",
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
var assert = require('assert');
|
|
||||||
|
|
||||||
module.exports = function () {};
|
|
||||||
|
|
||||||
module.exports.prototype = {
|
|
||||||
configure: function (disallowObjectController) {
|
|
||||||
assert(
|
|
||||||
typeof disallowObjectController === 'boolean',
|
|
||||||
'disallowObjectController option requires boolean value'
|
|
||||||
);
|
|
||||||
assert(
|
|
||||||
disallowObjectController === true,
|
|
||||||
'disallowObjectController option requires true value or should be removed'
|
|
||||||
);
|
|
||||||
},
|
|
||||||
|
|
||||||
getOptionName: function () {
|
|
||||||
return 'disallowObjectController';
|
|
||||||
},
|
|
||||||
|
|
||||||
check: function (file, errors) {
|
|
||||||
var lines = file.getLines();
|
|
||||||
|
|
||||||
lines.forEach(function (line, index) {
|
|
||||||
var location = line.indexOf('ObjectController.extend');
|
|
||||||
|
|
||||||
if (location !== -1) {
|
|
||||||
errors.add('Ember.ObjectController is deprecated, please use Ember.Controller and access model properties directly.', index + 1, location + 1);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
@ -76,7 +76,6 @@
|
|||||||
"pg": "4.1.1"
|
"pg": "4.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bower": "1.4.1",
|
|
||||||
"csscomb": "3.1.8",
|
"csscomb": "3.1.8",
|
||||||
"grunt": "1.0.1",
|
"grunt": "1.0.1",
|
||||||
"grunt-bg-shell": "2.3.3",
|
"grunt-bg-shell": "2.3.3",
|
||||||
@ -109,7 +108,6 @@
|
|||||||
},
|
},
|
||||||
"greenkeeper": {
|
"greenkeeper": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"bower",
|
|
||||||
"glob",
|
"glob",
|
||||||
"mysql",
|
"mysql",
|
||||||
"nodemailer",
|
"nodemailer",
|
||||||
|
Loading…
Reference in New Issue
Block a user