Skip to content

Instantly share code, notes, and snippets.

@yograf
Created July 17, 2018 07:16
Show Gist options
  • Save yograf/0e3daed11a39b0cbb57e009ef3615e64 to your computer and use it in GitHub Desktop.
Save yograf/0e3daed11a39b0cbb57e009ef3615e64 to your computer and use it in GitHub Desktop.
eslint rc js to put on home
module.exports = {
parserOptions: {
ecmaVersion: 8
},
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
},
extends: ["plugin:prettier/recommended"],
rules: {
'prettier/prettier': [ // customizing prettier rules (unfortunately not many of them are customizable)
'error',
{
useTabs: true,
singleQuote: true,
//trailingComma: 'all',
},
],
eqeqeq: ['error', 'always'], // adding some custom ESLint rules
},
};
"devDependencies": {
"cypress": "^2.1.0",
"eslint": "^4.19.1",
"eslint-config-google": "^0.9.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"faker": "^4.1.0",
"jest": "^22.4.3",
"prettier": "^1.12.1",
"puppeteer": "^1.3.0",
"supertest": "^3.0.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment