Skip to content

Instantly share code, notes, and snippets.

@TunvirRahman
Last active June 9, 2020 08:59
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 TunvirRahman/6a4055f2b513250209b4bc843c516775 to your computer and use it in GitHub Desktop.
Save TunvirRahman/6a4055f2b513250209b4bc843c516775 to your computer and use it in GitHub Desktop.
.eslintrc.js file
module.exports = {
env: {
browser: true,
es6: true,
},
extends: 'airbnb',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'react',
],
"rules": {
"linebreak-style": 0,
"max-len": "off",
"quotes": [
"warn",
"double"
],
"class-methods-use-this": 0,
"no-underscore-dangle": 0,
"indent": ["error", 4],
"no-param-reassign": [
"error",
{
"props": false
}
],
"prefer-destructuring": "warn",
"global-require": "warn",
"import/no-dynamic-require": "warn",
"no-plusplus": "warn",
"react/prop-types": "warn",
"comma-dangle": 0
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment