Skip to content

Commit

Permalink
Merge pull request #7 from reedsy/indent
Browse files Browse the repository at this point in the history
Use TypeScript-safe version of `indent` rule
  • Loading branch information
alecgibson committed Jan 29, 2020
2 parents a81e133 + c7cb7f1 commit 68def1b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions eslint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ rules:
- code: 120
ignorePattern: '^import '
ignoreUrls: true
# 2 spaces means nested code doesn't drift too far across the screen
indent:
- error
- 2
- SwitchCase: 1
# Use the TypesScript-safe version
indent: off
# Google enforces this, but TypeScript is enough documentation for us
require-jsdoc: off
valid-jsdoc: off
Expand Down Expand Up @@ -73,6 +70,11 @@ rules:
- always
'@typescript-eslint/explicit-member-accessibility':
- error
# 2 spaces means nested code doesn't drift too far across the screen
'@typescript-eslint/indent':
- error
- 2
- SwitchCase: 1
overrides:
- files:
- '*.spec.ts'
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reedsy/eslint-config-reedsy",
"version": "2.0.0",
"version": "2.0.1",
"description": "Common eslint config",
"main": "eslint.yaml",
"scripts": {
Expand Down

0 comments on commit 68def1b

Please sign in to comment.