refactor: Upgrade to eslint 9.19.0 (#9580)
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"jasmine": true
|
||||
},
|
||||
"globals": {
|
||||
"Parse": true,
|
||||
"reconfigureServer": true,
|
||||
"createTestUser": true,
|
||||
"jfail": true,
|
||||
"ok": true,
|
||||
"strictEqual": true,
|
||||
"TestObject": true,
|
||||
"Item": true,
|
||||
"Container": true,
|
||||
"equal": true,
|
||||
"expectAsync": true,
|
||||
"notEqual": true,
|
||||
"it_id": true,
|
||||
"fit_id": true,
|
||||
"it_only_db": true,
|
||||
"it_only_mongodb_version": true,
|
||||
"it_only_postgres_version": true,
|
||||
"it_only_node_version": true,
|
||||
"fit_only_mongodb_version": true,
|
||||
"fit_only_postgres_version": true,
|
||||
"fit_only_node_version": true,
|
||||
"it_exclude_dbs": true,
|
||||
"fit_exclude_dbs": true,
|
||||
"describe_only_db": true,
|
||||
"fdescribe_only_db": true,
|
||||
"describe_only": true,
|
||||
"on_db": true,
|
||||
"defaultConfiguration": true,
|
||||
"range": true,
|
||||
"jequal": true,
|
||||
"create": true,
|
||||
"arrayContains": true,
|
||||
"databaseAdapter": true,
|
||||
"databaseURI": true
|
||||
},
|
||||
"rules": {
|
||||
"no-console": [0],
|
||||
"no-var": "error"
|
||||
}
|
||||
}
|
||||
55
spec/eslint.config.js
Normal file
55
spec/eslint.config.js
Normal file
@@ -0,0 +1,55 @@
|
||||
const js = require("@eslint/js");
|
||||
const globals = require("globals");
|
||||
module.exports = [
|
||||
js.configs.recommended,
|
||||
{
|
||||
languageOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
globals: {
|
||||
...globals.node,
|
||||
...globals.jasmine,
|
||||
Parse: "readonly",
|
||||
reconfigureServer: "readonly",
|
||||
createTestUser: "readonly",
|
||||
jfail: "readonly",
|
||||
ok: "readonly",
|
||||
strictEqual: "readonly",
|
||||
TestObject: "readonly",
|
||||
Item: "readonly",
|
||||
Container: "readonly",
|
||||
equal: "readonly",
|
||||
expectAsync: "readonly",
|
||||
notEqual: "readonly",
|
||||
it_id: "readonly",
|
||||
fit_id: "readonly",
|
||||
it_only_db: "readonly",
|
||||
it_only_mongodb_version: "readonly",
|
||||
it_only_postgres_version: "readonly",
|
||||
it_only_node_version: "readonly",
|
||||
fit_only_mongodb_version: "readonly",
|
||||
fit_only_postgres_version: "readonly",
|
||||
fit_only_node_version: "readonly",
|
||||
it_exclude_dbs: "readonly",
|
||||
fit_exclude_dbs: "readonly",
|
||||
describe_only_db: "readonly",
|
||||
fdescribe_only_db: "readonly",
|
||||
describe_only: "readonly",
|
||||
on_db: "readonly",
|
||||
defaultConfiguration: "readonly",
|
||||
range: "readonly",
|
||||
jequal: "readonly",
|
||||
create: "readonly",
|
||||
arrayContains: "readonly",
|
||||
databaseAdapter: "readonly",
|
||||
databaseURI: "readonly"
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"no-console": "off",
|
||||
"no-var": "error",
|
||||
"no-unused-vars": "off",
|
||||
"no-useless-escape": "off",
|
||||
}
|
||||
},
|
||||
];
|
||||
@@ -119,4 +119,4 @@ global.retryFlakyTests = function() {
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = CurrentSpecReporter;
|
||||
module.exports = CurrentSpecReporter;
|
||||
Reference in New Issue
Block a user