Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(): install prettier #8242

Merged
merged 2 commits into from
Sep 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
overrides: [
{
files: ['**/*.ts'],
}
},
],
rules: {
'@typescript-eslint/ban-ts-comment': 1,
}
},
};
17 changes: 17 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.DS_Store
*.iml
change-output.md
/.nyc_output/
/.vscode/
/node_modules/
/npm-debug.log
before_commit
/coverage/
.idea/
/dist/fabric.require.js
/dist/fabric.min.js.gz
/cli_output/
/scripts/cli_cache.json
/dist/
/lib/
/test/
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 2,
"singleQuote": true
}
42 changes: 42 additions & 0 deletions package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
"coverage:report": "nyc report --reporter=lcov --reporter=text",
"lint": "eslint --config .eslintrc.js src/**/*.ts",
"lint_tests": "eslint test/unit --config .eslintrc_tests && eslint test/visual --config .eslintrc_tests",
"all": "npm run build && npm run test -- --all && npm run lint && npm run lint_tests && npm run export"
"all": "npm run build && npm run test -- --all && npm run lint && npm run lint_tests && npm run export",
"prettier:check": "prettier --check",
"prettier:write": "prettier --write ."
},
"optionalDependencies": {
"canvas": "^2.8.0",
Expand All @@ -87,6 +89,7 @@
"commander": "^9.1.0",
"deep-object-diff": "^1.1.7",
"eslint": "^8.21.0",
"eslint-config-prettier": "^8.5.0",
"fireworm": "^0.7.2",
"fs-extra": "^10.0.1",
"fuzzy": "^0.1.3",
Expand All @@ -96,6 +99,7 @@
"moment": "^2.29.1",
"nyc": "^15.1.0",
"pixelmatch": "^4.0.2",
"prettier": "2.7.1",
"qunit": "^2.17.2",
"rollup": "^2.75.6",
"rollup-plugin-terser": "^7.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/color/color_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ export const ColorNameMap = {
whitesmoke: '#F5F5F5',
yellow: '#FFFF00',
yellowgreen: '#9ACD32'
};
};