Skip to content

Commit

Permalink
Moving to Eslint flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
zenineasa committed May 1, 2024
1 parent d68c7bb commit 45ff144
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* Copyright (c) 2022-2024 Zenin Easa Panthakkalakath */

const google = require('eslint-config-google');

module.exports = [{
'files': ['**/*.js'],
'plugins': {
'google': google
},
'languageOptions': {
'ecmaVersion': 2022,
'sourceType': 'module',
},
'rules': {
'indent': ['error', 4],
'linebreak-style': 0,
'no-unused-vars': [
"error",
{
'args': 'none',
'caughtErrors': 'none'
}
]
}
}];
6 changes: 3 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Copyright (c) 2022-2023 Zenin Easa Panthakkalakath ###
### Copyright (c) 2022-2024 Zenin Easa Panthakkalakath ###

all:
make clean
Expand All @@ -16,11 +16,11 @@ clean:
rm -rf node_modules bundle.js package-lock.json out

lint:
npx eslint *.js modules/**/*.js test/*.js test/**/*.js
npx eslint --config eslint.config.js
npx copyright-header --copyrightHolder "Zenin Easa Panthakkalakath"

lintfix:
npx eslint *.js modules/**/*.js test/*.js test/**/*.js --fix
npx eslint --config eslint.config.js --fix
npx copyright-header --fix --copyrightHolder "Zenin Easa Panthakkalakath"

build-mac-intel:
Expand Down

0 comments on commit 45ff144

Please sign in to comment.