mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-06 07:43:12 +02:00
172366d6fa
* expand browsers target * add eslint-plugin-compat * sort polyfils * adjust readme * add polyfills sync check action * only build js * trim * add Element.prototype.closest * add closest to demo links * fix ignore
75 lines
1.4 KiB
JSON
75 lines
1.4 KiB
JSON
{
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020
|
|
},
|
|
"extends": [
|
|
"airbnb-base",
|
|
"plugin:prettier/recommended",
|
|
"plugin:compat/recommended"
|
|
],
|
|
"plugins": ["prettier"],
|
|
"env": {
|
|
"es6": true,
|
|
"browser": true
|
|
},
|
|
"rules": {
|
|
"import/prefer-default-export": "off",
|
|
"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",
|
|
"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"
|
|
]
|
|
}
|
|
}
|