Skip to content

Commit

Permalink
add-eslint-files
Browse files Browse the repository at this point in the history
  • Loading branch information
Darshan808 committed Oct 22, 2024
1 parent 49f0e47 commit 5f10e1b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules/
.yarn/
.eslintcache
.jupyter_builder/
lib/
dist/
tests/__snapshots__/
build/
28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
env: {
browser: true,
node: true,
es6: true,
commonjs: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-namespace': 'off',
'no-inner-declarations': 'off',
'prefer-const': 'off'
}
};

0 comments on commit 5f10e1b

Please sign in to comment.