Skip to content

Commit

Permalink
chore: created eslint.config.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
akisaini committed Aug 29, 2024
1 parent d2f2e28 commit 754c5fb
Show file tree
Hide file tree
Showing 7 changed files with 583 additions and 547 deletions.
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
dist
coverage
*.d.ts
style/**/*.js
jupyterlab_latex/labextension/static/*.js
lib/**/*.js
src/error.tsx
eslint.config.js
25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
overrides: [
{
files: ["**/*.ts", "**/*.tsx"],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
// TypeScript rules here
},
},
{
files: ["**/*.js"],
parserOptions: {
// No project option needed for JS files
},
rules: {
// JavaScript rules here
},
}
]
};
Loading

0 comments on commit 754c5fb

Please sign in to comment.