mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
chore: lint error on only in mocha tests (#9300)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import eslint from '@eslint/js';
|
import eslint from '@eslint/js';
|
||||||
import googleStyle from 'eslint-config-google';
|
import googleStyle from 'eslint-config-google';
|
||||||
import jsdoc from 'eslint-plugin-jsdoc';
|
import jsdoc from 'eslint-plugin-jsdoc';
|
||||||
|
import mochaPlugin from 'eslint-plugin-mocha';
|
||||||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
||||||
import globals from 'globals';
|
import globals from 'globals';
|
||||||
import tseslint from 'typescript-eslint';
|
import tseslint from 'typescript-eslint';
|
||||||
@@ -200,6 +201,9 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['tests/**'],
|
files: ['tests/**'],
|
||||||
|
plugins: {
|
||||||
|
mocha: mochaPlugin,
|
||||||
|
},
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
'Blockly': true,
|
'Blockly': true,
|
||||||
@@ -219,6 +223,7 @@ export default [
|
|||||||
'jsdoc/check-tag-names': ['warn', {'definedTags': ['record']}],
|
'jsdoc/check-tag-names': ['warn', {'definedTags': ['record']}],
|
||||||
'jsdoc/tag-lines': ['off'],
|
'jsdoc/tag-lines': ['off'],
|
||||||
'jsdoc/no-defaults': ['off'],
|
'jsdoc/no-defaults': ['off'],
|
||||||
|
'mocha/no-exclusive-tests': 'error',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
26
package-lock.json
generated
26
package-lock.json
generated
@@ -28,6 +28,7 @@
|
|||||||
"eslint-config-google": "^0.14.0",
|
"eslint-config-google": "^0.14.0",
|
||||||
"eslint-config-prettier": "^10.1.1",
|
"eslint-config-prettier": "^10.1.1",
|
||||||
"eslint-plugin-jsdoc": "^52.0.2",
|
"eslint-plugin-jsdoc": "^52.0.2",
|
||||||
|
"eslint-plugin-mocha": "^11.1.0",
|
||||||
"eslint-plugin-prettier": "^5.2.1",
|
"eslint-plugin-prettier": "^5.2.1",
|
||||||
"glob": "^11.0.1",
|
"glob": "^11.0.1",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
@@ -4137,6 +4138,31 @@
|
|||||||
"spdx-license-ids": "^3.0.0"
|
"spdx-license-ids": "^3.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/eslint-plugin-mocha": {
|
||||||
|
"version": "11.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-11.1.0.tgz",
|
||||||
|
"integrity": "sha512-rKntVWRsQFPbf8OkSgVNRVRrcVAPaGTyEgWCEyXaPDJkTl0v5/lwu1vTk5sWiUJU8l2sxwvGUZzSNrEKdVMeQw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@eslint-community/eslint-utils": "^4.4.1",
|
||||||
|
"globals": "^15.14.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": ">=9.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/eslint-plugin-mocha/node_modules/globals": {
|
||||||
|
"version": "15.15.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz",
|
||||||
|
"integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/eslint-plugin-prettier": {
|
"node_modules/eslint-plugin-prettier": {
|
||||||
"version": "5.5.1",
|
"version": "5.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.1.tgz",
|
||||||
|
|||||||
@@ -115,6 +115,7 @@
|
|||||||
"eslint-config-google": "^0.14.0",
|
"eslint-config-google": "^0.14.0",
|
||||||
"eslint-config-prettier": "^10.1.1",
|
"eslint-config-prettier": "^10.1.1",
|
||||||
"eslint-plugin-jsdoc": "^52.0.2",
|
"eslint-plugin-jsdoc": "^52.0.2",
|
||||||
|
"eslint-plugin-mocha": "^11.1.0",
|
||||||
"eslint-plugin-prettier": "^5.2.1",
|
"eslint-plugin-prettier": "^5.2.1",
|
||||||
"glob": "^11.0.1",
|
"glob": "^11.0.1",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user