Skip to content

Commit

Permalink
using always instead of true/false
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor committed Jul 2, 2019
1 parent 815ca1c commit 8628f64
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rules/map-keys-quotes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $test: (Helvetica: 14px, Arial: 25px);

## Options

### `true`
### `always`

The following patterns are considered violations:

Expand Down
2 changes: 1 addition & 1 deletion src/rules/map-keys-quotes/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import rule, { ruleName, messages } from "..";

testRule(rule, {
ruleName,
config: [true],
config: ["always"],
syntax: "scss",

accept: [
Expand Down
3 changes: 2 additions & 1 deletion src/rules/map-keys-quotes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export const messages = utils.ruleMessages(ruleName, {
function rule(primary) {
return (root, result) => {
const validOptions = utils.validateOptions(result, ruleName, {
actual: primary
actual: primary,
possible: ["always"]
});

if (!validOptions) {
Expand Down

0 comments on commit 8628f64

Please sign in to comment.