Skip to content
Snippets Groups Projects
Commit 91b39cb2 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'eslint-options' into 'pregmod-master'

ESLint configuration to enable "smart" modes

See merge request !5430
parents ca7d206f 8047914a
No related branches found
No related tags found
1 merge request!5430ESLint configuration to enable "smart" modes
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"semi-style": "warn", "semi-style": "warn",
"block-spacing": ["warn", "always"], "block-spacing": ["warn", "always"],
"curly": ["warn", "all"], "curly": ["warn", "all"],
"eqeqeq": "warn", "eqeqeq": ["warn", "smart"],
"no-fallthrough": "error", "no-fallthrough": "error",
"space-before-function-paren": ["warn", { "space-before-function-paren": ["warn", {
"anonymous": "never", "anonymous": "never",
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
}], }],
"template-curly-spacing": ["warn", "never"], "template-curly-spacing": ["warn", "never"],
"no-trailing-spaces": "warn", "no-trailing-spaces": "warn",
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
"no-unneeded-ternary": "warn", "no-unneeded-ternary": "warn",
"camelcase": "warn", "camelcase": "warn",
"padded-blocks": ["warn", "never"], "padded-blocks": ["warn", "never"],
...@@ -71,7 +72,7 @@ ...@@ -71,7 +72,7 @@
"no-var": "warn", "no-var": "warn",
"spaced-comment": "warn", "spaced-comment": "warn",
"no-undef": "off", "no-undef": "off",
"no-unused-vars": "error", "no-unused-vars": ["error", {"args": "none"}],
"block-scoped-var": "error", "block-scoped-var": "error",
"dot-notation": "warn", "dot-notation": "warn",
"eol-last": "warn", "eol-last": "warn",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment