Skip to content

Commit

Permalink
Merge pull request breatheco-de#1870 from gustavomm19/assets-cache
Browse files Browse the repository at this point in the history
disable eslint rul no-danger
  • Loading branch information
tommygonzaleza authored Feb 20, 2025
2 parents d71aa49 + 082c06e commit f6a3c4b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
'linebreak-style': ['error', process.platform === 'win32' ? 'windows' : 'unix'],
'react/jsx-no-useless-fragment': 'off',
'default-param-last': 'off',
'react/no-danger': 'off',
},
ignorePatterns: ['src/__tests__/*', 'cypress', 'src/stories/**/*.jsx', 'src/stories/**/*.js'],
};
1 change: 0 additions & 1 deletion src/pages/how-to/[slug]/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ export default function HowToSlug({ data, markdown }) {
<Head>
<script
type="application/ld+json"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: JSON.stringify(data.structuredData) }}
/>
</Head>
Expand Down
1 change: 0 additions & 1 deletion src/pages/interactive-coding-tutorial/[slug].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ function ProjectSlug({ project, markdown }) {
<Head>
<script
type="application/ld+json"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: JSON.stringify(project.structuredData) }}
/>
</Head>
Expand Down
1 change: 0 additions & 1 deletion src/pages/interactive-exercise/[slug]/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ function Exercise({ exercise, markdown }) {
<Head>
<script
type="application/ld+json"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: JSON.stringify(exercise.structuredData) }}
/>
</Head>
Expand Down
1 change: 0 additions & 1 deletion src/pages/lesson/[slug].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ function LessonSlug({ lesson, markdown }) {
<Head>
<script
type="application/ld+json"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: JSON.stringify(lesson.structuredData) }}
/>
</Head>
Expand Down

0 comments on commit f6a3c4b

Please sign in to comment.