Skip to content

Commit

Permalink
Switch to prettier (#219)
Browse files Browse the repository at this point in the history
* switch to using prettier instead of standard

* small adjustments to linting

* make printwidth 120 for prettier

* update prettier config the style we agreed on

* Add .editorconfig file
  • Loading branch information
ghost91- authored Jan 26, 2021
1 parent 920c401 commit 4def69f
Show file tree
Hide file tree
Showing 8 changed files with 774 additions and 818 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.eslintrc.js
.prettierrc.js
21 changes: 21 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
env: {
es6: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
rules: {
'tsdoc/syntax': 'warn',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
40 changes: 0 additions & 40 deletions .eslintrc.json

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
tabWidth: 2,
singleQuote: true,
trailingComma: 'none',
semi: true,
printWidth: 120,
bracketSpacing: true
};
Loading

0 comments on commit 4def69f

Please sign in to comment.