Skip to content

Commit

Permalink
Upgrades (and updates) eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Aug 15, 2024
1 parent 5e14fca commit 60c5586
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 56 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.cjs

This file was deleted.

21 changes: 21 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommendedTypeChecked, {
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname
}
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/prefer-promise-reject-errors': 'off'
}
});
24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"webpack": "5.93.0",
"webpack-bundle-analyzer": "4.10.2",
"webpack-cli": "5.1.4",
"tsx": "4.17.0"
"tsx": "4.17.0",
"typescript-eslint": "8.1.0"
}
}
68 changes: 29 additions & 39 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,30 @@
{
"compileOnSave": true,
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",
"sourceMap": true,
"declaration": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"target": "es6",
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"resolveJsonModule": true,
"noImplicitReturns": true,
"allowUnreachableCode": false,
"alwaysStrict": true,
"forceConsistentCasingInFileNames": true,
"noUnusedParameters": false,
"noUnusedLocals": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
"typeRoots": [
"./node_modules/@types"
],
"lib": [
"ESNext",
"dom"
]
},
"include": [
"lib/**/*",
"test/**/*",
],
"exclude": [
"node_modules"
]
}
"compileOnSave": true,
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",
"sourceMap": true,
"declaration": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"target": "es6",
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"resolveJsonModule": true,
"noImplicitReturns": true,
"allowUnreachableCode": false,
"alwaysStrict": true,
"forceConsistentCasingInFileNames": true,
"noUnusedParameters": false,
"noUnusedLocals": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
"typeRoots": ["./node_modules/@types"],
"lib": ["ESNext", "dom"]
},
"include": ["lib/**/*", "test/**/*", "eslint.config.ts"],
"exclude": ["node_modules"]
}

0 comments on commit 60c5586

Please sign in to comment.