@backpackjs/eslint-config
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.1.0](https://github.com/packdigital/backpackjs-monorepo/compare/@backpackjs/eslint-config@1.0.1...@backpackjs/eslint-config@1.1.0) (2022-03-25) | ||
### Features | ||
* **eslint-config:** clean up eslint config to only use typescript parser on typescript files ([670b885](https://github.com/packdigital/backpackjs-monorepo/commit/670b8859053e677a7ab22dbc68c0f6809b889b61)) | ||
## [1.0.1](https://github.com/packdigital/backpackjs-monorepo/compare/@backpackjs/eslint-config@1.0.0...@backpackjs/eslint-config@1.0.1) (2022-03-23) | ||
@@ -8,0 +19,0 @@ |
24
index.js
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
extends: ['airbnb', 'plugin:prettier/recommended'], | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
extends: [ | ||
'airbnb', | ||
'plugin:import/typescript', | ||
'plugin:prettier/recommended', | ||
], | ||
rules: { | ||
'import/prefer-default-export': 'off', | ||
// 1: Turn off rules that are no longer necessary in React 17 and in Next.js | ||
'react/jsx-uses-react': 'off', | ||
'react/react-in-jsx-scope': 'off', | ||
'no-console': 'off', | ||
'no-underscore-dangle': 'off', | ||
'import/prefer-default-export': 'off', | ||
'import/extensions': [ | ||
@@ -21,2 +36,5 @@ 'error', | ||
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'], | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'], | ||
}, | ||
'import/resolver': { | ||
@@ -23,0 +41,0 @@ typescript: {}, |
{ | ||
"name": "@backpackjs/eslint-config", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"author": "@packdigital", | ||
@@ -19,3 +19,3 @@ "description": "Backpackjs ESLint Config", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-import-resolver-typescript": "^2.5.0", | ||
"eslint-import-resolver-typescript": "^2.7.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
@@ -28,3 +28,3 @@ "eslint-plugin-jsx-a11y": "^6.5.1", | ||
"prettier": "@backpackjs/prettier-config", | ||
"gitHead": "b0ca9b1e71ecea71104e7b6296db8e28bf97dfd1" | ||
"gitHead": "60d6113c6c66465609be9b813791c0f4556f6867" | ||
} |
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
4706
41