Choices/.eslintrc.json
Konstantin Vyatkin 172366d6fa [Tooling] Expand browsers target while keeping Polyfills under control (#709)
* 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
2019-10-29 18:19:19 +00:00

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"
]
}
}