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
  • Loading branch information
aladdin-add authored and mysticatea committed Dec 8, 2018
1 parent 932836b commit 153ab03
Show file tree
Hide file tree
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
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-deprecated-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-extraneous-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-extraneous-require.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-hide-core-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-missing-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-missing-require.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unpublished-bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unpublished-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unpublished-require.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unsupported-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unsupported-features/es-builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unsupported-features/es-syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unsupported-features/node-builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-global/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-global/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-global/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-global/text-decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-global/text-encoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-global/url-search-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-global/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/process-exit-as-throw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions lib/rules/shebang.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down

0 comments on commit 153ab03

Please sign in to comment.