Skip to content

Commit

Permalink
Minor code style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 13, 2018
1 parent c1f34a6 commit a489039
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ module.exports = {
],
rules: {
'ava/assertion-arguments': 'error',
'ava/max-asserts': ['off', 5],
'ava/max-asserts': [
'off',
5
],
'ava/no-async-fn-without-await': 'error',
'ava/no-cb-test': 'off',
'ava/no-duplicate-modifiers': 'error',
Expand All @@ -37,7 +40,10 @@ module.exports = {
'ava/prefer-async-await': 'error',
'ava/prefer-power-assert': 'off',
'ava/test-ended': 'error',
'ava/test-title': ['error', 'if-multiple'],
'ava/test-title': [
'error',
'if-multiple'
],
'ava/use-t-well': 'error',
'ava/use-t': 'error',
'ava/use-test': 'error',
Expand Down
10 changes: 8 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ Configure it in `package.json`.
],
"rules": {
"ava/assertion-arguments": "error",
"ava/max-asserts": ["off", 5],
"ava/max-asserts": [
"off",
5
],
"ava/no-async-fn-without-await": "error",
"ava/no-cb-test": "off",
"ava/no-duplicate-modifiers": "error",
Expand All @@ -53,7 +56,10 @@ Configure it in `package.json`.
"ava/prefer-async-await": "error",
"ava/prefer-power-assert": "off",
"ava/test-ended": "error",
"ava/test-title": ["error", "if-multiple"],
"ava/test-title": [
"error",
"if-multiple"
],
"ava/use-t-well": "error",
"ava/use-t": "error",
"ava/use-test": "error",
Expand Down
2 changes: 1 addition & 1 deletion test/no-async-fn-without-await.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const header = 'const test = require(\'ava\');\n';
const ruleTesterOptions = [
{
parserOptions: {
ecmaVersion: 2018
ecmaVersion: 2019
}
}
// Disabled for now because of `eslint-ava-rule-tester` problem
Expand Down
2 changes: 1 addition & 1 deletion test/prefer-power-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ruleTester = avaRuleTester(test, {
es6: true
},
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: 2019,
sourceType: 'module'
}
});
Expand Down

0 comments on commit a489039

Please sign in to comment.