-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to a modern testing infrastructure
Use Jest as test framework, and restructured ESLint config files so it applies to each directory separately.
- Loading branch information
1 parent
c2a1bcf
commit 5e3400b
Showing
18 changed files
with
614 additions
and
704 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': false, | ||
'es6': true, | ||
'node': true | ||
}, | ||
'extends': [ | ||
'eslint:recommended', | ||
'plugin:node/recommended', | ||
'standard' | ||
], | ||
'plugins': [ | ||
'node' | ||
], | ||
'rules': { | ||
// Override some of standard js rules | ||
'semi': [ 'error', 'always' ], | ||
'comma-dangle': [ 'error', 'only-multiline' ], | ||
'camelcase': 'off', | ||
'no-var': 'error', | ||
'prefer-const': 'error', | ||
'arrow-parens': [ 'error', 'as-needed' ], | ||
'standard/array-bracket-even-spacing': 'off', | ||
'array-bracket-spacing': [ 'error', 'always', { 'objectsInArrays': false }], | ||
'object-curly-spacing': [ 'error', 'always' ], | ||
|
||
// Override some eslint base rules because we're using node. | ||
'no-console': 'off', | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.