2016-03-15 15:04:53 +01:00
|
|
|
{
|
2019-10-21 18:20:39 +02:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2020
|
|
|
|
},
|
|
|
|
"extends": ["airbnb-base", "prettier"],
|
|
|
|
"plugins": ["prettier"],
|
2016-03-15 15:04:53 +01:00
|
|
|
"env": {
|
2018-05-28 17:22:09 +02:00
|
|
|
"es6": true,
|
2019-10-21 18:20:39 +02:00
|
|
|
"browser": true
|
2017-07-24 16:18:43 +02:00
|
|
|
},
|
2016-03-15 15:04:53 +01:00
|
|
|
"rules": {
|
2018-10-10 13:36:43 +02:00
|
|
|
"import/no-extraneous-dependencies": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"devDependencies": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-console": [
|
|
|
|
"warn",
|
|
|
|
{
|
2019-10-21 18:20:39 +02:00
|
|
|
"allow": ["warn", "error"]
|
2018-10-10 13:36:43 +02:00
|
|
|
}
|
|
|
|
],
|
2018-05-28 18:56:36 +02:00
|
|
|
"no-plusplus": "off",
|
2018-05-28 17:22:09 +02:00
|
|
|
"no-unused-expressions": "off",
|
|
|
|
"no-underscore-dangle": "off",
|
2019-02-22 23:04:55 +01:00
|
|
|
"consistent-return": "off",
|
2018-10-10 13:36:43 +02:00
|
|
|
"prettier/prettier": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"singleQuote": true,
|
|
|
|
"trailingComma": "all"
|
|
|
|
}
|
2019-10-21 18:20:39 +02:00
|
|
|
],
|
|
|
|
"import/no-useless-path-segments": "warn",
|
|
|
|
"prefer-destructuring": "warn"
|
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["*.test.js"],
|
|
|
|
"env": {
|
|
|
|
"mocha": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["cypress/**/*.spec.js"],
|
|
|
|
"plugins": ["cypress"],
|
|
|
|
"env": {
|
|
|
|
"cypress/globals": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|