Created
July 17, 2018 07:16
-
-
Save yograf/0e3daed11a39b0cbb57e009ef3615e64 to your computer and use it in GitHub Desktop.
eslint rc js to put on home
This file contains 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 = { | |
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 | |
}, | |
}; |
This file contains 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
"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