Closes #13087 (grafted from b2a2c9483562f6ae5430df5cc957148003ac3520) --HG-- branch : 7.0
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 6,
|
|
sourceType: "script",
|
|
globals: {
|
|
Mousetrap: "readonly",
|
|
Papa: "readonly",
|
|
QUnit: "readonly",
|
|
Sao: "readonly",
|
|
Sortable: "readonly",
|
|
c3: "readonly",
|
|
i18n: "readonly",
|
|
jQuery: "readonly",
|
|
moment: "readonly",
|
|
...globals.browser
|
|
},
|
|
},
|
|
rules: {
|
|
"getter-return": "off",
|
|
"no-constant-condition": "off",
|
|
"no-empty": "off",
|
|
"no-extra-boolean-cast": "off",
|
|
"no-prototype-builtins": "off",
|
|
"no-self-assign": "off",
|
|
"no-unexpected-multiline": "off",
|
|
"no-unused-vars": "off",
|
|
"no-useless-escape": "off",
|
|
"no-with": "off",
|
|
},
|
|
}, {
|
|
files: ['tests/**/*.js'],
|
|
languageOptions: {
|
|
globals: {
|
|
Sao: "readonly",
|
|
eval_pyson: "readonly",
|
|
},
|
|
},
|
|
},
|
|
];
|