Skip to content

Commit

Permalink
replace old ignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Jan 22, 2025
1 parent 2be2562 commit d58163d
Showing 1 changed file with 38 additions and 14 deletions.
52 changes: 38 additions & 14 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
// eslint.config.js
export default [
{
rules: {
"no-unused-vars": "error",
"no-undef": "error"
},
ignorePatterns: [
'dist/*',
'lib/*',
'node_modules/*', ]

}
];
import { ESLint } from 'eslint';

export default new ESLint({
baseConfig: {
// Add your existing .eslintrc configuration here
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
],
rules: {
"comma-dangle": ["error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "never"
}],
"indent": ["error", 2, {
"SwitchCase": 1
}],
"require-jsdoc" : 0,
"semi": 0
},
},
ignorePatterns: ['node_modules/*','dist/*', 'lib/*'],
});

0 comments on commit d58163d

Please sign in to comment.