-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: creates package eslint-plugin-contentful-apps (#8908)
- Loading branch information
1 parent
7bf93c2
commit b6c804a
Showing
3 changed files
with
4,252 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}; |
Oops, something went wrong.