Choices/.eslintrc.json

75 lines
1.4 KiB
JSON
Raw Normal View History

2016-03-15 15:04:53 +01:00
{
"parserOptions": {
"ecmaVersion": 2020
},
"extends": [
"airbnb-base",
"plugin:prettier/recommended",
"plugin:compat/recommended"
],
"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": {
"import/prefer-default-export": "off",
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",
"import/no-useless-path-segments": "warn",
"prefer-destructuring": [
"warn",
2018-10-10 13:36:43 +02:00
{
"array": false,
"object": true
2018-10-10 13:36:43 +02:00
}
]
},
"overrides": [
{
"files": ["*.test.js"],
"env": {
"mocha": true
},
"rules": {
"no-restricted-syntax": "off",
"compat/compat": "off"
}
},
{
"files": ["cypress/**/*.spec.js"],
"plugins": ["cypress"],
"env": {
"cypress/globals": true
}
}
],
"settings": {
"polyfills": [
"Array.from",
"Array.prototype.find",
"Array.prototype.includes",
"Symbol",
"Symbol.iterator",
"Object.assign",
"CustomEvent",
"Element.prototype.classList",
"Element.prototype.closest"
]
}
}