Skip to content

Commit

Permalink
build: updating build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
DoffuXx committed Oct 31, 2024
1 parent cbf3ca1 commit 233effa
Show file tree
Hide file tree
Showing 9 changed files with 2,350 additions and 1,342 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

53 changes: 34 additions & 19 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,47 @@
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'node', 'prettier'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
project: ['./tsconfig.json', './tsconfig.build.json'],
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:node/recommended',
'plugin:@typescript-eslint/eslint-recommended',
// 'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
],
overrides: [
{
// Config files override
files: [
'tsup.config.ts',
'vitest.config.ts',
'jest.config.ts',
'.eslintrc.js',
],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'import/no-default-export': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
},
},
],
rules: {
'prettier/prettier': 'warn',
'node/no-missing-import': 'off',
'node/no-empty-function': 'off',
'node/no-unsupported-features/es-syntax': 'off',
'node/no-missing-require': 'off',
'node/shebang': 'off',
'@typescript-eslint/no-use-before-define': 'off',
quotes: ['warn', 'single', { avoidEscape: true }],
'node/no-unpublished-import': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
},
ignorePatterns: ['dist', 'node_modules', 'coverage', '*.js'],
};
48 changes: 48 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './tsconfig.build.json'],
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
overrides: [
{
// Config files override
files: [
'tsup.config.ts',
'vitest.config.ts',
'jest.config.ts',
'.eslintrc.js',
],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'import/no-default-export': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
},
},
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
},
ignorePatterns: ['dist', 'node_modules', 'coverage', '*.js'],
};

63 changes: 0 additions & 63 deletions eslint.config.mjs

This file was deleted.

Loading

0 comments on commit 233effa

Please sign in to comment.