Skip to content

Commit

Permalink
Relax rule: Don't check indentation on template literal children (wor…
Browse files Browse the repository at this point in the history
…k around for ESLint bug)

Fixes: standard#1176
  • Loading branch information
feross committed Aug 12, 2019
1 parent 134fe58 commit 745b3ed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
### Changed rules

- Relax rule: Don't require newlines between *single-line* member functions or class field declarations ([lines-between-class-members](https://eslint.org/docs/rules/lines-between-class-members)) [#1347](https://github.com/standard/standard/issues/1347)
- Relax rule: Don't check indentation on template literal children (work around for ESLint bug) ([indent](https://eslint.org/docs/rules/indent)) [#1176](https://github.com/standard/standard/issues/1176)

## 13.1.0 - 2019-07-20

Expand Down
17 changes: 16 additions & 1 deletion eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,25 @@
"rules": {
"dot-notation": ["error", { "allowKeywords": true }],
"import/no-absolute-path": ["error", { "esmodule": true, "commonjs": true, "amd": false }],
"indent": ["error", 2, {
"SwitchCase": 1,
"VariableDeclarator": 1,
"outerIIFEBody": 1,
"MemberExpression": 1,
"FunctionDeclaration": { "parameters": 1, "body": 1 },
"FunctionExpression": { "parameters": 1, "body": 1 },
"CallExpression": { "arguments": 1 },
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 1,
"flatTernaryExpressions": false,
"ignoreComments": false,
"ignoredNodes": ["TemplateLiteral > *"]
}],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"no-self-assign": ["error", { "props": true }],
"quotes": ["error", "single", { "avoidEscape": true }],
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "|>": "before" } }],
"quotes": ["error", "single", { "avoidEscape": true }],

"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always", "beforeClosing": "never" }]
}
Expand Down

0 comments on commit 745b3ed

Please sign in to comment.