Add eslintrc.

This commit is contained in:
Ceda EI 2020-03-11 13:26:36 +05:30
parent 1686c57a6a
commit dad64dfb0e
1 changed files with 42 additions and 2 deletions

View File

@ -1,4 +1,44 @@
module.exports = { module.exports = {
root: true, "env": {
extends: '@react-native-community', "browser": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
},
"settings": {
"react": {
"version": "detect"
}
}
}; };