react-native-format-currency 0.0.5 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,18 +1,28 @@
1
1
  {
2
2
  "name": "react-native-format-currency",
3
- "version": "0.0.5",
3
+ "version": "1.0.0",
4
4
  "description": "A lightweight international currency formatter for React Native & Expo (iOS and Android).",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "LICENSE",
10
+ "README.md"
11
+ ],
12
+ "sideEffects": false,
13
+ "engines": {
14
+ "node": ">=14.0.0"
15
+ },
7
16
  "scripts": {
8
17
  "build": "tsc -p tsconfig-build.json",
9
18
  "test": "mocha --reporter spec",
19
+ "benchmark": "node test/benchmark.js",
10
20
  "lint": "eslint . --ext .ts --ext .tsx",
11
21
  "lint-fix": "eslint . --ext .ts --ext .tsx --fix"
12
22
  },
13
23
  "repository": "git+https://github.com/AwesomeLabs/react-native-format-currency.git",
14
24
  "author": "Awesome Labs (https://isjustawesome.com)",
15
- "license": "ISC",
25
+ "license": "MIT",
16
26
  "keywords": [
17
27
  "react-native",
18
28
  "react native",
@@ -28,23 +38,23 @@
28
38
  },
29
39
  "homepage": "https://github.com/AwesomeLabs/react-native-format-currency#readme",
30
40
  "devDependencies": {
31
- "@types/node": "^16.9.0",
32
- "@typescript-eslint/eslint-plugin": "^5.31.0",
33
- "@typescript-eslint/parser": "^5.31.0",
34
- "chai": "^4.3.4",
35
- "eslint": "^8.20.0",
41
+ "@types/node": "^25.0.3",
42
+ "@typescript-eslint/eslint-plugin": "^8.52.0",
43
+ "@typescript-eslint/parser": "^8.52.0",
44
+ "chai": "^4.5.0",
45
+ "eslint": "^9.39.2",
36
46
  "eslint-config-airbnb": "^19.0.4",
37
- "eslint-config-airbnb-typescript": "^17.0.0",
38
- "eslint-config-prettier": "^8.5.0",
47
+ "eslint-config-airbnb-typescript": "^18.0.0",
48
+ "eslint-config-prettier": "^10.1.8",
39
49
  "eslint-plugin-import": "^2.26.0",
40
50
  "eslint-plugin-jsx-a11y": "^6.6.1",
41
- "eslint-plugin-prettier": "^4.2.1",
51
+ "eslint-plugin-prettier": "^5.5.4",
42
52
  "eslint-plugin-react": "^7.30.1",
43
- "eslint-plugin-react-hooks": "^4.6.0",
44
- "eslint-plugin-react-native": "^4.0.0",
45
- "mocha": "^9.1.1",
46
- "prettier": "^2.7.1",
47
- "typescript": "^4.4.2"
53
+ "eslint-plugin-react-hooks": "^7.0.1",
54
+ "eslint-plugin-react-native": "^5.0.0",
55
+ "mocha": "^11.7.5",
56
+ "prettier": "^3.7.4",
57
+ "typescript": "^5.9.3"
48
58
  },
49
59
  "dependencies": {}
50
- }
60
+ }
package/.eslintrc.js DELETED
@@ -1,49 +0,0 @@
1
- module.exports = {
2
- parser: "@typescript-eslint/parser",
3
- parserOptions: {
4
- ecmaVersion: "latest",
5
- project: ["./tsconfig.json", "./tsconfig-build.json"],
6
- },
7
- plugins: [
8
- "prettier", // added so we can access the rule to turn on warnings.
9
- ],
10
- extends: [
11
- "airbnb", // https://github.com/airbnb/javascript
12
- "airbnb/hooks", // https://github.com/airbnb/javascript
13
- "airbnb-typescript", // https://github.com/iamturns/eslint-config-airbnb-typescript
14
- "plugin:react-native/all", // https://github.com/intellicode/eslint-plugin-react-native
15
- "prettier",
16
- ],
17
- rules: {
18
- "prettier/prettier": "warn", // show what's going to be fixed with prettier.
19
- "import/prefer-default-export": "off",
20
- "import/extensions": "off", // https://stackoverflow.com/a/59268871
21
- "import/no-extraneous-dependencies": [
22
- "error",
23
- { devDependencies: ["**/*test.*"] },
24
- ], // allow devDependency imports in test files. https://stackoverflow.com/a/55863857/25197
25
-
26
- // ::: TypeScript
27
- "@typescript-eslint/no-unused-vars": ["off", { ignoreRestSiblings: true }], // allow unused variables when using a rest property. https://stackoverflow.com/q/56151661/25197
28
-
29
- // ::: ESlint
30
- // 'arrow-body-style': 'off', // Allow commented out console logs in arrow bodies.
31
- // camelcase: 'off', // We're forced to use snake_case for graphql and Auth0 response.
32
- // 'global-require': 'off', // Allow inline requires() for Expo asset imports.
33
- // 'no-param-reassign': ['error', { props: false }], // Allow param reassignment because we use it for easy-peasy state. https://stackoverflow.com/a/42399879
34
- // 'no-unreachable': 'warn', // turned off in tsconfig.json and added here so code doesn't get deleted by --autofix command.
35
- // 'consistent-return': 'off', // we allow multiple returns via "guard statements". https://stackoverflow.com/q/36707/25197
36
- // 'no-underscore-dangle': ['error', { allow: ['_forTesting'] }], // allow for exporting to unit tests. https://stackoverflow.com/a/65422568/25197
37
- // 'no-restricted-exports': 'off', // TODO: turn this back on and refactor default exports.
38
-
39
- // // ::: React
40
- // 'react/function-component-definition': ['error', { namedComponents: 'arrow-function' }], // use named arrow functions for components. https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/function-component-definition.md
41
- // 'react/require-default-props': 'off', // Waiting on setting once this is settled. https://github.com/reactjs/rfcs/pull/107
42
- // 'react/prop-types': 'off', // Let Typescript handle all type issues.
43
- // 'react/jsx-props-no-spreading': 'off', // Meant to protect against unwanted/unintended props are being passed to the component but we do it all the time.
44
-
45
- // // ::: React Native
46
- // 'react-native/no-raw-text': 'off', // NativeBase has components that accept raw text.
47
- // 'react-native/no-inline-styles': 'off', // NativeBase is only inline styling.
48
- },
49
- };