96ad8afe1d
* build: fix eslint issues * build: migrate to Node 16
45 lines
856 B
JSON
45 lines
856 B
JSON
{
|
|
"root": true,
|
|
"parser": "@babel/eslint-parser",
|
|
"extends": [
|
|
"airbnb-base",
|
|
"plugin:prettier/recommended",
|
|
"plugin:react/recommended"
|
|
],
|
|
"plugins": ["babel", "react", "prettier"],
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"globals": {
|
|
"google": false,
|
|
"alert": false,
|
|
"css": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 9,
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
"rules": {
|
|
"prettier/prettier": "error",
|
|
"react/prop-types": "warn",
|
|
"camelcase": "warn",
|
|
"import/prefer-default-export": "warn",
|
|
"import/no-extraneous-dependencies": "warn",
|
|
"prefer-object-spread": "warn"
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
},
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [".js", ".jsx"]
|
|
}
|
|
}
|
|
}
|
|
}
|