0.0.5 • Published 10 months ago

eslint-plugin-formatjs-restrict-characters v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Simple eslint plugin with only one rule (no-disallowed-chars) that restricts the use of the provided characters everywhere except when those characters are used as <FormattedMessage defaultMessage="...your text"/> or formatMessage({defaultMessage: "...your text"}).",

Example below will exclude all latin chars from your code except default messages:

module.exports  = {
	//...your eslint settings
	plugins: ["formatjs-restrict-characters"],
	rules: {
		"formatjs-restrict-characters/no-disallowed-chars": ["error", "a-zA-Z"],
	},
};
0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago