Choices/.eslintrc
Konstantin Vyatkin 15d54c7d34 Remove classnames and use createElement (#687)
* enable restricted syntax in tests

* add Options to global

* crearte native elements

* remove unused helper

* fix/improve typings

* add JSDoc typings

* remove if/else
2019-10-25 15:43:28 +01:00

56 lines
1,018 B
Plaintext

{
"parserOptions": {
"ecmaVersion": 2020
},
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"plugins": ["prettier"],
"env": {
"es6": true,
"browser": true
},
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"no-console": [
"warn",
{
"allow": ["warn", "error"]
}
],
"no-plusplus": "off",
"no-unused-expressions": "off",
"no-underscore-dangle": "off",
"consistent-return": "off",
"import/no-useless-path-segments": "warn",
"prefer-destructuring": [
"warn",
{
"array": false,
"object": true
}
]
},
"overrides": [
{
"files": ["*.test.js"],
"env": {
"mocha": true
},
"rules": {
"no-restricted-syntax": "off"
}
},
{
"files": ["cypress/**/*.spec.js"],
"plugins": ["cypress"],
"env": {
"cypress/globals": true
}
}
]
}