@bigbinary/neeto-editor 0.3.37 → 0.3.40
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/.browserslistrc +1 -0
- package/.eslint-rules/custom.js +1 -0
- package/.eslint-rules/globals.js +11 -0
- package/.eslint-rules/helpers/index.js +52 -0
- package/.eslint-rules/imports/enforced.js +20 -0
- package/.eslint-rules/imports/order.js +65 -0
- package/.eslint-rules/overrides.js +24 -0
- package/.eslint-rules/promise.js +8 -0
- package/.eslint-rules/react.js +36 -0
- package/.eslintignore +12 -0
- package/.eslintrc.js +89 -12
- package/.node-version +1 -0
- package/.nvmrc +1 -0
- package/.prettierrc.js +16 -0
- package/.vscode/settings.json +6 -0
- package/babel.config.js +15 -0
- package/build/index.js +42 -32
- package/package.json +31 -13
- package/webpack.config.js +6 -5
- package/webpack.dev.config.js +3 -2
- package/.babelrc +0 -9
- package/.prettierrc +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-editor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.40",
|
|
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",
|
|
@@ -93,24 +109,26 @@
|
|
|
93
109
|
"build": "NODE_ENV=production webpack --config webpack.dev.config.js",
|
|
94
110
|
"webpack-build": "NODE_ENV=production webpack --mode production"
|
|
95
111
|
},
|
|
112
|
+
"lint-staged": {
|
|
113
|
+
"{lib,example}/**/*.{js,jsx,json}": [
|
|
114
|
+
"prettier --write",
|
|
115
|
+
"eslint --fix"
|
|
116
|
+
],
|
|
117
|
+
"{package.json,.eslintrc.js,.prettierrc.js}": [
|
|
118
|
+
"prettier --write",
|
|
119
|
+
"eslint --fix"
|
|
120
|
+
],
|
|
121
|
+
".eslint-rules/**/*": [
|
|
122
|
+
"prettier --write",
|
|
123
|
+
"eslint --fix"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
96
126
|
"eslintConfig": {
|
|
97
127
|
"extends": [
|
|
98
128
|
"react-app",
|
|
99
129
|
"react-app/jest"
|
|
100
130
|
]
|
|
101
131
|
},
|
|
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
132
|
"proxy": "http://localhost:3000",
|
|
115
133
|
"bugs": {
|
|
116
134
|
"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
|
|
42
|
+
path: `${__dirname}/build`,
|
|
42
43
|
filename: "index.js",
|
|
43
44
|
library: "neeto-editor",
|
|
44
45
|
libraryTarget: "umd",
|
|
@@ -83,7 +84,7 @@ module.exports = [
|
|
|
83
84
|
minimizer: [new CssMinimizerPlugin()],
|
|
84
85
|
},
|
|
85
86
|
output: {
|
|
86
|
-
path: __dirname
|
|
87
|
+
path: `${__dirname}/dist`,
|
|
87
88
|
},
|
|
88
89
|
},
|
|
89
90
|
];
|
package/webpack.dev.config.js
CHANGED
|
@@ -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
|
|
49
|
+
path: `${__dirname}/build`,
|
|
49
50
|
publicPath: "/",
|
|
50
51
|
},
|
|
51
52
|
devServer: {
|
package/.babelrc
DELETED
package/.prettierrc
DELETED