Skip to content

Commit

Permalink
Update ESLint and Prettier configs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 15, 2023
1 parent 223a094 commit 4308e86
Show file tree
Hide file tree
Showing 6 changed files with 718 additions and 581 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": ["plugin:jsdoc/recommended", "standard", "prettier"],
"plugins": ["jsdoc", "prettier"],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"prettier/prettier": ["error"]
}
}
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

20 changes: 20 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"overrides": [
{
"files": "*.md",
"options": {
"embeddedLanguageFormatting": "off"
}
},
{
"files": "*.scss",
"options": {
"singleQuote": false
}
}
]
}
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-gds/scss"
}
Loading

0 comments on commit 4308e86

Please sign in to comment.