Skip to content

Commit

Permalink
Chore: support the new rule meta.type property (fixes #143) (#145)
Browse files Browse the repository at this point in the history
aladdin-add authored and mysticatea committed Dec 8, 2018

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 932836b commit 153ab03
Showing 23 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/rules/exports-style.js
Original file line number Diff line number Diff line change
@@ -148,6 +148,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/exports-style.md",
},
type: "suggestion",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-deprecated-api.js
Original file line number Diff line number Diff line change
@@ -465,6 +465,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-deprecated-api.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-extraneous-import.js
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-extraneous-import.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-extraneous-require.js
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-extraneous-require.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-hide-core-modules.js
Original file line number Diff line number Diff line change
@@ -57,6 +57,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-hide-core-modules.md",
},
type: "problem",
deprecated: true,
fixable: null,
schema: [
1 change: 1 addition & 0 deletions lib/rules/no-missing-import.js
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-missing-import.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-missing-require.js
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-missing-require.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-unpublished-bin.js
Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-unpublished-bin.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-unpublished-import.js
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-unpublished-import.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-unpublished-require.js
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-unpublished-require.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-unsupported-features.js
Original file line number Diff line number Diff line change
@@ -1053,6 +1053,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-unsupported-features.md",
},
type: "problem",
deprecated: true,
fixable: null,
schema: [
1 change: 1 addition & 0 deletions lib/rules/no-unsupported-features/es-builtins.js
Original file line number Diff line number Diff line change
@@ -130,6 +130,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-unsupported-features/es-builtins.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-unsupported-features/es-syntax.js
Original file line number Diff line number Diff line change
@@ -506,6 +506,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-unsupported-features/es-syntax.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/no-unsupported-features/node-builtins.js
Original file line number Diff line number Diff line change
@@ -236,6 +236,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/no-unsupported-features/node-builtins.md",
},
type: "problem",
fixable: null,
schema: [
{
1 change: 1 addition & 0 deletions lib/rules/prefer-global/buffer.js
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/prefer-global/buffer.md",
},
type: "suggestion",
fixable: null,
schema: [{ enum: ["always", "never"] }],
messages: {
1 change: 1 addition & 0 deletions lib/rules/prefer-global/console.js
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/prefer-global/console.md",
},
type: "suggestion",
fixable: null,
schema: [{ enum: ["always", "never"] }],
messages: {
1 change: 1 addition & 0 deletions lib/rules/prefer-global/process.js
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/prefer-global/process.md",
},
type: "suggestion",
fixable: null,
schema: [{ enum: ["always", "never"] }],
messages: {
1 change: 1 addition & 0 deletions lib/rules/prefer-global/text-decoder.js
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/prefer-global/text-decoder.md",
},
type: "suggestion",
fixable: null,
schema: [{ enum: ["always", "never"] }],
messages: {
1 change: 1 addition & 0 deletions lib/rules/prefer-global/text-encoder.js
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/prefer-global/text-encoder.md",
},
type: "suggestion",
fixable: null,
schema: [{ enum: ["always", "never"] }],
messages: {
1 change: 1 addition & 0 deletions lib/rules/prefer-global/url-search-params.js
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/prefer-global/url-search-params.md",
},
type: "suggestion",
fixable: null,
schema: [{ enum: ["always", "never"] }],
messages: {
1 change: 1 addition & 0 deletions lib/rules/prefer-global/url.js
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/prefer-global/url.md",
},
type: "suggestion",
fixable: null,
schema: [{ enum: ["always", "never"] }],
messages: {
1 change: 1 addition & 0 deletions lib/rules/process-exit-as-throw.js
Original file line number Diff line number Diff line change
@@ -146,6 +146,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/process-exit-as-throw.md",
},
type: "problem",
fixable: null,
schema: [],
supported: CodePathAnalyzer != null,
1 change: 1 addition & 0 deletions lib/rules/shebang.js
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ module.exports = {
url:
"https://github.com/mysticatea/eslint-plugin-node/blob/v8.0.0/docs/rules/shebang.md",
},
type: "problem",
fixable: "code",
schema: [
{

0 comments on commit 153ab03

Please sign in to comment.