Skip to content

Commit

Permalink
Adding prettier to deps along with a basic config
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-gade committed Oct 30, 2023
1 parent 9e683e4 commit adfb88c
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 15 deletions.
28 changes: 14 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"ignorePatterns": ["/_site"],
"extends": "eslint-config-airbnb-base",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"extends": ["eslint-config-airbnb-base", "prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"no-param-reassign": ["error", {"props": false}],
"no-param-reassign": ["error", { "props": false }],
"quotes": ["error", "single"],
"no-iterator": [ "off" ],
"no-return-await": [ "off" ]
}
"no-iterator": ["off"],
"no-return-await": ["off"]
}
}
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 2
}
42 changes: 42 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
"federalist": "npm run build",
"lint": "eslint . --config .eslintrc.json",
"pa11y-ci:sitemap": "sleep 10; pa11y-ci --sitemap http://localhost:8080/sitemap.xml --sitemap-exclude \"/*.pdf\" --sitemap-exclude \"/admin\" --sitemap-find \"^/\" --sitemap-replace \"http://localhost:8080/\"",
"pa11y-ci:sitemap-agile": "sleep 10; pa11y-ci --sitemap http://localhost:8080/sitemap.xml --sitemap-exclude \"/*.pdf\" --sitemap-exclude \"/admin\" --sitemap-find \"^/agile\" --sitemap-replace \"http://localhost:8080/\"",
"serve": "npx @11ty/eleventy --serve",
"start": "npx @11ty/eleventy --serve",
"test": "echo \"Error: no test specified\" && exit 1",
"test:links": "npx check-html-links _site --ignore-link-pattern '**/TODO/' 2>&1 | tee /dev/stderr | grep ✅",
"test:links-internal": "npx check-html-links _site --ignore-link-pattern '**/TODO/'",
"test:html-validation": "html-validate _site/**/*.html",
"test:pa11y-ci": "npx start-server-and-test start 8080 pa11y-ci:sitemap"
"test:pa11y-ci": "npx start-server-and-test start 8080 pa11y-ci:sitemap-agile"
},
"author": "",
"license": "CC0-1.0",
Expand All @@ -39,6 +40,7 @@
"chokidar-cli": "^3.0.0",
"eleventy-plugin-svg-sprite": "^1.3.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"html-validate": "^8.7.0",
"js-yaml": "^4.1.0",
Expand All @@ -51,6 +53,7 @@
"pa11y-ci": "^2.4.2",
"postcss": "^8.4.31",
"postcss-cli": "^9.1.0",
"prettier": "3.0.3",
"rimraf": "^3.0.2",
"start-server-and-test": "^2.0.1"
},
Expand Down

0 comments on commit adfb88c

Please sign in to comment.