Skip to content

Commit

Permalink
Install prettier, remove eslint-plugin-prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarner committed Sep 3, 2021
1 parent 76bfcc8 commit b6498f1
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 49 deletions.
9 changes: 4 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ module.exports = {
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
],
plugins: [
'@typescript-eslint',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'prettier',
],
plugins: ['@typescript-eslint', 'import'],
// add your custom rules here
rules: {
semi: ['error', 'always'],
Expand Down
15 changes: 15 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Ignore workflows
.github

# Node modules
node_modules

# Ignore build files
dist

# Test results
test/.results
test/.coverage

# IDE
.idea
75 changes: 36 additions & 39 deletions package-lock.json

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

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"prebuild": "rimraf dist && npm run barrels:generate",
"build": "tsc -p tsconfig.build.json",
"postbuild": "cp package.json README.md dist/",
"lint": "eslint --ext .ts --ignore-path .gitignore .",
"lint:fix": "eslint --ext .ts --ignore-path .gitignore . --fix",
"format": "prettier --write .",
"lint": "eslint --ext .ts,.js --ignore-path .gitignore .",
"lint:fix": "eslint --ext .ts,.js --ignore-path .gitignore . --fix",
"test": "jest",
"test:watch": "jest --watch",
"postversion": "npm run postbuild",
Expand All @@ -40,16 +41,15 @@
"barrelsby": "2.2.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-config-standard": "16.0.3",
"eslint-import-resolver-typescript": "2.4.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-promise": "5.1.0",
"eslint-plugin-standard": "4.1.0",
"husky": "7.0.2",
"jest": "27.1.0",
"lint-staged": "11.1.2",
"np": "7.5.0",
"prettier": "2.3.2",
"reflect-metadata": "0.1.13",
"ts-jest": "27.0.5",
"typescript": "4.4.2"
Expand Down

0 comments on commit b6498f1

Please sign in to comment.