Skip to content

Instantly share code, notes, and snippets.

@rsturim
Created December 6, 2020 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsturim/f1b141fedd48035fb96349d1c80fe31e to your computer and use it in GitHub Desktop.
Save rsturim/f1b141fedd48035fb96349d1c80fe31e to your computer and use it in GitHub Desktop.
Primo Eslint config — .eslintrc.js
'use strict';
module.exports = {
env: {
es6: true,
},
rules: {
strict: ['error', 'global'],
'func-style': ['error', 'expression'],
'no-new-func': 'error',
'no-param-reassign': 'error',
'prefer-arrow-callback': 'error',
'arrow-parens': ['error', 'always'],
'arrow-body-style': ['error', 'as-needed'],
'new-cap': 'error',
'no-invalid-this': 'error',
'prefer-destructuring': [
'error',
{ 'array': true, 'object': true },
{ enforceForRenamedProperties: true }
],
'no-eval': 'error',
'no-implied-eval': 'error',
'eqeqeq': 'error',
'no-with': 'error',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment