mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-23 16:02:21 +02:00
15d54c7d34
* enable restricted syntax in tests * add Options to global * crearte native elements * remove unused helper * fix/improve typings * add JSDoc typings * remove if/else
56 lines
1,018 B
Plaintext
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
|
|
}
|
|
}
|
|
]
|
|
}
|