Add eslintrc in popup

This commit is contained in:
Ceda EI 2020-09-09 21:24:49 +05:30
parent 537deb944e
commit 2f185b03e9
1 changed files with 44 additions and 0 deletions

44
popup/.eslintrc.js Normal file
View File

@ -0,0 +1,44 @@
module.exports = {
"env": {
"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"
}
}
};