Last active
June 27, 2022 18:25
-
-
Save pratikdevdas/15f456748d2da61a202801271a045676 to your computer and use it in GitHub Desktop.
eslint(only) for nodejs
This file contains hidden or 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
node_modules | |
build |
This file contains hidden or 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
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