-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
Showing
9 changed files
with
1,439 additions
and
1,079 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 |
---|---|---|
@@ -1,20 +1,15 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false |
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,60 +1,58 @@ | ||
module.exports = { | ||
parser: 'babel-eslint', | ||
extends: ['airbnb', 'plugin:jsx-a11y/recommended'], | ||
plugins: ['jest', 'react-hooks', 'jsx-a11y'], | ||
rules: { | ||
'max-len': 0, | ||
'react/forbid-prop-types': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
'no-confusing-arrow': ['error', { allowParens: true }], | ||
'arrow-parens': ['error', 'as-needed'], | ||
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }], | ||
'import/prefer-default-export': 0, | ||
'object-curly-newline': ['error', { consistent: true }], | ||
'implicit-arrow-linebreak': 0, | ||
'operator-linebreak': 0, | ||
'linebreak-style': 0, | ||
'arrow-body-style': 0, | ||
'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks | ||
'react-hooks/exhaustive-deps': 'warn', // Checks effect dependencies | ||
'react/jsx-props-no-spreading': 0, | ||
}, | ||
env: { | ||
'jest/globals': true, | ||
browser: true, | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
'babel-module': {}, | ||
}, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
env: { browser: true, es6: true, node: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
], | ||
globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly' }, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaFeatures: { jsx: true }, | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['react', '@typescript-eslint'], | ||
rules: { | ||
indent: ['error', 2, { SwitchCase: 1 }], | ||
'linebreak-style': ['error', 'unix'], | ||
quotes: ['error', 'single'], | ||
'comma-dangle': ['error', 'always-multiline'], | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/interface-name-prefix': 0, | ||
}, | ||
settings: { react: { version: 'detect' } }, | ||
}, | ||
], | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
extends: [ | ||
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react | ||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
'plugin:react-hooks/recommended', | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module', // Allows for the use of imports | ||
ecmaFeatures: { | ||
jsx: true, // Allows for the parsing of JSX | ||
}, | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use | ||
}, | ||
}, | ||
rules: { | ||
'react/prop-types': 'off', | ||
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }], | ||
// '@typescript-eslint/ban-ts-comment': [{ 'ts-ignore': 'allow-with-description', minimumDescriptionLength: 10 }], | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
singleQuote: true, | ||
}, | ||
], | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
// e.g. "@typescript-eslint/explicit-function-return-type": "off", | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.js', '**/*.jsx'], | ||
plugins: ['jest', 'react-hooks', 'jsx-a11y'], | ||
rules: { | ||
'max-len': 0, | ||
'react/forbid-prop-types': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
'no-confusing-arrow': ['error', { allowParens: true }], | ||
'arrow-parens': ['error', 'as-needed'], | ||
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }], | ||
'import/prefer-default-export': 0, | ||
'object-curly-newline': ['error', { consistent: true }], | ||
'implicit-arrow-linebreak': 0, | ||
'operator-linebreak': 0, | ||
'linebreak-style': 0, | ||
'arrow-body-style': 0, | ||
'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks | ||
'react-hooks/exhaustive-deps': 'warn', // Checks effect dependencies | ||
'react/jsx-props-no-spreading': 0, | ||
}, | ||
}, | ||
], | ||
}; |
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,5 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=lf | ||
|
||
# Ignore any binary files | ||
* binary |
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,9 @@ | ||
module.exports = { | ||
semi: true, | ||
jsxBracketSameLine: false, | ||
trailingComma: 'all', | ||
singleQuote: true, | ||
printWidth: 120, | ||
tabWidth: 2, | ||
arrowParens: 'avoid', | ||
}; |
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 |
---|---|---|
@@ -1,24 +1,41 @@ | ||
{ | ||
"files.associations": { | ||
".editorconfig": "javascriptreact" | ||
}, | ||
"editor.formatOnType": true, | ||
// "eslint.options": {"configFile": "./package.json"}, | ||
"editor.tabSize": 2, | ||
"editor.trimAutoWhitespace": true, | ||
"files.trimTrailingWhitespace": true, | ||
"eslint.nodePath": "./src", | ||
"editor.formatOnSave": false, | ||
"window.zoomLevel": 0, | ||
"workbench.iconTheme": "material-icon-theme", | ||
// "terminal.integrated.fontFamily": "Knack Nerd Font", | ||
"terminal.integrated.fontSize": 13, | ||
"terminal.integrated.shellArgs.osx": [ | ||
"-l" | ||
], | ||
"terminal.integrated.shell.osx": "zsh", | ||
"terminal.integrated.scrollback": 5000, | ||
"editor.fontSize": 13, | ||
// "editor.minimap.enabled": true, | ||
"extensions.autoUpdate": true | ||
} | ||
{ | ||
"files.associations": { | ||
".editorconfig": "javascriptreact" | ||
}, | ||
"editor.formatOnType": true, | ||
// "eslint.options": {"configFile": "./package.json"}, | ||
"editor.tabSize": 2, | ||
"editor.trimAutoWhitespace": true, | ||
"files.trimTrailingWhitespace": true, | ||
"eslint.nodePath": "./src", | ||
"editor.formatOnSave": false, | ||
"window.zoomLevel": 0, | ||
"workbench.iconTheme": "material-icon-theme", | ||
// "terminal.integrated.fontFamily": "Knack Nerd Font", | ||
"terminal.integrated.fontSize": 13, | ||
"terminal.integrated.shellArgs.osx": [ | ||
"-l" | ||
], | ||
"terminal.integrated.shell.osx": "zsh", | ||
"terminal.integrated.scrollback": 5000, | ||
"editor.fontSize": 13, | ||
// "editor.minimap.enabled": true, | ||
"extensions.autoUpdate": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"[javascript]": { | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "vscode.json-language-features" | ||
}, | ||
"prettier.useTabs": 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,29 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"jsx": "react", | ||
"sourceMap": true, | ||
"target": "es5", | ||
"experimentalDecorators": true, | ||
"declaration": false, | ||
"removeComments": true, | ||
"noImplicitReturns": true, | ||
"noUnusedLocals": true, | ||
"outDir": "build", | ||
"lib": [ | ||
"es6", | ||
"es7", | ||
"dom" | ||
], | ||
"baseUrl": "src", | ||
"allowSyntheticDefaultImports": true, | ||
}, | ||
} |
Oops, something went wrong.