Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2019-02-21 16:55:16 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-03-11 18:01:28 +0300
commit44e6abcba50309df4fae56a9c7ef79145b64a356 (patch)
tree52cbc26a6bc4faf1b61f271619ef0fd50775e8c6 /site
parent8896827bd072a120705a0576a5bcde69c8ce2cda (diff)
Switch to eslint-config-xo and eslint-plugin-unicorn.
Diffstat (limited to 'site')
-rw-r--r--site/.eslintrc.json48
1 files changed, 29 insertions, 19 deletions
diff --git a/site/.eslintrc.json b/site/.eslintrc.json
index 6a5a00888a..8c2cffef79 100644
--- a/site/.eslintrc.json
+++ b/site/.eslintrc.json
@@ -1,26 +1,36 @@
{
- "env": {
- "es6": false
- },
+ "root": true,
"parserOptions": {
- "ecmaVersion": 5,
"sourceType": "script"
},
- "extends": "../.eslintrc.json",
+ "extends": [
+ "plugin:unicorn/recommended",
+ "xo",
+ "xo/browser"
+ ],
"rules": {
- "no-new": "off",
- // Best Practices
- "no-magic-numbers": "off",
- "vars-on-top": "off",
-
- // Stylistic Issues
- "spaced-comment": "off",
-
- // ECMAScript 6
- "no-var": "off",
- "object-shorthand": "off",
- "prefer-arrow-callback": "off",
- "prefer-template": "off",
- "prefer-rest-params": "off"
+ "capitalized-comments": "off",
+ "indent": [
+ "error",
+ 2,
+ {
+ "MemberExpression": "off",
+ "SwitchCase": 1
+ }
+ ],
+ "multiline-ternary": [
+ "error",
+ "always-multiline"
+ ],
+ "object-curly-spacing": [
+ "error",
+ "always"
+ ],
+ "semi": [
+ "error",
+ "never"
+ ],
+ "strict": "error",
+ "unicorn/prefer-query-selector": "off"
}
}