@bigbinary/neeto-editor 0.3.38 → 0.3.41

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-editor",
3
- "version": "0.3.38",
3
+ "version": "0.3.41",
4
4
  "main": "./build/index.js",
5
5
  "description": "Neeto Editor is the library that drives the rich text experience in all Neeto products built at BigBinary",
6
6
  "keywords": [
@@ -56,6 +56,7 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@babel/core": "^7.13.15",
59
+ "@babel/eslint-parser": "^7.17.0",
59
60
  "@babel/plugin-proposal-class-properties": "^7.13.0",
60
61
  "@babel/plugin-transform-runtime": "^7.16.5",
61
62
  "@babel/preset-env": "^7.13.15",
@@ -65,14 +66,29 @@
65
66
  "css-loader": "^4.3.0",
66
67
  "css-minimizer-webpack-plugin": "1.3.0",
67
68
  "dotenv": "^10.0.0",
69
+ "eslint": "^8.12.0",
70
+ "eslint-config-prettier": "^8.5.0",
71
+ "eslint-plugin-cypress": "^2.12.1",
72
+ "eslint-plugin-import": "^2.25.4",
73
+ "eslint-plugin-jam3": "^0.2.3",
74
+ "eslint-plugin-json": "^3.1.0",
75
+ "eslint-plugin-prettier": "^4.0.0",
76
+ "eslint-plugin-promise": "^6.0.0",
77
+ "eslint-plugin-react": "^7.29.4",
78
+ "eslint-plugin-react-hooks": "4.4.0",
79
+ "eslint-plugin-unused-imports": "^2.0.0",
68
80
  "file-loader": "^6.1.1",
69
81
  "html-loader": "^1.3.1",
70
82
  "html-webpack-plugin": "^4.5.0",
83
+ "husky": "7.0.4",
84
+ "lint-staged": "^12.4.1",
71
85
  "mini-css-extract-plugin": "0.9.0",
72
86
  "postcss": "^7",
73
87
  "postcss-import": "^12.0.1",
74
88
  "postcss-loader": "^4.0.3",
75
89
  "postcss-preset-env": "^6.7.0",
90
+ "prettier": "^2.6.1",
91
+ "prettier-plugin-tailwindcss": "^0.1.8",
76
92
  "react": "17.0.2",
77
93
  "react-dom": "17.0.2",
78
94
  "react-scripts": "4.0.3",
@@ -91,7 +107,22 @@
91
107
  "scripts": {
92
108
  "start": "NODE_ENV=development webpack-dev-server --open --mode development --config webpack.dev.config.js",
93
109
  "build": "NODE_ENV=production webpack --config webpack.dev.config.js",
94
- "webpack-build": "NODE_ENV=production webpack --mode production"
110
+ "webpack-build": "NODE_ENV=production webpack --mode production",
111
+ "prepare": "husky install"
112
+ },
113
+ "lint-staged": {
114
+ "{lib,example}/**/*.{js,jsx,json}": [
115
+ "prettier --write",
116
+ "eslint --fix"
117
+ ],
118
+ "{package.json,.eslintrc.js,.prettierrc.js}": [
119
+ "prettier --write",
120
+ "eslint --fix"
121
+ ],
122
+ ".eslint-rules/**/*": [
123
+ "prettier --write",
124
+ "eslint --fix"
125
+ ]
95
126
  },
96
127
  "eslintConfig": {
97
128
  "extends": [
@@ -99,18 +130,6 @@
99
130
  "react-app/jest"
100
131
  ]
101
132
  },
102
- "browserslist": {
103
- "production": [
104
- ">0.2%",
105
- "not dead",
106
- "not op_mini all"
107
- ],
108
- "development": [
109
- "last 1 chrome version",
110
- "last 1 firefox version",
111
- "last 1 safari version"
112
- ]
113
- },
114
133
  "proxy": "http://localhost:3000",
115
134
  "bugs": {
116
135
  "url": "https://github.com/bigbinary/neeto-editor-tiptap/issues"
package/webpack.config.js CHANGED
@@ -1,8 +1,9 @@
1
- const PeerDepsExternalsPlugin = require("peer-deps-externals-webpack-plugin");
2
- const MiniCssExtractPlugin = require("mini-css-extract-plugin");
3
- const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
4
1
  const path = require("path");
5
2
 
3
+ const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
4
+ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
5
+ const PeerDepsExternalsPlugin = require("peer-deps-externals-webpack-plugin");
6
+
6
7
  module.exports = [
7
8
  {
8
9
  entry: "./lib/index.js",
@@ -38,7 +39,7 @@ module.exports = [
38
39
  ],
39
40
  },
40
41
  output: {
41
- path: __dirname + "/build",
42
+ path: `${__dirname}/build`,
42
43
  filename: "index.js",
43
44
  library: "neeto-editor",
44
45
  libraryTarget: "umd",
@@ -53,6 +54,7 @@ module.exports = [
53
54
  constants: path.resolve(__dirname, "/lib/constants"),
54
55
  utils: path.resolve(__dirname, "/lib/utils"),
55
56
  neetoicons: "@bigbinary/neeto-icons",
57
+ lib: path.resolve(__dirname, "/lib"),
56
58
  },
57
59
  },
58
60
  },
@@ -83,7 +85,7 @@ module.exports = [
83
85
  minimizer: [new CssMinimizerPlugin()],
84
86
  },
85
87
  output: {
86
- path: __dirname + "/dist",
88
+ path: `${__dirname}/dist`,
87
89
  },
88
90
  },
89
91
  ];
@@ -1,5 +1,6 @@
1
- const HtmlWebPackPlugin = require("html-webpack-plugin");
2
1
  const path = require("path");
2
+
3
+ const HtmlWebPackPlugin = require("html-webpack-plugin");
3
4
  const webpack = require("webpack");
4
5
 
5
6
  module.exports = {
@@ -45,7 +46,7 @@ module.exports = {
45
46
  ],
46
47
  },
47
48
  output: {
48
- path: __dirname + "/build",
49
+ path: `${__dirname}/build`,
49
50
  publicPath: "/",
50
51
  },
51
52
  devServer: {
@@ -69,6 +70,7 @@ module.exports = {
69
70
  constants: path.resolve(__dirname, "/lib/constants"),
70
71
  utils: path.resolve(__dirname, "/lib/utils"),
71
72
  neetoicons: "@bigbinary/neeto-icons",
73
+ lib: path.resolve(__dirname, "/lib"),
72
74
  },
73
75
  },
74
76
  };
package/.babelrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "presets": ["@babel/preset-env", "@babel/preset-react"],
3
- "plugins": ["@babel/plugin-proposal-class-properties"],
4
- "env": {
5
- "production": {
6
- "plugins": ["@babel/plugin-transform-runtime"]
7
- }
8
- }
9
- }
package/.prettierrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "tabWidth": 2,
3
- "useTabs": false
4
- }