mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Updates eslint rules to work while converting to goog.module (#5063)
This commit is contained in:
@@ -2,29 +2,6 @@
|
||||
"rules": {
|
||||
"curly": ["error"],
|
||||
"eol-last": ["error"],
|
||||
// Blockly/Google use 2-space indents.
|
||||
// Blockly/Google uses +4 space indents for line continuations.
|
||||
// Ignore default rules for ternary expressions.
|
||||
"indent": [
|
||||
"error", 2,
|
||||
{
|
||||
"SwitchCase": 1,
|
||||
"MemberExpression": 2,
|
||||
"ObjectExpression": 1,
|
||||
"FunctionDeclaration": {
|
||||
"body": 1,
|
||||
"parameters": 2
|
||||
},
|
||||
"FunctionExpression": {
|
||||
"body": 1,
|
||||
"parameters": 2
|
||||
},
|
||||
"CallExpression": {
|
||||
"arguments": 2
|
||||
},
|
||||
"ignoredNodes": ["ConditionalExpression"]
|
||||
}
|
||||
],
|
||||
"keyword-spacing": ["error"],
|
||||
"linebreak-style": ["error", "unix"],
|
||||
"max-len": [
|
||||
@@ -39,7 +16,7 @@
|
||||
],
|
||||
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
|
||||
"no-unused-vars": [
|
||||
"error",
|
||||
"warn",
|
||||
{
|
||||
"args": "after-used",
|
||||
// Ignore vars starting with an underscore.
|
||||
@@ -48,7 +25,6 @@
|
||||
"argsIgnorePattern": "^_"
|
||||
}
|
||||
],
|
||||
"no-use-before-define": ["error"],
|
||||
// Blockly uses for exporting symbols. no-self-assign added in eslint 5.
|
||||
"no-self-assign": ["off"],
|
||||
// Blockly uses single quotes except for JSON blobs, which must use double quotes.
|
||||
|
||||
Reference in New Issue
Block a user