Skip to content

Commit

Permalink
[IMP] eslint_plugin_jsx simple config whith warn level (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
C2dricLeroy authored Nov 16, 2024
1 parent 3ad695f commit 11bf360
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = {
extends: [
'plugin:react/recommended',
'eslint:recommended',
'standard'
'standard',
'plugin:jsx-a11y/recommended',
],
overrides: [
],
Expand All @@ -17,9 +18,12 @@ module.exports = {
sourceType: 'module'
},
plugins: [
'react'
'react',
'jsx-a11y',
],
rules: {
'jsx-a11y/alt-text': 'warn',
'jsx-a11y/anchor-is-valid': 'warn',
'react/react-in-jsx-scope': 'off',
indent: ['warn', 4],
'key-spacing': ['warn', { beforeColon: false, afterColon: true }],
Expand Down
123 changes: 123 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"eslint-config-love": "^62.0.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-n": "16.6.2",
"eslint-plugin-promise": "6.6.0",
"eslint-plugin-react": "7.34.0",
Expand Down

0 comments on commit 11bf360

Please sign in to comment.