eslint-config-omri-test
Advanced tools
Comparing version
13
index.js
@@ -1,11 +0,1 @@ | ||
const getPrettier = () => { | ||
try { | ||
require('prettier') | ||
return ['prettier/@typescript-eslint'] | ||
} catch { | ||
console.error('prettier not found'); | ||
return [] | ||
} | ||
} | ||
module.exports = { | ||
@@ -17,3 +7,4 @@ parser: '@typescript-eslint/parser', | ||
'plugin:@typescript-eslint/recommended', | ||
].concat(getPrettier()), // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier | ||
'prettier/@typescript-eslint' // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier | ||
], | ||
plugins: ['ban'], | ||
@@ -20,0 +11,0 @@ parserOptions: { |
{ | ||
"name": "eslint-config-omri-test", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "", | ||
@@ -14,2 +14,3 @@ "main": "index.js", | ||
"eslint-plugin-ban": "^1.4.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"typescript": "^4.4.4" | ||
@@ -16,0 +17,0 @@ }, |
1730
-6.74%6
20%30
-21.05%+ Added
+ Added
+ Added
+ Added