Skip to content

Commit

Permalink
feat: creates package eslint-plugin-contentful-apps (#8908)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-shibley-contentful authored and t-col committed Sep 17, 2024
1 parent 7bf93c2 commit b6c804a
Show file tree
Hide file tree
Showing 3 changed files with 4,252 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/eslint-plugin-contentful-apps/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const fs = require('fs');
const path = require('path');
const pkg = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'package.json'), 'utf8'));

module.exports = {
plugins: ['jsx-a11y'],
rules: {
'jsx-a11y/no-autofocus': 'error',
'jsx-a11y/role-has-required-aria-props': 'warn',
'jsx-a11y/iframe-has-title': 'warn',
'jsx-a11y/no-noninteractive-tabindex': 'warn',
'jsx-a11y/tabindex-no-positive': 'warn',
'jsx-a11y/no-static-element-interactions': 'warn',
'jsx-a11y/click-events-have-key-events': 'warn',
'jsx-a11y/interactive-supports-focus': 'warn',
'jsx-a11y/alt-text': 'warn',
'jsx-a11y/no-redundant-roles': 'warn',
'jsx-a11y/label-has-associated-control': 'warn',
'jsx-a11y/img-redundant-alt': 'warn',
'jsx-a11y/anchor-is-valid': 'warn',
'jsx-a11y/aria-role': 'warn',
'jsx-a11y/role-supports-aria-props': 'warn',
},
meta: {
name: pkg.name,
version: pkg.version,
},
};
Loading

0 comments on commit b6c804a

Please sign in to comment.