-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESLinting and default Chart coloring support (for themes)
Added defaultProps back Fix it Spacing
- Loading branch information
1 parent
5f70998
commit 103bebc
Showing
15 changed files
with
2,603 additions
and
543 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,2 @@ | ||
node_modules/ | ||
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"extends": [ | ||
"airbnb", | ||
"prettier", | ||
"airbnb/hooks", | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"env": { | ||
"browser": true | ||
}, | ||
"plugins": ["prettier", "@typescript-eslint", "react-hooks"], | ||
"root": true, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"alias": { | ||
"map": [ | ||
["@", "./src"], | ||
["@public", "./public"] | ||
] | ||
}, | ||
"extensions": [".js", ".jsx", ".ts", ".tsx"] | ||
} | ||
} | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"react/jsx-uses-react": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"react/jsx-filename-extension": [ | ||
1, | ||
{ | ||
"extensions": [".js", ".ts", ".tsx"] | ||
} | ||
], | ||
"import/prefer-default-export": "off", | ||
"react/no-find-dom-node": 0, | ||
"class-methods-use-this": "off", | ||
"jsx-a11y/anchor-is-valid": [ | ||
"error", | ||
{ | ||
"components": ["Link"], | ||
"specialLink": ["to", "hrefLeft", "hrefRight"], | ||
"aspects": ["noHref", "invalidHref", "preferButton"] | ||
} | ||
], | ||
"import/extensions": "off", | ||
"no-plusplus": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-use-before-define": "error", | ||
"no-shadow": "off", | ||
"@typescript-eslint/no-shadow": "error", | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks | ||
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies | ||
"react/jsx-props-no-spreading": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"import/no-unresolved": "off", | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"patterns": ["@material-ui/*/*/*", "!@material-ui/core/test-utils/*"] | ||
} | ||
], | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"endOfLine": "auto" | ||
} | ||
] | ||
} | ||
} |
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,87 @@ | ||
# Logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-lock.yaml* | ||
**/log | ||
**/logs | ||
|
||
# Runtime data | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
**/coverage | ||
**/analysis | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
**/build | ||
**/dist | ||
|
||
# Dependency directories | ||
**/node_modules | ||
**/jspm_packages | ||
**/.pnp | ||
.pnp.js | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# next.js build output | ||
.next | ||
|
||
# OS X temporary files | ||
.DS_Store | ||
|
||
# Rush temporary files | ||
**/common/deploy | ||
common/autoinstallers/*/.npmrc | ||
common/config/rush/pnpm-lock.yaml | ||
**/.rush/temp/ | ||
|
||
# Common toolchain intermediate files | ||
**/lib | ||
**/temp | ||
|
||
.idea/ | ||
.github/ | ||
|
||
rush.json | ||
common/ |
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 @@ | ||
{ | ||
"printWidth": 140, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"bracketSpacing": true, | ||
"semi": true, | ||
"arrowParens": "always", | ||
"endOfLine": "lf" | ||
} |
Oops, something went wrong.