-
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.
- Loading branch information
1 parent
4894581
commit c733292
Showing
9 changed files
with
203 additions
and
51 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
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,14 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const prettierOptions = JSON.parse( | ||
fs.readFileSync(path.resolve(__dirname, '.prettierrc'), 'utf8'), | ||
); | ||
|
||
module.exports = { | ||
parser: 'babel-eslint', | ||
extends: ['airbnb', 'prettier', 'prettier/react'], | ||
plugins: ['prettier', 'react', 'react-hooks', 'jsx-a11y'], | ||
env: { | ||
jest: true, | ||
browser: true, | ||
node: true, | ||
es6: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
rules: { | ||
'prettier/prettier': ['error', prettierOptions], | ||
'arrow-body-style': [2, 'as-needed'], | ||
'class-methods-use-this': 0, | ||
'import/imports-first': 0, | ||
'import/newline-after-import': 0, | ||
'import/no-dynamic-require': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
'import/no-named-as-default': 0, | ||
'import/no-unresolved': 2, | ||
'import/no-webpack-loader-syntax': 0, | ||
'import/prefer-default-export': 0, | ||
indent: [ | ||
2, | ||
2, | ||
{ | ||
SwitchCase: 1, | ||
}, | ||
], | ||
'jsx-a11y/aria-props': 2, | ||
'jsx-a11y/heading-has-content': 0, | ||
'jsx-a11y/label-has-associated-control': [ | ||
2, | ||
{ | ||
// NOTE: If this error triggers, either disable it or add | ||
// your custom components, labels and attributes via these options | ||
// See https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md | ||
controlComponents: ['Input'], | ||
}, | ||
], | ||
'jsx-a11y/label-has-for': 0, | ||
'jsx-a11y/mouse-events-have-key-events': 2, | ||
'jsx-a11y/role-has-required-aria-props': 2, | ||
'jsx-a11y/role-supports-aria-props': 2, | ||
'max-len': 0, | ||
'newline-per-chained-call': 0, | ||
'no-confusing-arrow': 0, | ||
'no-console': 1, | ||
'no-unused-vars': 2, | ||
'no-use-before-define': 0, | ||
'prefer-template': 2, | ||
'react/destructuring-assignment': 0, | ||
'react-hooks/rules-of-hooks': 'error', | ||
'react/jsx-closing-tag-location': 0, | ||
'react/forbid-prop-types': 0, | ||
'react/jsx-first-prop-new-line': [2, 'multiline'], | ||
'react/jsx-filename-extension': 0, | ||
'react/jsx-no-target-blank': 0, | ||
'react/jsx-uses-vars': 2, | ||
'react/require-default-props': 0, | ||
'react/require-extension': 0, | ||
'react/self-closing-comp': 0, | ||
'react/sort-comp': 0, | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
webpack: { | ||
config: './internals/webpack/webpack.prod.babel.js', | ||
}, | ||
}, | ||
}, | ||
}; |
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 @@ | ||
build/ | ||
node_modules/ | ||
internals/generators/ | ||
internals/scripts/ | ||
package-lock.json | ||
yarn.lock | ||
package.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
h1 { | ||
font-family: "Helvetica Neue"; | ||
font-weight: bold; | ||
font-size: 30px; | ||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@900&display=swap'); | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: 'Inter', sans-serif; | ||
} |
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