Skip to content

Commit

Permalink
rm dangle comma
Browse files Browse the repository at this point in the history
  • Loading branch information
peersky committed Nov 19, 2024
1 parent 3dc02f7 commit a68e731
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
}
}
],
"plugins": ["prettier-plugin-solidity"]
"plugins": ["prettier-plugin-solidity"],
"trailingComma": "none"
}
17 changes: 9 additions & 8 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
allConfig: js.configs.all
});

export default [
{
ignores: ["deployments/", "coverage/**", "docs/templates/", "**/node_modules/"],
ignores: ["deployments/", "coverage/**", "docs/templates/", "**/node_modules/"]
},
...compat.extends(
"eslint:recommended",
"plugin:promise/recommended",
"plugin:prettier/recommended", // Add Prettier recommended config
"prettier",
"prettier"
),
{
plugins: {
promise,
prettier, // Add Prettier plugin
prettier // Add Prettier plugin
},
languageOptions: {
globals: {
Expand All @@ -38,14 +38,15 @@ export default [
artifacts: "readonly",
contract: "readonly",
assert: "readonly",
web3: "readonly",
web3: "readonly"
},
parser: tsParser,
parser: tsParser
},
rules: {
"no-unused-vars": "warn",
"prettier/prettier": "error", // Add Prettier as an ESLint rule
"comma-dangle": "off"
},
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
},
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}
];

0 comments on commit a68e731

Please sign in to comment.