-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29a091a
commit e8e3160
Showing
6 changed files
with
65 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ["@thesis-co"], | ||
env: { | ||
browser: true, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: lint-js | ||
name: "lint typescript and javascript" | ||
entry: /usr/bin/env npx eslint | ||
files: '\.jsx?$|\.tsx?$' | ||
language: script | ||
description: "Checks JS/TS code according to the package's linter configuration" | ||
- repo: local | ||
hooks: | ||
- id: lint-config | ||
name: "lint config files" | ||
entry: /usr/bin/env npx prettier -c | ||
files: '\.json$|\.yaml$|\.toml$|\.yml$' | ||
language: script | ||
description: "Checks config files according to the package's linter configuration" | ||
- repo: local | ||
hooks: | ||
- id: lint-docs | ||
name: "lint documentation files" | ||
entry: /usr/bin/env npx prettier -c | ||
files: '\.md$' | ||
language: script | ||
description: "Checks documentation files according to the package's linter configuration" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.cache | ||
package.json | ||
package-lock.json | ||
public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": [".eslintrc.js", "**/*.js", "**/*.ts", "**/*.tsx"], | ||
"exclude": ["node_modules"] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "esnext", | ||
"jsx": "preserve", | ||
"lib": ["dom", "esnext"], | ||
"declaration": false, | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"jsx": "react-jsx", | ||
"strict": true, | ||
"resolveJsonModule": true, | ||
"noEmit": true, | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"noUnusedLocals": false, | ||
"baseUrl": "./src" | ||
}, | ||
"exclude": ["node_modules", "public", ".cache"] | ||
"noImplicitOverride": true | ||
} | ||
} |