Skip to content

Commit

Permalink
WIP: Lots of linting and TS improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
allejo committed Dec 25, 2023
1 parent dd9be2f commit b46f8d9
Show file tree
Hide file tree
Showing 73 changed files with 2,618 additions and 726 deletions.
28 changes: 28 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* eslint-env node */

module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['src/ReShaperDocument.d.ts', 'src/ReShaperDocument.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: true,
tsconfigRootDir: __dirname,
},
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'@typescript-eslint/no-non-null-assertion': 'off',
},
};
Loading

0 comments on commit b46f8d9

Please sign in to comment.