BetterDiscordApp-rauenzi/.eslintrc

100 lines
2.8 KiB
Plaintext
Raw Normal View History

2019-05-28 20:19:48 +02:00
{
2019-05-30 17:44:05 +02:00
"extends": ["eslint:recommended", "plugin:react/recommended"],
"plugins": [
"react"
],
2020-07-23 22:51:58 +02:00
"settings": {
"react": {
"version": "16.12.0"
}
},
2019-05-28 20:19:48 +02:00
"env": {
"browser": true,
"node": true,
"jquery": true
},
"parserOptions": {
"ecmaVersion": 2017,
2019-05-30 07:06:17 +02:00
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
2019-05-28 20:19:48 +02:00
},
"rules": {
2019-06-27 06:21:51 +02:00
"no-undef": "error",
2019-06-19 05:09:49 +02:00
"semi": "error",
"space-infix-ops": "error",
2019-05-28 20:19:48 +02:00
"quotes": ["error", "double", {"allowTemplateLiterals": true}],
2019-06-19 05:09:49 +02:00
"no-console": "error",
"no-shadow": ["warn", { "builtinGlobals": false, "hoist": "functions", "allow": [] }],
"no-redeclare": ["error", { "builtinGlobals": true }],
2019-05-28 20:19:48 +02:00
"brace-style": ["error", "stroustrup", {"allowSingleLine": true}],
2019-06-19 05:09:49 +02:00
"keyword-spacing": "error",
"no-else-return": "error",
2019-05-28 20:19:48 +02:00
"curly": ["error", "multi-line", "consistent"],
2019-06-19 05:09:49 +02:00
"dot-notation": "error",
"yoda": "error",
2019-05-28 20:19:48 +02:00
"linebreak-style": ["error", "windows"],
"quote-props": ["error", "consistent-as-needed", {"keywords": true}],
2019-05-29 05:48:41 +02:00
"object-curly-spacing": ["error", "never", { "objectsInObjects": false }],
"no-var": "error",
2019-05-30 07:06:17 +02:00
"prefer-const": "error",
2020-07-23 22:51:58 +02:00
"no-prototype-builtins": "off",
2019-05-30 07:06:17 +02:00
"react/jsx-uses-react": "error",
2019-06-04 06:18:15 +02:00
"react/jsx-uses-vars": "error",
2019-06-19 05:09:49 +02:00
"react/prop-types": "off",
2019-06-10 22:37:50 +02:00
"react/jsx-no-target-blank": "error",
2019-06-19 05:09:49 +02:00
"react/jsx-key": "off"
2019-05-28 20:19:48 +02:00
},
"globals": {
2019-06-19 05:09:49 +02:00
"webpackJsonp": "readonly",
"Proxy": "readonly",
"Set": "readonly",
"WeakMap": "readonly",
"Promise": "readonly",
"ace": "readonly",
"Reflect": "readonly",
"DiscordNative": "readonly",
"__non_webpack_require__": "readonly",
2020-07-21 17:11:52 +02:00
"Symbol": "readonly",
2019-06-19 05:09:49 +02:00
"alert": "off",
"atob": "off",
"blur": "off",
"btoa": "off",
"caches": "off",
"close": "off",
"closed": "off",
"confirm": "off",
"crypto": "off",
"defaultstatus": "off",
"event": "off",
"external": "off",
"find": "off",
"focus": "off",
"frames": "off",
"history": "off",
"length": "off",
"location": "off",
"locationbar": "off",
"menubar": "off",
"name": "off",
"navigator": "off",
"open": "off",
"opener": "off",
"origin": "off",
"parent": "off",
"personalbar": "off",
"print": "off",
"prompt": "off",
"screen": "off",
"scroll": "off",
"scrollbars": "off",
"self": "off",
"status": "off",
"statusbar": "off",
"stop": "off",
"toolbar": "off",
"top": "off"
2019-05-28 20:19:48 +02:00
}
}