Choices/.eslintrc

57 lines
1 KiB
Plaintext
Raw Normal View History

2016-03-15 15:04:53 +01:00
{
"parserOptions": {
"ecmaVersion": 2020
},
"extends": ["airbnb-base", "prettier"],
"plugins": ["prettier"],
2016-03-15 15:04:53 +01:00
"env": {
"es6": true,
"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",
{
"allow": ["warn", "error"]
2018-10-10 13:36:43 +02:00
}
],
2018-05-28 18:56:36 +02:00
"no-plusplus": "off",
"no-unused-expressions": "off",
"no-underscore-dangle": "off",
"consistent-return": "off",
2018-10-10 13:36:43 +02:00
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "all"
}
],
"import/no-useless-path-segments": "warn",
"prefer-destructuring": ["warn", {
"array": false,
"object": true
}]
},
"overrides": [
{
"files": ["*.test.js"],
"env": {
"mocha": true
}
},
{
"files": ["cypress/**/*.spec.js"],
"plugins": ["cypress"],
"env": {
"cypress/globals": true
}
}
]
}