mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-21 15:06:45 +02:00
472e0dff39
* switch to lint-stagged * separate prettier config into external file * recommend and configure VSCode extensions
53 lines
954 B
Plaintext
53 lines
954 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
|
|
}
|
|
},
|
|
{
|
|
"files": ["cypress/**/*.spec.js"],
|
|
"plugins": ["cypress"],
|
|
"env": {
|
|
"cypress/globals": true
|
|
}
|
|
}
|
|
]
|
|
}
|