@amedia/eslint-config-react
Advanced tools
Comparing version 3.4.0-alpha.0 to 3.5.0-alpha.0
31
index.js
module.exports = { | ||
parser: 'babel-eslint', | ||
extends: ['@amedia/eslint-config-base', 'airbnb', 'prettier'], | ||
extends: [ | ||
// https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb | ||
'airbnb', | ||
'airbnb/hooks', | ||
// https://www.npmjs.com/package/eslint-plugin-jsx-a11y | ||
'plugin:jsx-a11y/recommended', | ||
// https://www.npmjs.com/package/eslint-plugin-react | ||
'plugin:react/recommended', | ||
// https://www.npmjs.com/package/eslint-plugin-react-hooks | ||
'plugin:react-hooks/recommended', | ||
/** | ||
* Make sure to put prettier last, so it gets the chance to override other | ||
* configs. | ||
* | ||
* @see https://github.com/prettier/eslint-config-prettier | ||
* | ||
* prettier alternative: https://github.com/prettier/prettier-eslint | ||
*/ | ||
'plugin:prettier/recommended', | ||
'prettier/react', | ||
], | ||
globals: { | ||
@@ -11,3 +31,12 @@ __DEV__: true, | ||
node: true, | ||
'shared-node-browser': true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
defaultParams: true, | ||
spread: true, | ||
}, | ||
}, | ||
rules: { | ||
@@ -14,0 +43,0 @@ // https://www.npmjs.com/package/eslint-plugin-react-hooks |
{ | ||
"name": "@amedia/eslint-config-react", | ||
"version": "3.4.0-alpha.0", | ||
"version": "3.5.0-alpha.0", | ||
"description": "ESLint react configuration to be used by developers at Amedia", | ||
@@ -19,5 +19,3 @@ "main": "index.js", | ||
"eslint", | ||
"eslint-config", | ||
"prettier", | ||
"prettier-config" | ||
"eslint-config" | ||
], | ||
@@ -36,9 +34,6 @@ "author": "Amedia - Renate Winther Ravnaas", | ||
"devDependencies": { | ||
"@amedia/eslint-config-base": "^3.4.0-alpha.0", | ||
"@amedia/eslint-config-base": "^3.5.0-alpha.0", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^7.10.0", | ||
"eslint-config-airbnb": "^18.2.1", | ||
"eslint-config-prettier": "^6.12.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jest": "^24.1.0", | ||
"eslint-plugin-jsx-a11y": "^6.3.1", | ||
@@ -49,3 +44,3 @@ "eslint-plugin-react": "^7.21.3", | ||
}, | ||
"gitHead": "64964c9a0cfde1356b10046f18db8e5342c024ec" | ||
"gitHead": "4375a34cbb277b77f9a4d500f76e28f87869c84c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3390
8
80