eslint-plugin-babel
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "eslint-plugin-babel", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "an eslint rule plugin companion to babel-eslint", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
"use strict"; | ||
var isWarnedForDeprecation = false; | ||
module.exports = function() { | ||
return { | ||
Program() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
module.exports = { | ||
meta: { | ||
deprecated: true, | ||
schema: [ | ||
{ | ||
"enum": ["always", "never"] | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"singleValue": { | ||
"type": "boolean" | ||
}, | ||
"objectsInArrays": { | ||
"type": "boolean" | ||
}, | ||
"arraysInArrays": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
] | ||
}, | ||
create: function() { | ||
return { | ||
Program: function() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
} | ||
/* eslint-disable no-console */ | ||
console.log('The babel/array-bracket-spacing rule is deprecated. Please ' + | ||
'use the built in array-bracket-spacing rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
}; | ||
module.exports.schema = [ | ||
{ | ||
"enum": ["always", "never"] | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"singleValue": { | ||
"type": "boolean" | ||
}, | ||
"objectsInArrays": { | ||
"type": "boolean" | ||
}, | ||
"arraysInArrays": { | ||
"type": "boolean" | ||
/* eslint-disable no-console */ | ||
console.log('The babel/array-bracket-spacing rule is deprecated. Please ' + | ||
'use the built in array-bracket-spacing rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}, | ||
"additionalProperties": false | ||
}; | ||
} | ||
]; | ||
}; |
"use strict"; | ||
var isWarnedForDeprecation = false; | ||
module.exports = function() { | ||
return { | ||
Program() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
module.exports = { | ||
meta: { | ||
deprecated: true, | ||
schema: [ | ||
{ | ||
"enum": ["always", "as-needed"] | ||
} | ||
] | ||
}, | ||
create: function() { | ||
return { | ||
Program: function() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
} | ||
/* eslint-disable no-console */ | ||
console.log('The babel/arrow-parens rule is deprecated. Please ' + | ||
'use the built in arrow-parens rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
/* eslint-disable no-console */ | ||
console.log('The babel/arrow-parens rule is deprecated. Please ' + | ||
'use the built in arrow-parens rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
} | ||
}; | ||
module.exports.schema = [ | ||
{ | ||
"enum": ["always", "as-needed"] | ||
} | ||
]; |
"use strict"; | ||
var isWarnedForDeprecation = false; | ||
module.exports = function() { | ||
return { | ||
Program() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
module.exports = { | ||
meta: { | ||
deprecated: true, | ||
schema: [ | ||
{ | ||
"enum": ["semicolon", "comma"], | ||
} | ||
] | ||
}, | ||
create: function() { | ||
return { | ||
Program: function() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
} | ||
/* eslint-disable no-console */ | ||
console.log('The babel/flow-object-type rule is deprecated. Please ' + | ||
'use the flowtype/object-type-delimiter rule instead.\n' + | ||
'Check out https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-object-type-delimiter'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
/* eslint-disable no-console */ | ||
console.log('The babel/flow-object-type rule is deprecated. Please ' + | ||
'use the flowtype/object-type-delimiter rule instead.\n' + | ||
'Check out https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-object-type-delimiter'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
} | ||
}; | ||
module.exports.schema = [ | ||
{ | ||
'enum': ['semicolon', 'comma'], | ||
} | ||
]; |
'use strict'; | ||
var isWarnedForDeprecation = false; | ||
module.exports = function() { | ||
return { | ||
Program() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
module.exports = { | ||
meta: { | ||
deprecated: true, | ||
schema: [ | ||
{ | ||
"enum": ["always", "always-multiline", "only-multiline", "never"] | ||
} | ||
] | ||
}, | ||
create: function() { | ||
return { | ||
Program: function() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
} | ||
/* eslint-disable no-console */ | ||
console.log('The babel/func-params-comma-dangle rule is deprecated. Please ' + | ||
'use the built in comma-dangle rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
/* eslint-disable no-console */ | ||
console.log('The babel/func-params-comma-dangle rule is deprecated. Please ' + | ||
'use the built in comma-dangle rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
} | ||
}; | ||
module.exports.schema = [ | ||
{ | ||
enum: ['always', 'always-multiline', 'only-multiline', 'never'] | ||
} | ||
]; |
"use strict"; | ||
var isWarnedForDeprecation = false; | ||
module.exports = function() { | ||
return { | ||
Program() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
module.exports = { | ||
meta: { | ||
deprecated: true, | ||
schema: [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"enum": ["before", "after", "both", "neither"] | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"before": {"type": "boolean"}, | ||
"after": {"type": "boolean"} | ||
}, | ||
"additionalProperties": false | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
create: function() { | ||
return { | ||
Program: function() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
} | ||
/* eslint-disable no-console */ | ||
console.log('The babel/generator-star-spacing rule is deprecated. Please ' + | ||
'use the built in generator-star-spacing rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
}; | ||
module.exports.schema = [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"enum": ["before", "after", "both", "neither"] | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"before": {"type": "boolean"}, | ||
"after": {"type": "boolean"} | ||
}, | ||
"additionalProperties": false | ||
/* eslint-disable no-console */ | ||
console.log('The babel/generator-star-spacing rule is deprecated. Please ' + | ||
'use the built in generator-star-spacing rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
] | ||
}; | ||
} | ||
]; | ||
}; |
"use strict"; | ||
var isWarnedForDeprecation = false; | ||
module.exports = function() { | ||
return { | ||
Program() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
module.exports = { | ||
meta: { | ||
deprecated: true, | ||
schema: [ | ||
{ | ||
"enum": ["always", "methods", "properties", "never"] | ||
} | ||
] | ||
}, | ||
create: function() { | ||
return { | ||
Program: function() { | ||
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { | ||
return; | ||
} | ||
/* eslint-disable no-console */ | ||
console.log('The babel/object-shorthand rule is deprecated. Please ' + | ||
'use the built in object-shorthand rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
/* eslint-disable no-console */ | ||
console.log('The babel/object-shorthand rule is deprecated. Please ' + | ||
'use the built in object-shorthand rule instead.'); | ||
/* eslint-enable no-console */ | ||
isWarnedForDeprecation = true; | ||
} | ||
}; | ||
} | ||
}; | ||
module.exports.schema = [ | ||
{ | ||
'enum': ['always', 'methods', 'properties', 'never'] | ||
} | ||
]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
121445
3093
0