Skip to content

Instantly share code, notes, and snippets.

@jjasonclark
Created December 10, 2019 17:41
Show Gist options
  • Save jjasonclark/169ff4fc7e8dced0f3937c94bda7619e to your computer and use it in GitHub Desktop.
Save jjasonclark/169ff4fc7e8dced0f3937c94bda7619e to your computer and use it in GitHub Desktop.
common node eslint config
module.exports = {
env: {
commonjs: true,
es6: true,
node: true
},
extends: ['formidable/configurations/es6-node', 'prettier'],
parserOptions: {
ecmaVersion: 2018
},
rules: {
strict: ['error', 'global']
},
overrides: [
{
files: ['src/**/*.test.js'],
extends: ['plugin:jest/recommended'],
env: {
'jest/globals': true
}
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment