Skip to content

Instantly share code, notes, and snippets.

@pratikdevdas
Last active June 27, 2022 18:25
Show Gist options
  • Save pratikdevdas/15f456748d2da61a202801271a045676 to your computer and use it in GitHub Desktop.
Save pratikdevdas/15f456748d2da61a202801271a045676 to your computer and use it in GitHub Desktop.
eslint(only) for nodejs
node_modules
build
module.exports = {
'env': {
'commonjs': true,
'browser': true,
'es2021': true,
'node': true,
'jest': true
},
'extends': 'eslint:recommended',
'parserOptions': {
'ecmaVersion': 12
},
'rules': {
'indent': [
'error',
4
],
'linebreak-style': 0,
'quotes': [
'error',
'single'
],
'semi': [
'error',
'never'
],
'eqeqeq': 'error',
'no-trailing-spaces': 'error',
'object-curly-spacing': [
'error', 'always'
],
'arrow-spacing': [
'error', { 'before': true, 'after': true }
],
'no-console':0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment