Skip to content

Commit

Permalink
Add eslint-plugin-ava
Browse files Browse the repository at this point in the history
  • Loading branch information
bdukes committed Nov 13, 2023
1 parent ce449c3 commit 9fe60e1
Show file tree
Hide file tree
Showing 6 changed files with 2,038 additions and 90 deletions.
10 changes: 2 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/*eslint-env node*/
/*eslint no-console:0*/
'use strict';

module.exports = {
extends: 'eslint:recommended',
extends: ['eslint:recommended', 'plugin:ava/recommended'],
rules: {
'valid-jsdoc': ['warn', { requireReturn: false }],
'accessor-pairs': 'warn',
Expand Down Expand Up @@ -80,11 +78,7 @@ module.exports = {
},
env: {
node: true,
es6: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
root: true,
};

1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
{ "run": "npm ci" },
{ "run": "npm run build --if-present" },
{ "run": "npm run lint" },
{ "run": "npm test" }
]
}
Expand Down
Loading

0 comments on commit 9fe60e1

Please sign in to comment.