Skip to content

Commit

Permalink
fix: migrated .eslintrc.js to eslint.config.js flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah0kello committed Feb 13, 2024
1 parent cf62d0f commit 110431d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Expand Up @@ -32,11 +32,9 @@ repos:
args:
- --trailing-comma=es5
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v9.0.0-beta.0'
rev: v9.0.0-beta.0
hooks:
- id: eslint
additional_dependencies:
- eslint@9.0.0-beta.0
files: \.js?$
types: [file]
args:
Expand Down
36 changes: 17 additions & 19 deletions eslint.config.js
@@ -1,21 +1,19 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
node: true,
module.exports = [
{
languageOptions:{
ecmaVersion: 6,
sourceType: "module",
}
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"curly": ["error", "all"],
"dot-notation": "error",
"eqeqeq": "error",
"no-eval": "error",
"no-var": "error",
"prefer-const": "error",
"semi": "error"
{
rules: {
"curly": ["error", "all"],
"dot-notation": "error",
"eqeqeq": "error",
"no-eval": "error",
"no-var": "error",
"prefer-const": "error",
"semi": "error"
}
}
};
];

0 comments on commit 110431d

Please sign in to comment.