-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(eslint-plugin)!: remove dependencies from ESLint plugin (#10752)
Closes #10740 BREAKING CHANGE: this removes the bundled dependencies and pre-defined rules from the ESLint 'reccomended' configuration. Signed-off-by: Jon Koops <[email protected]>
- Loading branch information
Showing
5 changed files
with
34 additions
and
487 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
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
66 changes: 3 additions & 63 deletions
66
packages/eslint-plugin-patternfly-react/lib/config/recommended.js
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 |
---|---|---|
@@ -1,72 +1,12 @@ | ||
module.exports = { | ||
plugins: ['patternfly-react'], | ||
rules: { | ||
'patternfly-react/import-default-name': [ | ||
'error', | ||
{ | ||
classnames: 'classNames', | ||
'prop-types': 'PropTypes' | ||
} | ||
], | ||
'jsx-a11y/heading-has-content': 'off', | ||
'jsx-a11y/anchor-has-content': 'off', | ||
'jsx-a11y/anchor-is-valid': 'off', | ||
'jsx-a11y/label-has-for': 'off', | ||
'jsx-a11y/click-events-have-key-events': 'off', | ||
'jsx-a11y/no-static-element-interactions': 'off', | ||
'jsx-a11y/no-noninteractive-element-interactions': 'off', | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: true | ||
} | ||
], | ||
'import/no-named-default': 'off', | ||
'import/prefer-default-export': 'off', | ||
'no-alert': 'off', | ||
'no-param-reassign': 'off', | ||
'no-plusplus': 'off', | ||
'no-prototype-builtins': 'off', | ||
'no-restricted-syntax': 'off', | ||
'no-underscore-dangle': 'off', | ||
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }], | ||
'no-unused-vars': [ | ||
'error', | ||
{ | ||
vars: 'all', | ||
args: 'none', | ||
ignoreRestSiblings: true | ||
} | ||
], | ||
'no-use-before-define': 'off', | ||
'prettier/prettier': [ | ||
'error', | ||
{ semi: true, singleQuote: true, tabWidth: 2, trailingComma: 'none', useTabs: false, printWidth: 120 } | ||
], | ||
'react/no-array-index-key': 'off', | ||
'react/forbid-prop-types': 'off', | ||
'react/jsx-filename-extension': 'off', | ||
'react/jsx-uses-vars': 'error', | ||
'react/no-danger': 'off', | ||
'react/sort-comp': 'off', | ||
'react-hooks/rules-of-hooks': 'error', | ||
'react-hooks/exhaustive-deps': 'warn' | ||
}, | ||
extends: [ | ||
'standard', | ||
'standard-react', | ||
'standard-jsx', | ||
'airbnb', | ||
'plugin:jest/recommended', | ||
'prettier', | ||
'prettier/react', | ||
'plugin:react-hooks/recommended' | ||
], | ||
env: { | ||
es6: true, | ||
browser: true, | ||
node: true, | ||
jest: true | ||
}, | ||
plugins: ['prettier', 'jest', 'react', 'react-hooks', 'patternfly-react'], | ||
parser: '@babel/eslint-parser' | ||
] | ||
} | ||
}; |
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
Oops, something went wrong.