Skip to content

Commit

Permalink
lint: uses @blb-ventures/eslint-config to improve configuration reusa…
Browse files Browse the repository at this point in the history
…bility

lint: fixes some lint issues
  • Loading branch information
edusig committed Mar 26, 2023
1 parent 7909d5c commit d56cce8
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 936 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const path = require('path');
const tsconfigPath = path.resolve(__dirname, './tsconfig.esm.json');

module.exports = {
root: true,
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/strict',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'prettier',
'@blb-ventures/eslint-config',
],
plugins: ['@typescript-eslint', 'import', 'prettier', 'react', 'react-hooks', 'jsx-a11y'],
ignorePatterns: ['node_modules', 'lib', 'src/playground.ts', '.eslintrc.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: tsconfigPath,
sourceType: 'module',
ecmaVersion: 'latest',
},
rules: {
'prettier/prettier': 'error',
'react/react-in-jsx-scope': 'off',
'import/no-extraneous-dependencies': 'off',
},
};
Loading

0 comments on commit d56cce8

Please sign in to comment.