Add @babel/eslint-plugin-development-internal (#11376)

* Add @babel/eslint-plugin-internal

* Add dry-error-messages rule

* Address feedback

* Enable new rule

* fix author field

* Fix errors

* Add readme

* Add example configuration

* Handle directories

* run make bootstrap

* More updates!

* Fix errors

* Update tests

* Fix CI race condition
This commit is contained in:
Kai Cataldo
2020-06-22 19:43:29 -04:00
committed by GitHub
parent beca7e2d8e
commit 75c2300c28
49 changed files with 1088 additions and 74 deletions

View File

@@ -2,6 +2,9 @@
/*:: declare var invariant; */
// Error messages are colocated with the plugin.
/* eslint-disable @babel/development-internal/dry-error-messages */
import type Parser from "../parser";
import { types as tt, type TokenType } from "../tokenizer/types";
import * as N from "../types";
@@ -473,6 +476,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
) {
const label = this.state.value;
const suggestion = exportSuggestions[label];
throw this.raise(
this.state.start,
FlowErrors.UnsupportedDeclareExportKind,

View File

@@ -1,5 +1,8 @@
// @flow
// Error messages are colocated with the plugin.
/* eslint-disable @babel/development-internal/dry-error-messages */
import * as charCodes from "charcodes";
import XHTMLEntities from "./xhtml";

View File

@@ -2,6 +2,9 @@
/*:: declare var invariant; */
// Error messages are colocated with the plugin.
/* eslint-disable @babel/development-internal/dry-error-messages */
import type { TokenType } from "../../tokenizer/types";
import type State from "../../tokenizer/state";
import { types as tt } from "../../tokenizer/types";