Skip to content

Commit

Permalink
style: format all code via prettier (#268)
Browse files Browse the repository at this point in the history
* style: format all code via prettier

* style: clean up inline rules
  • Loading branch information
alexplischke authored Oct 19, 2023
1 parent 4f68d0f commit 212c0c9
Show file tree
Hide file tree
Showing 50 changed files with 557 additions and 3,886 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/lib
41 changes: 14 additions & 27 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,36 +1,23 @@
{
"root": true,
"env": {
"es2022": true,
"node": true,
"jest/globals": true
},
"extends": [
"eslint-config-appium",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:cypress/recommended",
"plugin:@typescript-eslint/recommended"
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"jest",
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"rules": {
"no-console": "off",
"promise/no-native": "off",
"promise/prefer-await-to-callbacks": "off",
"promise/prefer-await-to-then": "off",
"promise/catch-or-return": "off",
"@typescript-eslint/no-explicit-any": "off"
},
"env": {
"jest/globals": true
},
"ignorePatterns": [
"lib/",
"tests/**/cypress.config.js",
"tests/**/*.cy.js"
],
"root": true,
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
},
}
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-var-requires": "warn"
}
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/lib
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
4 changes: 2 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
};
};
Loading

0 comments on commit 212c0c9

Please sign in to comment.