This repository was archived by the owner on Aug 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
4dd012f
Feature: New Build Method & Structure Cleanup.
dreadera 69c8f05
Renaming JSX Files to JS.
dreadera d67ed9f
Fixing Up Formatting
dreadera c3c667b
Updated Snapshots from Jest & Added useLocaleNumber Hook.
dreadera ae35c0e
Finished Writing The Tests For the Hook Configuration.
dreadera 04d6ade
Added Currency Component and It's tests with the useLocaleNumber Hook.
dreadera b015fb6
File Format Fix.
dreadera 274ebb8
Export Adjustment.
dreadera 03125fa
Converted the Currency Filter Type To Functional and Added New Tests.
dreadera 5388c9a
New Currency Component with the ability to switch currencies and form…
dreadera 063c916
Bug Fixes for List.js and Table.js
dreadera 0dfcffd
Test Cases Fix for Existing Make Filter.
dreadera e22340f
Update src/hooks/use-locale-number.ts
dreadera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,8 +1,13 @@ | ||
| { | ||
| "presets": ["react","env","stage-0"], | ||
| "env": { | ||
| "test": { | ||
| "plugins": ["require-context-hook"] | ||
| } | ||
| } | ||
| "presets": [ | ||
| "@babel/preset-react", | ||
| [ | ||
| "@babel/preset-env", | ||
| { | ||
| "targets": { | ||
| "esmodules": true | ||
| } | ||
| } | ||
| ] | ||
| ] | ||
| } |
This file contains hidden or 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,41 +1,84 @@ | ||
| { | ||
| "plugins": [ | ||
| "babel" | ||
| ], | ||
| "parser": "babel-eslint", | ||
| "plugins": ["babel", "react", "react-hooks", "@typescript-eslint"], | ||
| "parser": "@typescript-eslint/parser", | ||
| "parserOptions": { | ||
| "ecmaFeatures": { | ||
| "legacyDecorators": true | ||
| } | ||
| }, | ||
| "settings": { | ||
| "react": { | ||
| "version": "detect" | ||
| } | ||
| }, | ||
| "rules": { | ||
| "comma-dangle": ["error", "always-multiline"], | ||
| "space-before-function-paren": ["error", { | ||
| "anonymous": "never", | ||
| "named": "never", | ||
| "asyncArrow": "always" | ||
| }], | ||
| "camelcase": "off", | ||
| "comma-dangle": [ | ||
| "error", | ||
| { | ||
| "arrays": "always-multiline", | ||
| "objects": "always-multiline", | ||
| "imports": "always-multiline", | ||
| "exports": "always-multiline", | ||
| "functions": "never" | ||
| } | ||
| ], | ||
| "space-before-function-paren": [ | ||
| "error", | ||
| { | ||
| "anonymous": "never", | ||
| "named": "never", | ||
| "asyncArrow": "always" | ||
| } | ||
| ], | ||
| "jsx-quotes": ["error", "prefer-double"], | ||
| "no-var": "error", | ||
| "prefer-const": "warn", | ||
|
|
||
| "babel/no-invalid-this": "warn", | ||
| "babel/semi": ["error", "never"], | ||
| "react/prop-types": "warn", | ||
| "new-cap": [ | ||
| "error", | ||
| { | ||
| "newIsCapExceptions": ["api.batch"], | ||
| "capIsNew": false | ||
| } | ||
| ], | ||
| "no-invalid-this": "warn", | ||
| "no-unused-expressions": "error", | ||
| "semi": ["error", "never"], | ||
| "lines-between-class-members": [ | ||
| "error", | ||
| "always", | ||
| { "exceptAfterSingleLine": true } | ||
| ], | ||
| "react/prop-types": "off", | ||
| "react/jsx-handler-names": "off", | ||
| "react/jsx-indent": [ | ||
| "error", | ||
| 2, | ||
| { "checkAttributes": false, "indentLogicalExpressions": true } | ||
| ], | ||
| "react/jsx-pascal-case": ["error", { "allowAllCaps": true }], | ||
| "react/jsx-uses-react": "error", | ||
| "react/jsx-uses-vars": "error", | ||
| "react/no-unused-state": "warn", | ||
| "react/no-access-state-in-setstate": "warn", | ||
| "object-curly-spacing": "off" | ||
| "react-hooks/rules-of-hooks": "error", | ||
| "react-hooks/exhaustive-deps": "warn", | ||
| "object-curly-spacing": "off", | ||
| "multiline-ternary": "off", | ||
| "no-use-before-define": "off" | ||
| }, | ||
| "overrides": [ | ||
| { | ||
| "files": [ "*.test.js", "*.stories.js" ], | ||
| "files": ["*.test.js", "*.stories.js"], | ||
| "rules": { | ||
| "react/prop-types": "off" | ||
| } | ||
| } | ||
| ], | ||
| "extends": ["standard", "standard-react"], | ||
| "env": { | ||
| "browser": true, | ||
| "jest": true, | ||
| "browser": true, | ||
| "jasmine": true | ||
| }, | ||
| "globals": { | ||
| "mapboxgl": true | ||
| } | ||
| } | ||
This file contains hidden or 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,17 +1,15 @@ | ||
| node_modules/ | ||
| dist/ | ||
| demo-site/_site/ | ||
| /cells.js | ||
| /filters.js | ||
| /main.js | ||
| /renderers.js | ||
| /utils.js | ||
| /icons.js | ||
| coverage/ | ||
| .vscode/ | ||
| .DS_Store | ||
|
|
||
| **~ | ||
|
|
||
| bundle-analysis.json | ||
| stats.html | ||
|
|
||
| *.log | ||
|
|
||
| demo-site/.jekyll-cache |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,6 @@ | ||
| { | ||
| "semi": false, | ||
| "singleQuote": true, | ||
| "useTabs": false, | ||
| "tabWidth": 2 | ||
| } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,30 @@ | ||
| // .storybook/main.js | ||
|
|
||
| const path = require('path'); | ||
|
|
||
| // Export a function. Accept the base config as the only param. | ||
| module.exports = { | ||
|
|
||
| stories: ["../src/**/*.stories.js"], | ||
|
|
||
| webpackFinal: async (config, { configType }) => { | ||
| config.module.rules.push({ | ||
| test: /\.(scss|sass|css)$/, | ||
| use: [{ | ||
| loader: 'style-loader' // creates style nodes from JS strings | ||
| }, { | ||
| loader: 'css-loader' // translates CSS into CommonJS | ||
| }, { | ||
| loader: 'resolve-url-loader' // resolve relative urls inside the css files | ||
| },{ | ||
| loader: 'sass-loader?sourceMap' // compiles Sass to CSS | ||
| }], | ||
| include: [ | ||
| path.resolve(__dirname, '../src'), | ||
| path.resolve(__dirname, '../node_modules/@fortawesome'), | ||
| ], | ||
| }); | ||
| // Return the altered config | ||
| return config; | ||
| }, | ||
| } |
This file contains hidden or 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 @@ | ||
| import React from 'react'; | ||
| import "../dist/react-object-list.css" | ||
|
|
||
| export const decorators = [(Story) => <Story/>]; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,15 +1,6 @@ | ||
| module.exports = { | ||
| setupFiles: ['./.jest/jest.setup.js', './.jest/register-context.js'], | ||
| snapshotSerializers: ['enzyme-to-json/serializer'], | ||
| modulePaths: [ | ||
| '.', | ||
| preset: 'ts-jest/presets/js-with-babel', | ||
| setupFilesAfterEnv: [ | ||
| '<rootDir>/setupTests.js', | ||
| ], | ||
| moduleNameMapper: { | ||
| '\\.(css|less|sass)$': '<rootDir>/__mocks__/styleMock.js', | ||
| }, | ||
| collectCoverageFrom: [ | ||
| 'src/**/*.js', | ||
| '!src/**/*.stories.js', | ||
| ], | ||
| testURL: 'http://localhost/', | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it could be worth us creating an
uptick/lint-configpackage to keep all our standard eslint (and prettier) rules in the one place? It'll make it easy for us to have the one, unifieduptickstandard across the board.As a side-thought, this would be nice too - just want to drop the idea of it though:
https://github.com/tclindner/npm-package-json-lint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking the same thing. I think we should all have a standardised version which should be version controlled and then be available via npm :)