Skip to content

Commit

Permalink
Update prettier and eslint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
evercoinx committed Aug 29, 2024
1 parent 81e198d commit 7715d72
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 30 deletions.
41 changes: 20 additions & 21 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,32 @@ module.exports = {
parserOptions: {
project: ["tsconfig.json"],
sourceType: "module",
warnOnUnsupportedTypeScriptVersion: false,
},
ignorePatterns: [
"/lib/**/*", // Ignore built files.
],
plugins: ["@typescript-eslint", "import", "prettier"],
rules: {
quotes: ["error", "double", { avoidEscape: true }],
indent: "off",
"valid-jsdoc": "off",
"quotes": ["error", "double", { avoidEscape: true }],
"indent": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/indent": "off",
"import/no-unresolved": 0,
"quote-props": 0,
"object-curly-spacing": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"max-len": 0,
camelcase: 0,
"require-jsdoc": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/ban-types": 0,
"space-before-function-paren": 0,
"new-cap": 0,
"operator-linebreak": 0,
"prettier/prettier": 2,
"comma-dangle": 0,
"no-tabs": 0,
"comma-spacing": 0,
"no-invalid-this": 0,
"brace-style": 0,
"@typescript-eslint/no-var-requires": "off",
"brace-style": "off",
"camelcase": "off",
"comma-dangle": "off",
"comma-spacing": "off",
"import/no-unresolved": "off",
"max-len": "off",
"new-cap": "off",
"no-invalid-this": "off",
"no-tabs": "off",
"object-curly-spacing": "off",
"operator-linebreak": "off",
"prettier/prettier": "off",
"require-jsdoc": "off",
"space-before-function-paren": "off",
},
};
18 changes: 9 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
"tabWidth": 4,
"useTabs": true,
"singleQuote": false,
"bracketSpacing": true,
"explicitTypes": "always",
"semi": true,
"quoteProps": "as-needed",
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "always",
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": true,
"singleQuote": false,
"bracketSpacing": true,
"explicitTypes": "always"
"parser": "solidity-parse",
"printWidth": 80
}
}
]
],
"plugins": ["prettier-plugin-solidity"]
}

0 comments on commit 7715d72

Please sign in to comment.