Skip to content

Commit ad7f9a2

Browse files
Merge pull request #13 from mindfiredigital/features/ci-cd-pipeline
Features/ci cd pipeline
2 parents d09ef6a + f2043da commit ad7f9a2

File tree

5 files changed

+25
-21
lines changed

5 files changed

+25
-21
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

component/src/components/htmlEditor/HtmlEditor.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react/display-name */
12
// index.jsx
23

34
import React, { useImperativeHandle, forwardRef } from "react";
@@ -11,13 +12,13 @@ const HtmlEditorContent = forwardRef(({ features, height }, ref) => {
1112

1213
useImperativeHandle(ref, () => ({
1314
getHtml,
14-
getJson
15+
getJson,
1516
}));
1617

1718
return (
1819
<div className="editor-container">
1920
<Toolbar features={features} />
20-
<Editor height={height}/>
21+
<Editor height={height} />
2122
</div>
2223
);
2324
});
@@ -28,4 +29,4 @@ const HtmlEditor = forwardRef((props, ref) => (
2829
</EditorProvider>
2930
));
3031

31-
export default HtmlEditor;
32+
export default HtmlEditor;

eslint.config.mjs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
import globals from "globals";
22
import pluginReact from "eslint-plugin-react";
33

4-
54
export default [
6-
{files: ["**/*.{js,mjs,cjs,jsx}"]},
7-
{languageOptions: { globals: globals.browser }},
5+
{
6+
ignores: [
7+
"**/node_modules/**",
8+
"**/commitlint.config.js",
9+
"**/.github/**",
10+
"**/component/src/assets/icon.jsx",
11+
],
12+
},
13+
{ files: ["**/*.{js,mjs,cjs,jsx}"] },
14+
{ languageOptions: { globals: globals.browser } },
815
pluginReact.configs.flat.recommended,
9-
];
16+
{
17+
rules: {
18+
"react/prop-types": "off",
19+
},
20+
},
21+
];

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mindfiredigital/react-text-igniter",
3-
"version": "1.0.0",
3+
"version": "1.0.0-development",
44
"publishConfig": {
55
"registry": "https://registry.npmjs.org/",
66
"access": "public"
@@ -19,7 +19,8 @@
1919
"storybook": "storybook dev -p 6006",
2020
"build-storybook": "storybook build",
2121
"lint-staged": "lint-staged",
22-
"prepare": "husky"
22+
"prepare": "husky",
23+
"lint": "eslint ."
2324
},
2425
"husky": {
2526
"hooks": {
@@ -28,7 +29,8 @@
2829
},
2930
"lint-staged": {
3031
"src/**/*.{js,jsx,ts,tsx,json,css,scss}": [
31-
"prettier --single-quote --write"
32+
"prettier --single-quote --write",
33+
"eslint ."
3234
]
3335
},
3436
"browserslist": {

0 commit comments

Comments
 (0)