-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate style linting to Prettier (#37)
- Loading branch information
1 parent
97f7143
commit c57b206
Showing
31 changed files
with
529 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,44 @@ | ||
module.exports = { | ||
env: { | ||
'browser': true, | ||
'jest': true | ||
browser: true, | ||
jest: true, | ||
}, | ||
extends: [ 'eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:storybook/recommended' ], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:storybook/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
overrides: [], | ||
settings: { | ||
react: { | ||
version: 'detect' | ||
} | ||
version: 'detect', | ||
}, | ||
}, | ||
ignorePatterns: [ '*.html' ], | ||
ignorePatterns: ['*.html'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
'ecmaVersion': '13', | ||
'sourceType': 'module' | ||
ecmaVersion: '13', | ||
sourceType: 'module', | ||
}, | ||
plugins: [ 'react', '@typescript-eslint' ], | ||
plugins: ['react', '@typescript-eslint', 'prettier'], | ||
rules: { | ||
'brace-style': [ 'error', 'stroustrup', { | ||
'allowSingleLine': true | ||
} ], | ||
'quotes': [ 'error', 'single' ], | ||
'no-trailing-spaces': [ 'error' ], | ||
'eol-last': [ 'error', 'always' ], | ||
'curly': [ 'error', 'multi-line', 'consistent' ], | ||
'indent': [ 'error', 'tab', { | ||
'SwitchCase': 1, | ||
'ignoredNodes': [ 'TemplateLiteral *' ] | ||
} ], | ||
'semi': [ 'error', 'always' ], | ||
'no-multiple-empty-lines': [ 'error', { | ||
'max': 1 | ||
} ], | ||
'comma-dangle': [ 'error', 'never' ], | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-this-alias': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'array-bracket-spacing': [ 'error', 'always' ], | ||
'@typescript-eslint/no-use-before-define': 'off' | ||
} | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
endOfLine: 'auto', | ||
useTabs: true, | ||
singleQuote: true, | ||
printWidth: 100, | ||
singleAttributePerLine: true, | ||
}, | ||
], | ||
}, | ||
}; |
Oops, something went wrong.