Skip to content

Commit

Permalink
chore: Add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
MagnunAVFAzion committed Sep 11, 2023
1 parent 67ad3bd commit 8939638
Show file tree
Hide file tree
Showing 4 changed files with 222 additions and 101 deletions.
83 changes: 20 additions & 63 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
"es2021": true,
"jest/globals": true
},
"plugins": [
"jsdoc",
"jest"
],
"plugins": ["jsdoc", "jest", "prettier"],
"extends": [
"airbnb-base",
"plugin:jsdoc/recommended",
"plugin:jest/recommended"
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"overrides": [],
"parserOptions": {
Expand All @@ -22,70 +20,29 @@
"import/resolver": {
"alias": {
"map": [
[
"#root/*",
"./"
],
[
"#lib/*",
"./lib"
],
[
"#utils",
"./lib/utils/index.js"
],
[
"#polyfills",
"./lib/env/polyfills/index.js"
],
[
"#build",
"./lib/build/dispatcher/index.js"
],
[
"#bundlers",
"./lib/build/bundlers/index.js"
],
[
"#notations/*",
"./lib/notations"
],
[
"#env",
"./lib/env/index.js"
],
[
"#platform",
"./lib/platform/index.js"
],
[
"#constants",
"./lib/constants/index.js"
],
[
"#edge",
"./lib/platform/edgehooks/index.js"
],
[
"#commands",
"./lib/commands/index.js"
]
["#root/*", "./"],
["#lib/*", "./lib"],
["#utils", "./lib/utils/index.js"],
["#polyfills", "./lib/env/polyfills/index.js"],
["#build", "./lib/build/dispatcher/index.js"],
["#bundlers", "./lib/build/bundlers/index.js"],
["#notations/*", "./lib/notations"],
["#env", "./lib/env/index.js"],
["#platform", "./lib/platform/index.js"],
["#constants", "./lib/constants/index.js"],
["#edge", "./lib/platform/edgehooks/index.js"],
["#commands", "./lib/commands/index.js"]
],
"extensions": [
".js",
".json"
]
"extensions": [".js", ".json"]
}
}
},
"rules": {
"import/extensions": [
"error",
"always"
],
"no-console": "off"
"import/extensions": ["error", "always"],
"no-console": "off",
"prettier/prettier": "error"
},
"globals": {
"AZION_VERSION_ID": "readonly"
}
}
}
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"useTabs": false,
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"scripts": {
"start": "node lib/main.js",
"task:aliases": "node tasks/sync-aliases.js",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"format": "prettier --write .",
"task:docs": "jsdoc --configure jsdoc.json --verbose",
"test": "jest",
"test:watch": "jest --watch"
Expand Down Expand Up @@ -95,13 +98,16 @@
"babel-jest": "^29.5.0",
"babel-plugin-transform-import-meta": "^2.2.0",
"clean-jsdoc-theme": "^4.2.9",
"eslint": "^7.32.0 || ^8.2.0",
"eslint": "^8.49.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-jsdoc": "^44.2.5",
"jest": "^29.5.0"
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.5.0",
"prettier": "^3.0.3"
},
"imports": {
"#root/*": "./",
Expand Down
Loading

0 comments on commit 8939638

Please sign in to comment.