Skip to content

Commit

Permalink
chore: revert prettier config for formatOnSave; eslint-config-prettie…
Browse files Browse the repository at this point in the history
…r compat
  • Loading branch information
kamranayub committed Oct 20, 2021
1 parent 38d792c commit 3eb1925
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "jsdoc"],
"extends": ["plugin:jsdoc/recommended"],
"extends": ["plugin:jsdoc/recommended", "prettier"],
"rules": {
"@typescript-eslint/naming-convention": ["error",
{
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"coveralls": "3.1.1",
"css-loader": "6.3.0",
"eslint": "7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jsdoc": "36.1.0",
"excalibur-jasmine": "0.2.0",
"istanbul": "0.4.5",
Expand Down
12 changes: 12 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// .prettierrc.js
module.exports = {
printWidth: 140,
singleQuote: true,
trailingComma: 'none',
arrowParens: 'always',
overrides: [
{
files: '{src,sandbox/src,sandbox/tests}/**/*.{ts,js,json,css,md}'
}
]
};
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const dt = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate();
module.exports = {
mode: 'development',
devtool: 'source-map',
entry: {
'excalibur': './index.ts',
entry: {
excalibur: './index.ts',
'excalibur.min': './index.ts'
},
context: path.resolve(__dirname, 'src/engine'),
Expand Down

0 comments on commit 3eb1925

Please sign in to comment.