Created
March 21, 2019 19:10
-
-
Save oscaroceguera/e430603bf65db33fff5d0e351c801e05 to your computer and use it in GitHub Desktop.
my eslintrc
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": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"plugins": [ | |
"react" | |
], | |
parser: "babel-eslint", | |
"rules": { | |
"indent": [ | |
"error", | |
2 | |
], | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"quotes": [ | |
"error", | |
"single" | |
], | |
"semi": [ | |
"error", | |
"never" | |
], | |
"max-len": [1, 80, 2, {ignoreComments: true}], | |
"overrides": [ | |
{ | |
"files": ["*.stories.js"], | |
"rules": { | |
"no-unused-expressions": "off" | |
} | |
} | |
] | |
} | |
}; | |
// package.json: "pre-commit": "eslint", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment