* Lint eslint/* * Run "make fix-js" * Fix remaining problems * Remove linting from subpackages * Remove husky * Add back eslint dep
47 lines
945 B
JavaScript
47 lines
945 B
JavaScript
"use strict";
|
|
|
|
let isWarnedForDeprecation = false;
|
|
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;
|
|
}
|
|
|
|
console.log(
|
|
"The babel/array-bracket-spacing rule is deprecated. Please " +
|
|
"use the built in array-bracket-spacing rule instead."
|
|
);
|
|
isWarnedForDeprecation = true;
|
|
},
|
|
};
|
|
},
|
|
};
|