winter/modules/system/.eslintrc.json
Ben Thomson 2a13faf999
Harden Snowboard (#687)
- The Snowboard and PluginLoader objects are now frozen and cannot be modified.
- Added a Proxy in front of Snowboard to handle plugin loading
- Plugin "Snowboard" instances are blocked from running certain methods
- Update tests to check hardening
2022-09-13 09:04:16 +08:00

42 lines
991 B
JSON

{
"env": {
"es6": true,
"browser": true
},
"globals": {
"Snowboard": "writable"
},
"extends": [
"airbnb-base",
"plugin:vue/vue3-recommended"
],
"rules": {
"class-methods-use-this": ["off"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"max-len": ["off"],
"new-cap": ["error", { "properties": false }],
"no-alert": ["off"],
"no-plusplus": "off",
"no-param-reassign": ["error", {
"props": false
}],
"vue/html-indent": ["error", 4],
"vue/html-self-closing": ["error", {
"html": {
"void": "never",
"normal": "any",
"component": "always"
},
"svg": "always",
"math": "always"
}],
"vue/multi-word-component-names": ["off"]
},
"ignorePatterns": [
"tests/js",
"**/build/*.js"
]
}