Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ site-fast:
clean:
cd site; npx gatsby clean && npm start; cd ..

lint:
cd site; npx eslint .; cd ..

#-----------------------------------------------------------------------------
# Docker-based Builds
#-----------------------------------------------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions site/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"babel-preset-gatsby",
{
"targets": {
"browsers": [">0.25%", "not dead"]
}
}
]
]
}
18 changes: 18 additions & 0 deletions site/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
node_modules/
**/*.test.js
src/utils/
.cache/
.github/
assets/
public/
.babelrc
.env.development
CNAME
CODE_OF_CONDUCT.md
CODEOWNERS
font-preload-cache.json
LICENSE
Makefile
README.md
package.json
package-lock.json
98 changes: 98 additions & 0 deletions site/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
module.exports = {

"env": {
"browser": true,
"es6": true,
"node": true,
"amd": true
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"array-bracket-spacing": ["error", "never"],
"comma-style": ["error"],
"arrow-spacing": [
"error",
{
"after": true,
"before": true
}
],
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs"
],
"jsx-quotes": ["error", "prefer-double"],
"keyword-spacing": "error",
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true,
}],
"no-unused-vars": [
"warn",
{
"varsIgnorePattern": "React"
}
],
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"react/display-name": 0,
"react/prop-types": 0,
"react/no-unescaped-entities": [0],
"react/jsx-no-duplicate-props": [0],
"indent": [
"error", 2, {
"FunctionExpression": { "parameters": "first" },
"FunctionDeclaration": { "parameters": "first" },
"MemberExpression": 1,
"SwitchCase": 1,
"outerIIFEBody": 0,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
ignoredNodes: ["TemplateLiteral"]
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"strict": 0,
"valid-typeof": 0,
"space-unary-ops": [
1, {
"words": true,
"nonwords": false
}
],
"space-infix-ops": [
"error"
]
}
};
Loading
Loading