Skip to content

Commit

Permalink
Add function-no-unknown rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 15, 2022
1 parent 387c513 commit 412add3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = {
'font-family-no-missing-generic-family-keyword': true,
'function-calc-no-unspaced-operator': true,
'function-linear-gradient-no-nonstandard-direction': true,
'function-no-unknown': true,
'string-no-newline': true,
'unit-no-unknown': true,
'shorthand-property-no-redundant-values': true,
Expand Down
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import stylelint from 'stylelint';
import config from '..';
const test = require('ava');
const stylelint = require('stylelint');
const config = require('..');

const hasRule = (errors, ruleId) => errors.some(x => x.rule === ruleId);

Expand Down

0 comments on commit 412add3

Please sign in to comment.