forked from osutcj/ce-spun-studentii
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request osutcj#121 from osutcj/release/1.0.0
Release/1.0.0
- Loading branch information
Showing
50 changed files
with
16,200 additions
and
882 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,10 @@ | ||
/.firebase | ||
node_modules | ||
assets | ||
/.husky | ||
/.github | ||
/.vscode | ||
/.idea | ||
dist | ||
|
||
|
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,27 +1,18 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
'plugin:react/recommended', | ||
'airbnb', | ||
'airbnb-typescript', | ||
'plugin:prettier/recommended', | ||
], | ||
extends: ['plugin:prettier/recommended'], | ||
// extends: ['plugin:prettier/recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended'] | ||
// Normally, we would use the above line, but we are using just prettier for now. We will add the other plugins later. | ||
ignorePatterns: ['lint-staged.config.js'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
jsx: true | ||
}, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
plugins: ['react', '@typescript-eslint'], | ||
rules: { | ||
'react/jsx-filename-extension': [ | ||
1, | ||
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] }, | ||
], | ||
}, | ||
ecmaVersion: 2021, | ||
project: './tsconfig.json' | ||
} | ||
}; |
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,8 @@ | ||
command_exists() { | ||
command -v "$1" >/dev/null 2>&1 | ||
} | ||
|
||
# Workaround for Windows 10, Git Bash and Yarn | ||
if command_exists winpty && test -t 1; then | ||
exec </dev/tty | ||
fi |
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 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file was deleted.
Oops, something went wrong.
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 = { | ||
singleQuote: true, | ||
arrowParens: 'always', | ||
trailingComma: 'none', | ||
printWidth: 100, | ||
tabWidth: 2 | ||
}; |
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,16 @@ | ||
module.exports = { | ||
'**/*.{js,jsx,ts,tsx}': (filenames) => [ | ||
`npx eslint --fix ${filenames | ||
.map((filename) => `"${filename}"`) | ||
.join(' ')}`, | ||
], | ||
'**/*.(md|json)': (filenames) => | ||
`npx prettier --write ${filenames | ||
.map((filename) => `"${filename}"`) | ||
.join(' ')}`, | ||
'src/translations/*.(json)': (filenames) => [ | ||
`npx eslint --fix ${filenames | ||
.map((filename) => `"${filename}"`) | ||
.join(' ')}`, | ||
], | ||
}; |
Oops, something went wrong.