Core:Manipulation: Add basic TrustedHTML support
[jquery.git] / test / .eslintrc.json
bloba5509180d1758e2c8413defe7b35503cb4528b01
2         "root": true,
4         "extends": "../.eslintrc-browser.json",
6         "env": {
8                 // In source the browser env is not enabled but unit tests rely on them
9                 // too much and we don't run them in non-browser environments anyway.
10                 "browser": true
11         },
13         "globals": {
14                 "require": false,
15                 "Promise": false,
16                 "Symbol": false,
17                 "trustedTypes": false,
18                 "QUnit": false,
19                 "ajaxTest": false,
20                 "testIframe": false,
21                 "createDashboardXML": false,
22                 "createWithFriesXML": false,
23                 "createXMLFragment": false,
24                 "moduleTeardown": false,
25                 "url": false,
26                 "q": false,
27                 "jQuery": true,
28                 "sinon": true,
29                 "amdDefined": true,
30                 "fireNative": true,
31                 "Globals": true,
32                 "hasPHP": true,
33                 "isLocal": true,
34                 "supportjQuery": true,
35                 "originaljQuery": true,
36                 "$": true,
37                 "original$": true,
38                 "baseURL": true,
39                 "externalHost": true
40         },
42         "rules": {
43                 // See https://github.com/eslint/eslint/issues/2342
44                 "no-unused-vars": "off",
46                 // Too many errors
47                 "max-len": "off",
48                 "brace-style": "off",
49                 "key-spacing": "off",
50                 "camelcase": "off",
51                 "one-var": "off",
52                 "strict": "off",
54                 // Not really too many - waiting for autofix features for these rules
55                 "lines-around-comment": "off",
56                 "dot-notation": "off"
57         },
59         "overrides": [
60                 {
61                         "files": [
62                                 "data/core/jquery-iterability-transpiled-es6.js",
63                                 "data/testinit-jsdom.js"
64                         ],
65                         "parserOptions": {
66                                 "ecmaVersion": 2015
67                         }
68                 },
70                 {
71                         "files": [
72                                 "jquery.js",
73                                 "data/testinit.js"
74                         ],
75                         "parserOptions": {
76                                 "ecmaVersion": 2020
77                         }
78                 }
79         ]