Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
style(prettier): integrate prettier into linting rules
  • Loading branch information
char0n committed Jun 23, 2020
1 parent 00f6ef7 commit 3b5cc18
Show file tree
Hide file tree
Showing 61 changed files with 5,666 additions and 5,838 deletions.
17 changes: 14 additions & 3 deletions .eslintrc
@@ -1,20 +1,31 @@
{
"root": true,
"extends": "eslint-config-airbnb-base",
"env": {
"shared-node-browser": true,
"es6": true,
"es2017": true
},
"globals": {
"File": true,
"Blob": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
}
},
"extends": ["eslint-config-airbnb-base", "prettier"],
"plugins": ["eslint-plugin-prettier", "prettier"],
"rules": {
"arrow-body-style": 0, // will be eliminated by prettier

"import/order": ["error", {
"groups": [
["builtin", "external", "internal"],
["parent", "sibling", "index"]
],
"newlines-between": "always"
}],
"prettier/prettier": "error",
"no-param-reassign": 0, // needs to be eliminated in future
"no-use-before-define": [2, "nofunc"] // needs to be eliminated in future
}
Expand Down
7 changes: 7 additions & 0 deletions .prettierrc
@@ -0,0 +1,7 @@
{
"printWidth": 100,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
}
70 changes: 53 additions & 17 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -69,7 +69,9 @@
"bundlesize": "=0.18.0",
"eslint": "=7.2.0",
"eslint-config-airbnb-base": "=14.2.0",
"eslint-config-prettier": "=6.11.0",
"eslint-plugin-import": "=2.21.2",
"eslint-plugin-prettier": "=3.1.4",
"expect": "=26.0.1",
"fetch-mock": "=9.10.1",
"glob": "=7.1.6",
Expand All @@ -82,6 +84,7 @@
"node-fetch": "=2.6.0",
"npm-audit-ci-wrapper": "=2.6.6",
"npm-run-all": "=4.1.5",
"prettier": "=2.0.5",
"release-it": "=12.4.3",
"terser-webpack-plugin": "=3.0.6",
"webpack": "=4.43.0",
Expand Down

0 comments on commit 3b5cc18

Please sign in to comment.