-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* * add .editorconfig * fix linting, extend from pixi eslint config and add react linter * fix TS configuration * install prettier * add automatic react transform * apply linting/prettier to codebase * tweak things * add nvmrc * add husky lint-staged * update PR GH actions * fix type checking and remove unnecessary React imports / disabled eslint rules * ignore eslint cache * remove prettier:check as it doesn't like the final eslint rules * switch back to 125 length and 4 indent --------- Co-authored-by: Alex Prokop <[email protected]>
- Loading branch information
Showing
81 changed files
with
33,499 additions
and
32,534 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 @@ | ||
# This file is for unifying the coding style for different editors and IDEs. | ||
# More information at http://EditorConfig.org | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 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,31 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['@pixi/eslint-config', 'plugin:react/recommended', 'plugin:react/jsx-runtime'], | ||
parserOptions: { | ||
project: ['tsconfig.eslint.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
settings: { | ||
jsdoc: { | ||
mode: 'typescript', | ||
tagNamePreference: { | ||
method: 'method', | ||
function: 'function', | ||
extends: 'extends', | ||
typeParam: 'typeParam', | ||
api: 'api', | ||
}, | ||
}, | ||
}, | ||
ignorePatterns: ['build', 'node_modules'], | ||
rules: { | ||
'no-empty-function': 0, | ||
'no-prototype-builtins': 0, | ||
'spaced-comment': [1, 'always', { markers: ['/'] }], | ||
'@typescript-eslint/triple-slash-reference': [1, { path: 'always' }], | ||
'@typescript-eslint/consistent-type-imports': [1, { disallowTypeAnnotations: false }], | ||
'@typescript-eslint/no-parameter-properties': 1, | ||
'@typescript-eslint/type-annotation-spacing': 1, | ||
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }], | ||
}, | ||
}; |
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
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 |
---|---|---|
|
@@ -20,3 +20,4 @@ yarn-debug.log* | |
yarn-error.log* | ||
.vscode | ||
.idea | ||
.eslintcache |
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 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 @@ | ||
v18 |
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,12 @@ | ||
**/.docusaurus | ||
**/.git | ||
**/.github | ||
**/.idea | ||
**/node_modules | ||
*.frag | ||
*.vert | ||
/build | ||
|
||
# TODO: just temporarily ignore these | ||
/blog | ||
/docs |
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 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"useTabs": false, | ||
"tabWidth": 4, | ||
"printWidth": 125 | ||
} |
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,3 +1,11 @@ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')] | ||
} | ||
presets: [ | ||
require.resolve('@docusaurus/core/lib/babel/preset'), | ||
[ | ||
require.resolve('@babel/preset-react'), | ||
{ | ||
runtime: 'automatic', | ||
}, | ||
], | ||
], | ||
}; |
Oops, something went wrong.