Skip to content

Commit

Permalink
feat: publish a config
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jun 9, 2022
1 parent 98a7270 commit d2b7a12
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ import { extractMessage } from './rules/extractMessage';
import { flagCrossReferences } from './rules/flagCrossReferences';

module.exports = {
configs: {
recommended: {
plugins: ['@salesforce/eslint-plugin-sf-plugin'],
env: ['node'],
rules: {
'@salesforce/eslint-plugin-sf-plugin/no-duplicate-short-characters': 'error',
'@salesforce/eslint-plugin-sf-plugin/flag-case': 'error',
'@salesforce/eslint-plugin-sf-plugin/no-hardcoded-messages': 'warn',
'@salesforce/eslint-plugin-sf-plugin/flag-cross-references': 'error',
},
},
},
rules: {
'no-duplicate-short-characters': {
create: noDuplicateShortCharacters,
Expand Down

0 comments on commit d2b7a12

Please sign in to comment.