brandongregoryscott / eslint-plugin-collation

ESLint plugin for making your code easier to read, with autofix and TypeScript support
https://eslint-plugin-collation.brandonscott.me
Apache License 2.0
4 stars 0 forks source link

Exclude flag #37

Closed brandongregoryscott closed 2 years ago

brandongregoryscott commented 2 years ago

Resolves #34

➜  collation git:(exclude-flag) ✗ ./dist/collation.js  --all --verbose --exclude named-exports-only
[collation] DEBUG alphabetize-enums rule-name.ts:1 Members of enum RuleName are already alphabetized.
[collation] DEBUG alphabetize-interfaces cli-options.ts:3 Properties of interface CliOptions are already sorted.
[collation] DEBUG alphabetize-interfaces rule-result.ts:5 Properties of interface RuleResult are already sorted.
[collation] DEBUG alphabetize-interfaces context.ts:6 Properties of interface ContextOptions are already sorted.
[collation] DEBUG alphabetize-interfaces matchers.ts:5 Properties of interface MatcherResult are already sorted.
[collation] DEBUG alphabetize-interfaces node-comment-group.ts:4 Properties of interface NodeCommentGroup are already sorted.
[collation] DEBUG alphabetize-interfaces get-alphabetical-messages.ts:3 Properties of interface GetHintOptions are already sorted.
[collation] DEBUG alphabetize-interfaces string-utils.ts:5 Properties of interface PartialRuleViolation are already sorted.
[collation] DEBUG alphabetize-interfaces main.ts:6 Properties of interface InternalCodegenCliOptions are already sorted.
➜  collation git:(exclude-flag) ✗ ./dist/collation.js  --all --verbose --exclude named-exports-only alphabetize-interfaces
[collation] DEBUG alphabetize-enums rule-name.ts:1 Members of enum RuleName are already alphabetized.
➜  collation git:(exclude-flag) ✗ ./dist/collation.js  --all --verbose --exclude named-exports-only
[collation] DEBUG alphabetize-enums rule-name.ts:1 Members of enum RuleName are already alphabetized.
[collation] DEBUG alphabetize-interfaces cli-options.ts:3 Properties of interface CliOptions are already sorted.
[collation] DEBUG alphabetize-interfaces rule-result.ts:5 Properties of interface RuleResult are already sorted.
[collation] DEBUG alphabetize-interfaces context.ts:6 Properties of interface ContextOptions are already sorted.
[collation] DEBUG alphabetize-interfaces matchers.ts:5 Properties of interface MatcherResult are already sorted.
[collation] DEBUG alphabetize-interfaces node-comment-group.ts:4 Properties of interface NodeCommentGroup are already sorted.
[collation] DEBUG alphabetize-interfaces get-alphabetical-messages.ts:3 Properties of interface GetHintOptions are already sorted.
[collation] DEBUG alphabetize-interfaces string-utils.ts:5 Properties of interface PartialRuleViolation are already sorted.
[collation] DEBUG alphabetize-interfaces main.ts:6 Properties of interface InternalCodegenCliOptions are already sorted.
➜  collation git:(exclude-flag) ✗ ./dist/collation.js  --all --verbose --exclude named-exports-only alphabetize-interfaces
[collation] DEBUG alphabetize-enums rule-name.ts:1 Members of enum RuleName are already alphabetized.
➜  collation git:(exclude-flag) ./dist/collation.js  --all --verbose --exclude named-exports-only alphabetize-interface 
[collation] ERROR Invalid rule name(s) specified: [ 'alphabetize-interface' ]
[collation] Valid rule names are: [
  'alphabetize-dependency-lists',
  'alphabetize-enums',
  'alphabetize-interfaces',
  'alphabetize-jsx-props',
  'named-exports-only'
]