mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-02 05:52:46 +02:00
bc8a044ab1
* run cypress on github action * add lint action * add test and coverage action * upgrade testing dependencies * upgrade linting dependencies * add bundlesize action * fix env name, prevent husky * add npm publish step * upgrade cypress to latest non-breaking version * fix postversion script * don't share full token with bundlesize * nicer version commit * add preversion script, use `--atomic` and don't publish tests * enforce tagged and signed version * restored bump-cache
54 lines
982 B
Plaintext
54 lines
982 B
Plaintext
{
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020
|
|
},
|
|
"extends": ["airbnb-base", "prettier"],
|
|
"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",
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
"singleQuote": true,
|
|
"trailingComma": "all"
|
|
}
|
|
],
|
|
"import/no-useless-path-segments": "warn",
|
|
"prefer-destructuring": "warn"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.test.js"],
|
|
"env": {
|
|
"mocha": true
|
|
}
|
|
},
|
|
{
|
|
"files": ["cypress/**/*.spec.js"],
|
|
"plugins": ["cypress"],
|
|
"env": {
|
|
"cypress/globals": true
|
|
}
|
|
}
|
|
]
|
|
}
|