Skip to content

Commit

Permalink
Config changes to remove tslint, add prettier, using all defaults exp…
Browse files Browse the repository at this point in the history
…ect (#1231)

for singlequotes
  • Loading branch information
cspotcode authored Feb 27, 2021
1 parent 0274f81 commit 45a9c63
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 161 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
root = true

[*]
# This also tells github.com how wide to render tabs
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml,dist-raw/**}]
# In case we switch to tabs above, these must still be spaces
indent_style = space
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
!/*.js
!/*.mjs
!/esm
!/register
!/scripts
!/src
!/tests
tests/main-realpath/symlink/tsconfig.json
163 changes: 6 additions & 157 deletions package-lock.json

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

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"node14/"
],
"scripts": {
"lint": "tslint \"src/**/*.ts\" --project tsconfig.json",
"lint-fix": "tslint \"src/**/*.ts\" --project tsconfig.json --fix",
"lint": "prettier --check .",
"lint-fix": "prettier --write .",
"clean": "rimraf dist tsconfig.schema.json tsconfig.schemastore-schema.json tsconfig.tsbuildinfo tests/ts-node-packed.tgz",
"rebuild": "npm run clean && npm run build",
"build": "npm run build-nopack && npm run build-pack",
Expand Down Expand Up @@ -125,13 +125,12 @@
"lodash": "^4.17.15",
"ntypescript": "^1.201507091536.1",
"nyc": "^15.0.1",
"prettier": "^2.2.1",
"proxyquire": "^2.0.0",
"react": "^16.14.0",
"rimraf": "^3.0.0",
"semver": "^7.1.3",
"throat": "^6.0.1",
"tslint": "^6.1.0",
"tslint-config-standard": "^9.0.0",
"typedoc": "^0.20.28",
"typescript": "4.2.2",
"typescript-json-schema": "^0.42.0",
Expand Down Expand Up @@ -160,5 +159,8 @@
"make-error": "^1.1.1",
"source-map-support": "^0.5.17",
"yn": "3.1.1"
},
"prettier": {
"singleQuote": true
}
}

0 comments on commit 45a9c63

Please sign in to comment.