mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
* Use goog.module in mocha tests * Fix compiler warnings * Make test helpers a module * Name test modules Blockly.test.* This is to be more consistent with how non-test modules are named. Also remove top-level goog.require of TestHelpers (now Blockly.test.helpers) since requiring a side-effect-less module does nothing. * Convert block_test.js and comment_test.js to goog.module syntax * Address PR comments * Goog modulify tests * Goog modulify toolbox helpers * Fixes imports and moves common tests from workspace_test.js to a helper file. * Update test deps after rebase Co-authored-by: Christopher Allen <cpcallen+git@google.com>
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"parser": "babel-eslint",
|
|
"env": {
|
|
"browser": true,
|
|
"mocha": true
|
|
},
|
|
"globals": {
|
|
"chai": false,
|
|
"sinon": false,
|
|
"testHelpers": true
|
|
},
|
|
"rules": {
|
|
"no-unused-vars": ["off"],
|
|
"es5/no-arrow-functions": ["off"],
|
|
"es5/no-binary-and-octal-literals": ["off"],
|
|
"es5/no-block-scoping": ["off"],
|
|
"es5/no-classes": ["off"],
|
|
"es5/no-computed-properties": ["off"],
|
|
"es5/no-default-parameters": ["off"],
|
|
"es5/no-destructuring": ["off"],
|
|
"es5/no-es6-methods": ["off"],
|
|
"es5/no-es6-static-methods": ["off"],
|
|
"es5/no-for-of": ["off"],
|
|
"es5/no-generators": ["off"],
|
|
"es5/no-modules": ["off"],
|
|
"es5/no-object-super": ["off"],
|
|
"es5/no-rest-parameters": ["off"],
|
|
"es5/no-shorthand-properties": ["off"],
|
|
"es5/no-spread": ["off"],
|
|
"es5/no-template-literals": ["off"],
|
|
"es5/no-typeof-symbol": ["off"],
|
|
"es5/no-unicode-code-point-escape": ["off"],
|
|
"es5/no-unicode-regex": ["off"]
|
|
},
|
|
"extends": "../../.eslintrc.json"
|
|
}
|